Name | aiomonobank JSON |
Version |
1.0.1
JSON |
| download |
home_page | |
Summary | Asynchronous Python library for monobank API |
upload_time | 2023-04-26 11:49:41 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.10 |
license | |
keywords |
api
asyncio
bank
library
monobank
wrapper
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
===========
AIOMonobank
===========
Asynchronous Python library for `monobank <https://api.monobank.ua/docs>`_ API
.. image:: https://img.shields.io/pypi/l/aiomonobank.svg?style=flat-square
:target: https://opensource.org/licenses/MIT
:alt: MIT License
.. image:: https://img.shields.io/pypi/status/aiomonobank.svg?style=flat-square
:target: https://pypi.python.org/pypi/aiomonobank
:alt: PyPi status
.. image:: https://img.shields.io/pypi/v/aiomonobank.svg?style=flat-square
:target: https://pypi.python.org/pypi/aiomonobank
:alt: PyPi Package Version
.. image:: https://img.shields.io/pypi/dm/aiomonobank.svg?style=flat-square
:target: https://pypi.python.org/pypi/aiomonobank
:alt: Downloads
.. image:: https://img.shields.io/pypi/pyversions/aiomonobank.svg?style=flat-square
:target: https://pypi.python.org/pypi/aiomonobank
:alt: Supported python versions
Setup
=====
- You get token for your client from `MonobankAPI <https://api.monobank.ua/>`_.
- Install the **latest version** of the **aiomonobank**: ``pip install aiomonobank``
Examples
========
We currently have 2 different classes for using the Monobank API:
-----------------------------------------------------------------
- ``MonoPublic`` is simple base class for others, can only get currencies
- ``MonoPersonal`` - this class for talk to personal Monobank API
`get_currency <https://api.monobank.ua/docs/#tag/Publichni-dani/paths/~1bank~1currency/get>`_ request
-----------------------------------------------------------------------------------------------------
.. code-block:: python
import json
import asyncio
from aiomonobank import MonoPublic
async def main():
async with MonoPublic() as mono_client:
currency = await mono_client.get_currency()
print(json.dumps(currency, ensure_ascii=False, indent=4))
if __name__ == '__main__':
asyncio.run(main())
`get_client_info <https://api.monobank.ua/docs/#tag/Kliyentski-personalni-dani/paths/~1personal~1client-info/get>`_ request
----------------------------------------------------------------------------------------------------------------------------
.. code-block:: python
import json
import asyncio
from aiomonobank import MonoPersonal
MONOBANK_API_TOKEN = 'your_token'
async def main():
mono_client = MonoPersonal(MONOBANK_API_TOKEN)
try:
client_info = await mono_client.get_client_info()
print(json.dumps(client_info, ensure_ascii=False, indent=4))
finally:
await mono_client.close()
if __name__ == '__main__':
asyncio.run(main())
`get_statement <https://api.monobank.ua/docs/#tag/Kliyentski-personalni-dani/paths/~1personal~1statement~1{account}~1{from}~1{to}/get>`_ request
-------------------------------------------------------------------------------------------------------------------------------------------------
.. code-block:: python
import json
import asyncio
from datetime import datetime, timedelta
from aiomonobank import MonoPersonal
MONOBANK_API_TOKEN = 'your_token'
async def main():
mono_client = MonoPersonal(MONOBANK_API_TOKEN)
try:
transactions = await mono_client.get_statement(
account_id='0',
from_datetime=datetime.utcnow() - timedelta(days=3),
to_datetime=datetime.utcnow() - timedelta(days=2)
)
print(json.dumps(transactions, ensure_ascii=False, indent=4))
finally:
await mono_client.close()
if __name__ == '__main__':
asyncio.run(main())
Resources:
==========
- PyPI: `aiomonobank <https://pypi.org/project/aiomonobank>`_
- Documentation: (soon)
Raw data
{
"_id": null,
"home_page": "",
"name": "aiomonobank",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "TT1410 <taras@plaksii.cf>",
"keywords": "api,asyncio,bank,library,monobank,wrapper",
"author": "",
"author_email": "TT1410 <taras@plaksii.cf>",
"download_url": "https://files.pythonhosted.org/packages/97/a8/e28575e674a651eba86679e07a210f818708cf5e5eaf6bc439a78e51ff0d/aiomonobank-1.0.1.tar.gz",
"platform": null,
"description": "===========\nAIOMonobank\n===========\n\nAsynchronous Python library for `monobank <https://api.monobank.ua/docs>`_ API\n\n\n.. image:: https://img.shields.io/pypi/l/aiomonobank.svg?style=flat-square\n :target: https://opensource.org/licenses/MIT\n :alt: MIT License\n\n.. image:: https://img.shields.io/pypi/status/aiomonobank.svg?style=flat-square\n :target: https://pypi.python.org/pypi/aiomonobank\n :alt: PyPi status\n\n.. image:: https://img.shields.io/pypi/v/aiomonobank.svg?style=flat-square\n :target: https://pypi.python.org/pypi/aiomonobank\n :alt: PyPi Package Version\n\n.. image:: https://img.shields.io/pypi/dm/aiomonobank.svg?style=flat-square\n :target: https://pypi.python.org/pypi/aiomonobank\n :alt: Downloads\n\n.. image:: https://img.shields.io/pypi/pyversions/aiomonobank.svg?style=flat-square\n :target: https://pypi.python.org/pypi/aiomonobank\n :alt: Supported python versions\n\nSetup\n=====\n\n- You get token for your client from `MonobankAPI <https://api.monobank.ua/>`_.\n- Install the **latest version** of the **aiomonobank**: ``pip install aiomonobank``\n\n\nExamples\n========\n\nWe currently have 2 different classes for using the Monobank API:\n-----------------------------------------------------------------\n\n- ``MonoPublic`` is simple base class for others, can only get currencies\n- ``MonoPersonal`` - this class for talk to personal Monobank API\n\n\n`get_currency <https://api.monobank.ua/docs/#tag/Publichni-dani/paths/~1bank~1currency/get>`_ request\n-----------------------------------------------------------------------------------------------------\n\n.. code-block:: python\n\n import json\n import asyncio\n\n from aiomonobank import MonoPublic\n\n\n async def main():\n async with MonoPublic() as mono_client:\n currency = await mono_client.get_currency()\n\n print(json.dumps(currency, ensure_ascii=False, indent=4))\n\n\n if __name__ == '__main__':\n asyncio.run(main())\n\n\n`get_client_info <https://api.monobank.ua/docs/#tag/Kliyentski-personalni-dani/paths/~1personal~1client-info/get>`_ request\n----------------------------------------------------------------------------------------------------------------------------\n\n.. code-block:: python\n\n import json\n import asyncio\n\n from aiomonobank import MonoPersonal\n\n MONOBANK_API_TOKEN = 'your_token'\n\n\n async def main():\n mono_client = MonoPersonal(MONOBANK_API_TOKEN)\n try:\n client_info = await mono_client.get_client_info()\n\n print(json.dumps(client_info, ensure_ascii=False, indent=4))\n finally:\n await mono_client.close()\n\n\n if __name__ == '__main__':\n asyncio.run(main())\n\n\n`get_statement <https://api.monobank.ua/docs/#tag/Kliyentski-personalni-dani/paths/~1personal~1statement~1{account}~1{from}~1{to}/get>`_ request\n-------------------------------------------------------------------------------------------------------------------------------------------------\n\n.. code-block:: python\n\n import json\n import asyncio\n from datetime import datetime, timedelta\n\n from aiomonobank import MonoPersonal\n\n MONOBANK_API_TOKEN = 'your_token'\n\n\n async def main():\n mono_client = MonoPersonal(MONOBANK_API_TOKEN)\n try:\n transactions = await mono_client.get_statement(\n account_id='0',\n from_datetime=datetime.utcnow() - timedelta(days=3),\n to_datetime=datetime.utcnow() - timedelta(days=2)\n )\n\n print(json.dumps(transactions, ensure_ascii=False, indent=4))\n finally:\n await mono_client.close()\n\n\n if __name__ == '__main__':\n asyncio.run(main())\n\n\nResources:\n==========\n\n- PyPI: `aiomonobank <https://pypi.org/project/aiomonobank>`_\n- Documentation: (soon)\n",
"bugtrack_url": null,
"license": "",
"summary": "Asynchronous Python library for monobank API",
"version": "1.0.1",
"split_keywords": [
"api",
"asyncio",
"bank",
"library",
"monobank",
"wrapper"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e638ea03628b0af5c1b783db4eda0538568088403dd93794be9ea517b05efd73",
"md5": "6f923152b1e07aabb90b6a22cc9192be",
"sha256": "c6f1a840be3e5c7c35df8e3306288d4d9b4b6b045a2bbac9ac40ea3bb7b64d82"
},
"downloads": -1,
"filename": "aiomonobank-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6f923152b1e07aabb90b6a22cc9192be",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 16083,
"upload_time": "2023-04-26T11:49:38",
"upload_time_iso_8601": "2023-04-26T11:49:38.591862Z",
"url": "https://files.pythonhosted.org/packages/e6/38/ea03628b0af5c1b783db4eda0538568088403dd93794be9ea517b05efd73/aiomonobank-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "97a8e28575e674a651eba86679e07a210f818708cf5e5eaf6bc439a78e51ff0d",
"md5": "1caec6b59643def529be2a9ba821c00b",
"sha256": "af53b3e4e475475f8dc483dae7bf5f96eeaa64e1096c9f22802207f1b38b4fd5"
},
"downloads": -1,
"filename": "aiomonobank-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "1caec6b59643def529be2a9ba821c00b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 34839,
"upload_time": "2023-04-26T11:49:41",
"upload_time_iso_8601": "2023-04-26T11:49:41.073021Z",
"url": "https://files.pythonhosted.org/packages/97/a8/e28575e674a651eba86679e07a210f818708cf5e5eaf6bc439a78e51ff0d/aiomonobank-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-26 11:49:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "aiomonobank"
}