pymonzo


Namepymonzo JSON
Version 2.0.1 PyPI version JSON
download
home_pageNone
SummaryModern Python API client for Monzo public API.
upload_time2024-04-13 15:42:14
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
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/
[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/c4/27/4a89611b063755af657187720c5bbf61166917f007f9416d29e044c38a3a/pymonzo-2.0.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[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.0.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": "9d525adac15b04c9179044af6901a83aac663a008cb3d449a3b263bdbae70c6c",
                "md5": "950704aa7e62c080f45cda31b6270fbb",
                "sha256": "4729b1d7089ab4a7d8ab7e3a6466692bbf51536b66242a88d3c159b596eb5a2f"
            },
            "downloads": -1,
            "filename": "pymonzo-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "950704aa7e62c080f45cda31b6270fbb",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 33979,
            "upload_time": "2024-04-13T15:42:13",
            "upload_time_iso_8601": "2024-04-13T15:42:13.090154Z",
            "url": "https://files.pythonhosted.org/packages/9d/52/5adac15b04c9179044af6901a83aac663a008cb3d449a3b263bdbae70c6c/pymonzo-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c4274a89611b063755af657187720c5bbf61166917f007f9416d29e044c38a3a",
                "md5": "0d33b107cd4f152653a3a4f9eef7c81d",
                "sha256": "30a0a0148795c4cb9913959d4738af4d1bd14413d65f8ec6b52279b9ec516a7f"
            },
            "downloads": -1,
            "filename": "pymonzo-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "0d33b107cd4f152653a3a4f9eef7c81d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 23479,
            "upload_time": "2024-04-13T15:42:14",
            "upload_time_iso_8601": "2024-04-13T15:42:14.914469Z",
            "url": "https://files.pythonhosted.org/packages/c4/27/4a89611b063755af657187720c5bbf61166917f007f9416d29e044c38a3a/pymonzo-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-13 15:42:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pawelad",
    "github_project": "pymonzo",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pymonzo"
}
        
Elapsed time: 0.28282s