Skip to main content

A python async wrapper for the currency-api API

Project description

currency-api-py

A python async wrapper for the currency-api API

Installation

py -m pip install -U currency-api-py

:: latest (unstable)
py -m pip install git+https://github.com/Marseel-E/currency-api-py

Quickstart

import asyncio

from currencyApi import CurrencyApi

async def main():
	async with CurrencyApi() as session:
		data = await session.convert("eur", "usd")
		print(data)

if __name__ = '__main__':
	asyncio.run(main())

# Output (2022-04-30)
>>> 1.054463

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

currency-api-py-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

currency_api_py-0.1.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

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