Skip to main content

Fetch rates from openexchangerates with aiohttp.

Project description

aioopenexchangerates

CI Status Documentation Status Test coverage percentage

Poetry Ruff pre-commit

PyPI Version Supported Python versions License


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

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 and the browniebroke/pypackage-template project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aioopenexchangerates-0.6.15.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioopenexchangerates-0.6.15-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file aioopenexchangerates-0.6.15.tar.gz.

File metadata

  • Download URL: aioopenexchangerates-0.6.15.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for aioopenexchangerates-0.6.15.tar.gz
Algorithm Hash digest
SHA256 fb60d4d57f9af071a727463033bed677c25de11e3129d1cc3670951e21089abc
MD5 d2fe5adc8aba4bcbdfd23cf9cb074fff
BLAKE2b-256 f2ac8e66da95b32bf9b48fbe3d8540f2327645b19e7d0050bc26fbdc8c2de4eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioopenexchangerates-0.6.15.tar.gz:

Publisher: ci.yml on MartinHjelmare/aioopenexchangerates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aioopenexchangerates-0.6.15-py3-none-any.whl.

File metadata

File hashes

Hashes for aioopenexchangerates-0.6.15-py3-none-any.whl
Algorithm Hash digest
SHA256 782eadee71dad2428e5816a61a5938be3b48950c129eae93ea6047b3b8783d6a
MD5 789c3a3fa486a92285f5a8953c2326d8
BLAKE2b-256 1fdc6754b21d2503d23f5b5b728319ca245422b6c543f81a4fef8918c14c5657

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioopenexchangerates-0.6.15-py3-none-any.whl:

Publisher: ci.yml on MartinHjelmare/aioopenexchangerates

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page