Skip to content

highfestiva/currency_conv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

currency_conv.py

Minimal currency converter using ECB data (updated regularly):

from currency_conv import convert
assert convert(1, 'USD', 'NOK') < 10
assert convert(10, 'DKK', 'EUR') < 2

40 LoC for your pleasure, just copy-paste it into your project and BAM!

About

Minimal currency converter for Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages