• Stars
    star
    71
  • Rank 427,229 (Top 9 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Display money format and its filthy currencies, for all money lovers out there.

Python Currencies

Display money format and its filthy currencies, for all money lovers out there.

Build Status

image

Installation

currencies is available on PyPi

http://pypi.python.org/pypi/currencies

So easily install it by pip

$ pip install currencies

Or by easy_install

$ easy_install currencies

Another way is by cloning currencies's git repo

$ git clone git://github.com/Alir3z4/python-currencies.git

Then install it by running: :

$ python setup.py install

Usage

Displaying money format:

>>> from currencies import Currency >>> >>> currency = Currency('USD') >>> currency.get_money_format(13) >>> '$13' >>> currency.get_money_format(13.99) >>> '$13.99' >>> currency.get_money_format('13,2313,33') >>> '$13,2313,33' >>> >>> # Displaying with currency as well >>> >>> currency.get_money_with_currency_format(13) >>> '$13 USD' >>> currency.get_money_with_currency_format(13.99) >>> '$13.99 USD' >>> currency.get_money_with_currency_format('13,2313,33') >>> '$13,2313,33 USD'

Tests

currencies is well tested, to run the test suite:

$ PYTHONPATH=$PYTHONPATH:. python setup.py test

Available currencies

  • AED
  • AFN
  • ALL
  • AMD
  • ANG
  • AOA
  • ARS
  • AUD
  • AWG
  • AZN
  • BAM
  • BBD
  • BDT
  • BGN
  • BHD
  • BND
  • BOB
  • BRL
  • BSD
  • BTN
  • BWP
  • BYR
  • BZD
  • CAD
  • CHF
  • CLP
  • CNY
  • COP
  • CRC
  • CZK
  • DKK
  • DOP
  • DZD
  • EGP
  • ETB
  • EUR
  • FJD
  • GBP
  • GEL
  • GHS
  • GMD
  • GTQ
  • GYD
  • HKD
  • HNL
  • HRK
  • HUF
  • IDR
  • ILS
  • INR
  • ISK
  • JEP
  • JMD
  • JOD
  • JPY
  • KES
  • KGS
  • KHR
  • KRW
  • KWD
  • KYD
  • KZT
  • LBP
  • LKR
  • LTL
  • LVL
  • MAD
  • MDL
  • MGA
  • MKD
  • MMK
  • MNT
  • MOP
  • MUR
  • MVR
  • MXN
  • MYR
  • MZN
  • NAD
  • NGN
  • NIO
  • NOK
  • NPR
  • NZD
  • OMR
  • PEN
  • PGK
  • PHP
  • PKR
  • PLN
  • PYG
  • QAR
  • RON
  • RSD
  • RUB
  • RWF
  • SAR
  • SCR
  • SEK
  • SGD
  • STD
  • SYP
  • THB
  • TND
  • TRY
  • TTD
  • TWD
  • TZS
  • UAH
  • UGX
  • USD
  • UYU
  • VEF
  • VND
  • VUV
  • WST
  • XAF
  • XBT
  • XCD
  • XOF
  • XPF
  • ZAR
  • ZMW

Source

https://github.com/Alir3z4/python-currencies

Website

http://alir3z4.github.com/python-currencies

Issues

https://github.com/Alir3z4/python-currencies/issues

PyPi

http://pypi.python.org/pypi/currencies

Author

Alireza Savand

License

GNU GPL 3

More Repositories

1

html2text

Convert HTML to Markdown-formatted text.
Python
1,642
star
2

stop-words

List of common stop words in various languages.
308
star
3

python-short_url

Python implementation for generating Tiny URL- and bit.ly-like URLs.
Python
176
star
4

python-stop-words

Get list of common stop words in various languages in Python
Python
154
star
5

django-crequest

django-crequest - Taking care of current request in silent way.
Python
60
star
6

oss-wall-of-shame

Companies that use open source and never bother to contribute back - Open Source Software Wall of Shame
43
star
7

django-databrowse

Databrowse is a Django application that lets you browse your data.
Python
42
star
8

django-markwhat

A collection of template filters that implement common markup languages.
Python
20
star
9

ansible-suricata

An Ansible playbook for deploying the Suricata intrusion detection system and fetching Snort rules with Oinkmaster.
Jinja
14
star
10

yoDownet

yoDownet, The previous generation graphical download manager, built on Qt.
C++
10
star
11

django-base64field

A motherfucking django model field to bring base64 encoded key to models.
Python
8
star
12

cmsplugin-simple-markdown

A plugin for django-cms that provides just a markdown plugin and nothing more.
Python
6
star
13

django-mongodb-cash-backend

django-mongodb-cash-backend
Python
6
star
14

python-gignore

Get .gitignore files from github.com/github/gitignore
Python
4
star
15

flask-microblog-sqlalchemy

based on Miguel Grinberg flask tutorial at http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
Python
3
star
16

negar-cli

Negar Command Line Interface
Python
3
star
17

php-solusvm

SolusVM API PHP LIbrary
PHP
3
star
18

django-kewl

Django Kewl - Set of Django kewl utilities & helpers & highly used/needed stuff.
Python
3
star
19

nevis

Nevis is only a simple fast text editor, implemented in Qt/C++. -- Currently under development.
C++
2
star
20

python-cpanel

Python cPanel - The snake ate cPanel API.
Python
2
star
21

django-blog-book

Developing A Blog Application In Django Python Web Framework.
2
star
22

node-money-currencies

Display money format and its filthy currencies, for all money lovers out there.
JavaScript
2
star
23

markwhat-online

Is an online tool/api to parse markup data. It's available through a web interface and a delicious API which speaks JSON.
Python
1
star
24

.dotfiles

@Alir3z4's ~/.dotfiles all over the place!
Shell
1
star
25

aur-pkgs

Alireza's ArchLinux User Repository PKGBUILDs, made with absolute rage!!!
Shell
1
star
26

WHMCS

PHP
1
star
27

markwhat

Markwhat is a desktop cross-platform markup text editor with live preview feature. Written in pure python.
Python
1
star
28

python-simplerelevance

SimpleRelevance API Python Wrapper
Python
1
star