A Library for currency conversion in Real Time
Project description
Currency Converter Lite
A lightweight, offline-ready Python library for currency conversion with support for caching exchange rates.
Features
- Convert between any two currencies using Yahoo or Google Finance.
- Caches exchange rates for offline use.
- Simple and easy-to-use API.
Installation
Install the library using pip:
pip install currency-converter-lite
Usage
from currency_converter.converter import CurrencyConverter
Initialize converter
# using Yahoo finance
converter = CurrencyConverter(use_yahoo=True)
# using Google finance
converter = CurrencyConverter(use_yahoo=False)
Convert 100 USD to EUR
amount_in_eur = converter.convert(100, "USD", "EUR")
print(f"100 USD is {amount_in_eur} EUR")
License
This project is licensed under the MIT License.
Copyright (c) 2024 Ameer Adeigbe
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: ...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file currency_converter_lite-0.1.0.tar.gz.
File metadata
- Download URL: currency_converter_lite-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddda0bb1382210658eea9feb1bf87de6a9803b36efe4c26f30318ae5afbe042b
|
|
| MD5 |
a164fc4f16f38e0e1ae1c1a882b354f6
|
|
| BLAKE2b-256 |
f60498b076b0daa87114d4728c693fa29647b20d758cdc042796d5a878c20e3e
|
File details
Details for the file currency_converter_lite-0.1.0-py3-none-any.whl.
File metadata
- Download URL: currency_converter_lite-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f193d83b14a5ad70cc36f80085e28a43c23d1f639c1cd56a5acd2b080c7bc93
|
|
| MD5 |
9da6a96547a50b07b2995d7c6987ced1
|
|
| BLAKE2b-256 |
cf33eba6d73e2dc73a5446525cf4123aa8141643cdfb7f199b74f147fae981ed
|