aioopenexchangerates


Nameaioopenexchangerates JSON
Version 0.6.21 PyPI version JSON
download
home_pageNone
SummaryFetch rates from openexchangerates with aiohttp.
upload_time2025-02-24 22:52:44
maintainerNone
docs_urlNone
authorMartin Hjelmare
requires_python<4.0,>=3.11
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # aioopenexchangerates

<p align="center">
  <a href="https://github.com/MartinHjelmare/aioopenexchangerates/actions/workflows/ci.yml?query=branch%3Amain">
    <img src="https://img.shields.io/github/actions/workflow/status/MartinHjelmare/aioopenexchangerates/ci.yml?branch=main&label=CI&logo=github&style=flat-square" alt="CI Status" >
  </a>
  <a href="https://aioopenexchangerates.readthedocs.io">
    <img src="https://img.shields.io/readthedocs/aioopenexchangerates.svg?logo=read-the-docs&logoColor=fff&style=flat-square" alt="Documentation Status">
  </a>
  <a href="https://codecov.io/gh/MartinHjelmare/aioopenexchangerates">
    <img src="https://img.shields.io/codecov/c/github/MartinHjelmare/aioopenexchangerates.svg?logo=codecov&logoColor=fff&style=flat-square" alt="Test coverage percentage">
  </a>
</p>
<p align="center">
  <a href="https://python-poetry.org/">
    <img src="https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json" alt="Poetry">
  </a>
  <a href="https://github.com/astral-sh/ruff">
    <img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff">
  </a>
  <a href="https://github.com/pre-commit/pre-commit">
    <img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square" alt="pre-commit">
  </a>
</p>
<p align="center">
  <a href="https://pypi.org/project/aioopenexchangerates/">
    <img src="https://img.shields.io/pypi/v/aioopenexchangerates.svg?logo=python&logoColor=fff&style=flat-square" alt="PyPI Version">
  </a>
  <img src="https://img.shields.io/pypi/pyversions/aioopenexchangerates.svg?style=flat-square&logo=python&amp;logoColor=fff" alt="Supported Python versions">
  <img src="https://img.shields.io/pypi/l/aioopenexchangerates.svg?style=flat-square" alt="License">
</p>

---

**Documentation**: <a href="https://aioopenexchangerates.readthedocs.io" target="_blank">https://aioopenexchangerates.readthedocs.io </a>

**Source Code**: <a href="https://github.com/MartinHjelmare/aioopenexchangerates" target="_blank">https://github.com/MartinHjelmare/aioopenexchangerates </a>

