Metadata-Version: 2.1 Name: aioopenexchangerates Version: 0.6.8 Summary: Fetch rates from openexchangerates with aiohttp. Home-page: https://github.com/MartinHjelmare/aioopenexchangerates License: Apache-2.0 Author: Martin Hjelmare Author-email: marhje52@gmail.com Requires-Python: >=3.11,<4.0 Classifier: Development Status :: 2 - Pre-Alpha Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: Apache Software License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python :: 3 Classifier: Programming Language :: Python :: 3.11 Classifier: Programming Language :: Python :: 3.12 Classifier: Programming Language :: Python :: 3.13 Classifier: Topic :: Software Development :: Libraries Requires-Dist: aiohttp (>=3.8.4,<4.0.0) Requires-Dist: mashumaro (>=3.13.1,<4.0.0) Project-URL: Bug Tracker, https://github.com/MartinHjelmare/aioopenexchangerates/issues Project-URL: Changelog, https://github.com/MartinHjelmare/aioopenexchangerates/blob/main/CHANGELOG.md Project-URL: Documentation, https://aioopenexchangerates.readthedocs.io Project-URL: Repository, https://github.com/MartinHjelmare/aioopenexchangerates Description-Content-Type: text/markdown # aioopenexchangerates
--- **Documentation**: https://aioopenexchangerates.readthedocs.io **Source Code**: https://github.com/MartinHjelmare/aioopenexchangerates --- Fetch rates from openexchangerates with aiohttp. ## Installation Install this via pip (or your favourite package manager): `pip install aioopenexchangerates` ## Usage ```py import asyncio from aioopenexchangerates import Client, OpenExchangeRatesError async def main() -> None: """Run main.""" async with Client("your_api_key") as client: try: result = await client.get_latest() except OpenExchangeRatesError as err: print(err) else: print(result) if __name__ == "__main__": asyncio.run(main()) ``` ## Credits This package was created with [Copier](https://copier.readthedocs.io/) and the [browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template) project template.