Coder Social home page Coder Social logo

manns / py-moneyed Goto Github PK

View Code? Open in Web Editor NEW

This project forked from py-moneyed/py-moneyed

0.0 0.0 0.0 331 KB

Provides Currency and Money classes for use in your Python code.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%

py-moneyed's Introduction

Build Status Latest PyPI version https://readthedocs.org/projects/py-moneyed/badge/?version=latest

Overview

The need to represent instances of money frequently arises in software development, particularly any financial/economics software. To address that need, the py-moneyed package provides the classes of Money and Currency, at a level more useful than just using Python's Decimal class, or ($DEITY forbid) the float primitive. The package is meant to be stand-alone and used directly, or be subclassed further. py-moneyed is BSD-licensed.

Quick start

To install:

pip install py-moneyed

Use:

from moneyed import Money, USD

five_dollars = Money(5, USD)

You then use Money objects as if they were numbers, and they behave sensibly. See docs for more information (or the docs/ folder).

History

Some of the py-moneyed code was first derived from python-money available via this URL: http://code.google.com/p/python-money/ Due to inactivity, it was forked by @limist in 2010 and later moved to the py-moneyed organization.

py-moneyed's People

Contributors

spookylukey avatar stranger6667 avatar erwinjunge avatar sondrelg avatar jakewins avatar antonagestam avatar fizista avatar adamb70 avatar noamby avatar plumdog avatar kirpit avatar jodal avatar serkanaltuntas avatar manns avatar allixsenos avatar jonashaag avatar codingjoe avatar avoliva avatar s-m-b avatar lukaskovarik avatar ianare avatar flipvrijn avatar benjaoming avatar visgean avatar theterabyte avatar timdrijvers avatar pooyamb avatar nikicat avatar kjagiello avatar klette avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.