---

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.


            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aioopenexchangerates",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": "Martin Hjelmare",
    "author_email": "marhje52@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/4f/6d/17421f84979f80b8ff4b7f97f9706690107818b0dcf5fcc2cb4c0a6771d6/aioopenexchangerates-0.6.21.tar.gz",
    "platform": null,
    "description": "# aioopenexchangerates\n\n<p align=\"center\">\n  <a href=\"https://github.com/MartinHjelmare/aioopenexchangerates/actions/workflows/ci.yml?query=branch%3Amain\">\n    <img src=\"https://img.shields.io/github/actions/workflow/status/MartinHjelmare/aioopenexchangerates/ci.yml?branch=main&label=CI&logo=github&style=flat-square\" alt=\"CI Status\" >\n  </a>\n  <a href=\"https://aioopenexchangerates.readthedocs.io\">\n    <img src=\"https://img.shields.io/readthedocs/aioopenexchangerates.svg?logo=read-the-docs&logoColor=fff&style=flat-square\" alt=\"Documentation Status\">\n  </a>\n  <a href=\"https://codecov.io/gh/MartinHjelmare/aioopenexchangerates\">\n    <img src=\"https://img.shields.io/codecov/c/github/MartinHjelmare/aioopenexchangerates.svg?logo=codecov&logoColor=fff&style=flat-square\" alt=\"Test coverage percentage\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://python-poetry.org/\">\n    <img src=\"https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json\" alt=\"Poetry\">\n  </a>\n  <a href=\"https://github.com/astral-sh/ruff\">\n    <img src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\" alt=\"Ruff\">\n  </a>\n  <a href=\"https://github.com/pre-commit/pre-commit\">\n    <img src=\"https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=flat-square\" alt=\"pre-commit\">\n  </a>\n</p>\n<p align=\"center\">\n  <a href=\"https://pypi.org/project/aioopenexchangerates/\">\n    <img src=\"https://img.shields.io/pypi/v/aioopenexchangerates.svg?logo=python&logoColor=fff&style=flat-square\" alt=\"PyPI Version\">\n  </a>\n  <img src=\"https://img.shields.io/pypi/pyversions/aioopenexchangerates.svg?style=flat-square&logo=python&amp;logoColor=fff\" alt=\"Supported Python versions\">\n  <img src=\"https://img.shields.io/pypi/l/aioopenexchangerates.svg?style=flat-square\" alt=\"License\">\n</p>\n\n---\n\n**Documentation**: <a href=\"https://aioopenexchangerates.readthedocs.io\" target=\"_blank\">https://aioopenexchangerates.readthedocs.io </a>\n\n**Source Code**: <a href=\"https://github.com/MartinHjelmare/aioopenexchangerates\" target=\"_blank\">https://github.com/MartinHjelmare/aioopenexchangerates </a>\n\n---\n\nFetch rates from openexchangerates with aiohttp.\n\n## Installation\n\nInstall this via pip (or your favourite package manager):\n\n`pip install aioopenexchangerates`\n\n## Usage\n\n```py\nimport asyncio\n\nfrom aioopenexchangerates import Client, OpenExchangeRatesError\n\n\nasync def main() -> None:\n    \"\"\"Run main.\"\"\"\n    async with Client(\"your_api_key\") as client:\n        try:\n            result = await client.get_latest()\n        except OpenExchangeRatesError as err:\n            print(err)\n        else:\n            print(result)\n\n\nif __name__ == \"__main__\":\n    asyncio.run(main())\n```\n\n## Credits\n\nThis package was created with\n[Copier](https://copier.readthedocs.io/) and the\n[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)\nproject template.\n\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "Fetch rates from openexchangerates with aiohttp.",
    "version": "0.6.21",
    "project_urls": {
        "Bug Tracker": "https://github.com/MartinHjelmare/aioopenexchangerates/issues",
        "Changelog": "https://github.com/MartinHjelmare/aioopenexchangerates/blob/main/CHANGELOG.md",
        "Documentation": "https://aioopenexchangerates.readthedocs.io",
        "Repository": "https://github.com/MartinHjelmare/aioopenexchangerates"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "6b6e1ad4b8ce758b8dd332c5ee014891c035e7fa1621f8226c83196f91431c0c",
                "md5": "e6bd78e83861fd393edb8925222967b4",
                "sha256": "bac4f169605dad311f1482f436d24d1b9499108e589949ae1d0e8f878deb15d0"
            },
            "downloads": -1,
            "filename": "aioopenexchangerates-0.6.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e6bd78e83861fd393edb8925222967b4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.11",
            "size": 9405,
            "upload_time": "2025-02-24T22:52:42",
            "upload_time_iso_8601": "2025-02-24T22:52:42.102453Z",
            "url": "https://files.pythonhosted.org/packages/6b/6e/1ad4b8ce758b8dd332c5ee014891c035e7fa1621f8226c83196f91431c0c/aioopenexchangerates-0.6.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4f6d17421f84979f80b8ff4b7f97f9706690107818b0dcf5fcc2cb4c0a6771d6",
                "md5": "281bcb596888ae0c9d202abbbaef4df0",
                "sha256": "af077040394c86097547ad3497fe71e307de0476f9bbaa9f4a6d519986d461c8"
            },
            "downloads": -1,
            "filename": "aioopenexchangerates-0.6.21.tar.gz",
            "has_sig": false,
            "md5_digest": "281bcb596888ae0c9d202abbbaef4df0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.11",
            "size": 8364,
            "upload_time": "2025-02-24T22:52:44",
            "upload_time_iso_8601": "2025-02-24T22:52:44.348679Z",
            "url": "https://files.pythonhosted.org/packages/4f/6d/17421f84979f80b8ff4b7f97f9706690107818b0dcf5fcc2cb4c0a6771d6/aioopenexchangerates-0.6.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-24 22:52:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MartinHjelmare",
    "github_project": "aioopenexchangerates",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "aioopenexchangerates"
}
        
Elapsed time: 0.87966s