WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

affonsobrian/geld

Repository files navigation

Geld

A library to easily handle currency conversions.

Official documentation

  • We do not have an official documentation yet, we are working on this.

Data origin

Currently the API used to get the values is https://theforexapi.com/api. (If the forex API is down the default client will not work) We are working to make the lib extensable so you can pick info from different sources in the future.

How to install

pip install geld

How to use the Sync Client

Code:

from geld.clients import sync_client as client
result = client.convert_currency("USD", "BRL", 25, "2021-12-05")
print(result)

Result:

141.0127535205030424592109739

About

A library to easily handle currency conversions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published