lotion


Namelotion JSON
Version 0.9.4 PyPI version JSON
download
home_pageNone
SummaryA wrapper of Notion client for Python
upload_time2025-01-15 04:57:10
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Lotion

Lotion is a wrapper for `notion-client` by [ramnes/notion-sdk-py: The official Notion API client library, but rewritten in Python! (sync + async)](https://github.com/ramnes/notion-sdk-py).

With Lotion, you can easily use the Notion API.

```python
from lotion import Lotion

lotion = Lotion.get_instance("NOTION_API_SECRET")
# or `lotion = Lotion.get_instance()` if you set it as `NOTION_SECRET`

pages = lotion.retrieve_database("1696567a3bbf803e9817c7ae1e398b71")
for page in pages:
    print(page.get_title().text)
```

## Install

```shell
pip install python-lotion
```

You must also create your integration, obtain a Notion API secret, and give your integration page permissions.

Reference: [Build your first integration](https://developers.notion.com/docs/create-a-notion-integration#create-your-integration-in-notion)

## Usage

Refer to [How to use Lotion](./docs/how_to_use_lotion.md).

If you have any questions, please create an issue.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "lotion",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Akira Kobori <private.beats@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/12/a9/01a990faa545b83944601ffdbd5ad1f14a05a59d9f997d029e3019c1dd7e/lotion-0.9.4.tar.gz",
    "platform": null,
    "description": "# Lotion\n\nLotion is a wrapper for `notion-client` by [ramnes/notion-sdk-py: The official Notion API client library, but rewritten in Python! (sync + async)](https://github.com/ramnes/notion-sdk-py).\n\nWith Lotion, you can easily use the Notion API.\n\n```python\nfrom lotion import Lotion\n\nlotion = Lotion.get_instance(\"NOTION_API_SECRET\")\n# or `lotion = Lotion.get_instance()` if you set it as `NOTION_SECRET`\n\npages = lotion.retrieve_database(\"1696567a3bbf803e9817c7ae1e398b71\")\nfor page in pages:\n    print(page.get_title().text)\n```\n\n## Install\n\n```shell\npip install python-lotion\n```\n\nYou must also create your integration, obtain a Notion API secret, and give your integration page permissions.\n\nReference: [Build your first integration](https://developers.notion.com/docs/create-a-notion-integration#create-your-integration-in-notion)\n\n## Usage\n\nRefer to [How to use Lotion](./docs/how_to_use_lotion.md).\n\nIf you have any questions, please create an issue.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A wrapper of Notion client for Python",
    "version": "0.9.4",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "892f074de44d99d517fed1c9493583e126757e3f99e14c8c03243788b5c1453b",
                "md5": "3db524d39a4245fedb21b830dcd3daaf",
                "sha256": "10801c123d1d6f27952c411674d69e51f78512c4fae2c3e71b1e931bae1997ed"
            },
            "downloads": -1,
            "filename": "lotion-0.9.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3db524d39a4245fedb21b830dcd3daaf",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 61417,
            "upload_time": "2025-01-15T04:57:07",
            "upload_time_iso_8601": "2025-01-15T04:57:07.843792Z",
            "url": "https://files.pythonhosted.org/packages/89/2f/074de44d99d517fed1c9493583e126757e3f99e14c8c03243788b5c1453b/lotion-0.9.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "12a901a990faa545b83944601ffdbd5ad1f14a05a59d9f997d029e3019c1dd7e",
                "md5": "a238d7300b4ec42c95edaec53fe66e8b",
                "sha256": "7927677af1e55fac7e96e1f8341a02d61222015a38e0be3f05e202810d81227a"
            },
            "downloads": -1,
            "filename": "lotion-0.9.4.tar.gz",
            "has_sig": false,
            "md5_digest": "a238d7300b4ec42c95edaec53fe66e8b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 36589,
            "upload_time": "2025-01-15T04:57:10",
            "upload_time_iso_8601": "2025-01-15T04:57:10.250519Z",
            "url": "https://files.pythonhosted.org/packages/12/a9/01a990faa545b83944601ffdbd5ad1f14a05a59d9f997d029e3019c1dd7e/lotion-0.9.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-15 04:57:10",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "lotion"
}
        
Elapsed time: 0.46949s