Skip to content

mc-c0rp/mchange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

mchange - Fast and Free currency converter that uses Xe.

How to use

First, install a mchange package:

python -m pip install mchange

Code Examples

import mchange

converted = mchange.convert(1, mchange.Currency.USD, mchange.Currency.MDL) # First - Quantity to be changed; Second - From; Third - To.
print(converted)

In this example, we found out the exchange rate of 1 dollar in Moldovan lei All currencies are stored in the 'Currency' class.

About

Fast and Free exchange rate API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages