Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Get know about actually currency exchange!

Project description

Python-Currency-Exchange

The name sounds currency-exchange (Python-Currency-Exchange) because currency-exchnage is Python3 module, that tells you any exchange of any Amount..


INSTALLATION

See the PyPi page for more information.

Python3
pip3 install currency-exchange

Python
pip install currency-exchange

If you want to download source code (zip file) you can download it here.

Or if you are Linux user type into the terminal:
git clone https://github.com/tucnakomet1/Python-Currency-Exchange/archive/master.zip

UPGRADE

Python3
pip3 install currency-exchange --upgrade

Python
pip install currency-exchange --upgrade









USAGE

Command

usage: exchange [-h] [-v] [-C] [-a] [-e] [-c] [-w]

Module 'currency-exchange' help you to find currency exchange and
monthly currency average.

optional arguments:
  -h, --help        show this help message and exit
  -v, --version     show current version
  -C, --contact     show contact
  -a , --average    show currency monthly average. (ex: exchange -a "USD EUR 5 2020")
  -e , --exchange   show currency exchange. (ex: exchange -e "USD EUR 5")
  -c, --currency    show all currency shortcuts
  -w, --whole       whole = True

Thank you!
↓  ↓  ↓  ↓
Visit my GitHub: https://github.com/tucnakomet1



Python

>>> import currency_exchange

##### Get help #####
>>> currency_exchange.help()

##### See license #####
>>> currency_exchange.license()

##### Contact #####
>>> currency_exchange.contact()


##### List of currencies #####
>>> currency_exchange.currencies()

##### Currency exchange#####
>>> currency_exchange.exchange(from, to, amount, whole)
# from = currency (ex: "USD", "EUR", "RUB", ...)
# to = currency (ex: "USD", "EUR", "RUB", ...)
# amount = number of amount (ex: 5, 14, 100, ...)
# whole = True/False

#### Monthly average #####
>>> currency_exchange.average(from, to, amount, year)
# from = currency (ex: "USD", "EUR", "RUB", ...)
# to = currency (ex: "USD", "EUR", "RUB", ...)
# amount = number of amount (ex: 5, 14, 100, ...)
# year = number of CURRENT_YEAR to CURRENT_YEAR-10 (ex: 2020, 2015, 2010)









UPDATES AND VERSION

Version 1.0

Actuall version

  • supported MacOS, Windows and Linux
  • See month average
  • Get know about currency exchange








ABOUT

This scrript is created with the help of language Pyhon3. The name sounds currency-exchange (Python-Currency-Exchange) because the script scraping data from x-rates.com. Module currency-exchange can show you any exchange of any Amount and current monthly..
I tried to do my best so I hope everything is working. If you have some problem, please let me know.








SCREENSHOTS

average
currency
calculate

HELP

Application

How to How to see list of currency

Command

linux@name:~$ exchange -c

Python

from currency_exchange import currencies

print("\n".join(currencies()))

# >>> OUTPUT <<<

# AUD - Australian Dollar
# BHD - Bahraini Dinar
# BWP - Botswana Pula
# BRL - Brazilian Real
# BND - Bruneian Dollar
# BGN - Bulgarian Lev
# CAD - Canadian Dollar
# ...

How to How to see currency exchange

To see just result

Command

linux@name:~$ exchange -e "USD EUR 5"

Python

from currency_exchange import exchange

print(" ".join(exchange("USD", "EUR", 5)))

# >>> OUTPUT <<<
# 4.263142 EUR

To see input and result

Command

linux@name:~$ exchange -e "USD EUR 5" -w

Python

print(" ".join(exchange("USD", "EUR", 5, whole=True)))

# >>> OUTPUT <<<
# 5.00 USD = 4.263142 EUR

How to How to see monthly average

Command

linux@name:~$ exchange -a "USD EUR 1 2020"

Python

from currency_exchange import average

avg = average("USD", "EUR", 1, 2020)

for i in range(0, len(avg)):
    print(" ".join(avg[i]))

# >>> OUTPUT <<<

# Jan 0.900264 – 31 days
# Feb 0.915870 – 29 days
# Mar 0.903361 – 31 days
# Apr 0.919940 – 30 days
# May 0.915750 – 31 days
# Jun 0.888883 – 30 days
# Jul 0.878012 – 28 days

For more information about usage go here.



Error

AttributeError:

This error means that you used / entered an object that doesn't exist. It is probably typing error.
Make sure you wrote everything correctly.







LICENSE

MIT







CONTACT

You can contact me via my gmail address tucnakomet@gmail.com.


up github pypi

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for currency-exchange, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size currency_exchange-1.0.1-py3-none-any.whl (13.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size currency-exchange-1.0.1.tar.gz (6.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page