Name | pymonzo JSON |
Version |
2.2.1
JSON |
| download |
home_page | None |
Summary | Modern Python API client for Monzo public API. |
upload_time | 2024-09-11 13:56:27 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | None |
keywords |
monzo
api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pymonzo
[![Package Version](https://img.shields.io/pypi/v/pymonzo)][pypi pymonzo]
[![Supported Python Versions](https://img.shields.io/pypi/pyversions/pymonzo)][pypi pymonzo]
[![Read the Docs](https://img.shields.io/readthedocs/pymonzo)][rtfd pymonzo]
[![Codecov](https://img.shields.io/codecov/c/github/pawelad/pymonzo)][codecov pymonzo]
[![License](https://img.shields.io/pypi/l/pymonzo)][license]
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
[![py.typed](https://img.shields.io/badge/py-typed-FFD43B)][rickroll]
Modern Python API client for [Monzo] public [API][monzo api docs].
- Works on Python 3.8+
- Fully type annotated
- Explicitly defined and validated API schemas (via [pydantic])
- Easy authentication with automatic access token refreshing
- Sensible defaults - don't specify account / pot ID if you only have one active
- Optional [rich] support for pretty printing
This project is not officially affiliated with [Monzo].
## Installation
From [PyPI] (ideally, inside a [virtualenv]):
```console
$ python -m pip install pymonzo
```
## Quick start
Here's an example of what `pymonzo` can do:
```pycon
>>> from pymonzo import MonzoAPI
>>> monzo_api = MonzoAPI()
>>> accounts = monzo_api.accounts.list()
>>> len(accounts)
2
>>> # Only one active account, so we don't need to pass it explicitly
>>> monzo_api.balance.get()
MonzoBalance(balance=75000, total_balance=95012, currency='GBP', spend_today=0, balance_including_flexible_savings=95012, local_currency='', local_exchange_rate=0, local_spend=[])
>>> from pymonzo.utils import n_days_ago
>>> transactions = monzo_api.transactions.list(since=n_days_ago(5))
>>> len(transactions)
8
```
## Authors
Developed and maintained by [Paweł Adamczak][pawelad].
Source code is available at [GitHub][github pymonzo].
If you'd like to contribute, please take a look at the
[contributing guide].
Released under [Mozilla Public License 2.0][license].
[black]: https://github.com/psf/black
[codecov pymonzo]: https://app.codecov.io/github/pawelad/pymonzo
[contributing guide]: ./CONTRIBUTING.md
[github pymonzo]: https://github.com/pawelad/pymonzo
[license]: ./LICENSE
[monzo api docs]: https://docs.monzo.com/
[monzo developer tools]: https://developers.monzo.com/
[monzo]: https://monzo.com/
[pawelad]: https://pawelad.me/
[pydantic]: https://github.com/pydantic/pydantic
[pypi pymonzo]: https://pypi.org/project/pymonzo/
[pypi]: https://pypi.org/
[rich]: https://github.com/Textualize/rich
[rickroll]: https://www.youtube.com/watch?v=I6OXjnBIW-4&t=15s
[rtfd pymonzo]: https://pymonzo.rtfd.io/
[virtualenv]: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/
Raw data
{
"_id": null,
"home_page": null,
"name": "pymonzo",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "monzo, api",
"author": null,
"author_email": "Pawe\u0142 Adamczak <pawel.ad@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/d8/78/5905cfbadddd7760a3b8364b8f085a1debaf98476bd2554a105d541500c6/pymonzo-2.2.1.tar.gz",
"platform": null,
"description": "# pymonzo\n[![Package Version](https://img.shields.io/pypi/v/pymonzo)][pypi pymonzo]\n[![Supported Python Versions](https://img.shields.io/pypi/pyversions/pymonzo)][pypi pymonzo]\n[![Read the Docs](https://img.shields.io/readthedocs/pymonzo)][rtfd pymonzo]\n[![Codecov](https://img.shields.io/codecov/c/github/pawelad/pymonzo)][codecov pymonzo]\n[![License](https://img.shields.io/pypi/l/pymonzo)][license]\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]\n[![py.typed](https://img.shields.io/badge/py-typed-FFD43B)][rickroll]\n\nModern Python API client for [Monzo] public [API][monzo api docs].\n\n- Works on Python 3.8+\n- Fully type annotated\n- Explicitly defined and validated API schemas (via [pydantic])\n- Easy authentication with automatic access token refreshing\n- Sensible defaults - don't specify account / pot ID if you only have one active\n- Optional [rich] support for pretty printing\n\nThis project is not officially affiliated with [Monzo].\n\n## Installation\nFrom [PyPI] (ideally, inside a [virtualenv]):\n\n```console\n$ python -m pip install pymonzo\n```\n\n## Quick start\nHere's an example of what `pymonzo` can do:\n\n```pycon\n>>> from pymonzo import MonzoAPI\n>>> monzo_api = MonzoAPI()\n>>> accounts = monzo_api.accounts.list()\n>>> len(accounts)\n2\n>>> # Only one active account, so we don't need to pass it explicitly\n>>> monzo_api.balance.get()\nMonzoBalance(balance=75000, total_balance=95012, currency='GBP', spend_today=0, balance_including_flexible_savings=95012, local_currency='', local_exchange_rate=0, local_spend=[])\n>>> from pymonzo.utils import n_days_ago\n>>> transactions = monzo_api.transactions.list(since=n_days_ago(5))\n>>> len(transactions)\n8\n```\n\n## Authors\nDeveloped and maintained by [Pawe\u0142 Adamczak][pawelad].\n\nSource code is available at [GitHub][github pymonzo].\n\nIf you'd like to contribute, please take a look at the\n[contributing guide].\n\nReleased under [Mozilla Public License 2.0][license].\n\n\n[black]: https://github.com/psf/black\n[codecov pymonzo]: https://app.codecov.io/github/pawelad/pymonzo\n[contributing guide]: ./CONTRIBUTING.md\n[github pymonzo]: https://github.com/pawelad/pymonzo\n[license]: ./LICENSE\n[monzo api docs]: https://docs.monzo.com/\n[monzo developer tools]: https://developers.monzo.com/\n[monzo]: https://monzo.com/\n[pawelad]: https://pawelad.me/\n[pydantic]: https://github.com/pydantic/pydantic\n[pypi pymonzo]: https://pypi.org/project/pymonzo/\n[pypi]: https://pypi.org/\n[rich]: https://github.com/Textualize/rich\n[rickroll]: https://www.youtube.com/watch?v=I6OXjnBIW-4&t=15s\n[rtfd pymonzo]: https://pymonzo.rtfd.io/\n[virtualenv]: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/\n\n",
"bugtrack_url": null,
"license": null,
"summary": "Modern Python API client for Monzo public API.",
"version": "2.2.1",
"project_urls": {
"Documentation": "https://pymonzo.readthedocs.io/",
"GitHub": "https://github.com/pawelad/pymonzo",
"Homepage": "https://pymonzo.pawelad.dev/",
"Issues": "https://github.com/pawelad/pymonzo/issues"
},
"split_keywords": [
"monzo",
" api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "56c8207dd695140a47c63f01c5fdc026aa9a868313796b330c0923edcea34574",
"md5": "f7dc499e0ccc0cb4d2843a478e92ea79",
"sha256": "4a3361630a576f0676fc3966af1a03921023e94de8ea62f6174bf4c9014dd726"
},
"downloads": -1,
"filename": "pymonzo-2.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f7dc499e0ccc0cb4d2843a478e92ea79",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 35488,
"upload_time": "2024-09-11T13:56:25",
"upload_time_iso_8601": "2024-09-11T13:56:25.218984Z",
"url": "https://files.pythonhosted.org/packages/56/c8/207dd695140a47c63f01c5fdc026aa9a868313796b330c0923edcea34574/pymonzo-2.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d8785905cfbadddd7760a3b8364b8f085a1debaf98476bd2554a105d541500c6",
"md5": "0d1af6283c6088e1395633a0b0d0a1bc",
"sha256": "6e65544474bc8c9dd818265bd43a4c22f6bceccbd5dc907cd1c9541535c96a58"
},
"downloads": -1,
"filename": "pymonzo-2.2.1.tar.gz",
"has_sig": false,
"md5_digest": "0d1af6283c6088e1395633a0b0d0a1bc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 24265,
"upload_time": "2024-09-11T13:56:27",
"upload_time_iso_8601": "2024-09-11T13:56:27.209087Z",
"url": "https://files.pythonhosted.org/packages/d8/78/5905cfbadddd7760a3b8364b8f085a1debaf98476bd2554a105d541500c6/pymonzo-2.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-11 13:56:27",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "pawelad",
"github_project": "pymonzo",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pymonzo"
}