Skip to main content

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).

With Lotion, you can easily use the Notion API.

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

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

Usage

Refer to How to use Lotion.

If you have any questions, please create an issue.

Metadata

Release files for lotion 0.9.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lotion 0.9.6
File Size Uploaded Provenance Actions
lotion-0.9.6.tar.gz 123.7 kB Without provenance Details for lotion-0.9.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for lotion 0.9.6
File Interpreter ABI Platform Actions
lotion-0.9.6-py3-none-any.whl Python 3 none any Details for lotion-0.9.6-py3-none-any.whl

Total release size: 194.0 kB

Release files / lotion-0.9.6.tar.gz

Download URL lotion-0.9.6.tar.gz
Size 123.7 kB
Tags Source
SHA-256 checksum
How to use checksums
256cfd2697ebfd21a4fb4549e3cf657831d436dea1b4f092f0c2a2a200d0db9f
BLAKE2b-256 checksum
How to use checksums
8a32831b99a00fef3b18a715ae3ca5257987abfa850aaf2d645cadb153b06adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / lotion-0.9.6-py3-none-any.whl

Download URL lotion-0.9.6-py3-none-any.whl
Size 70.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f16ce1cb0c436f2ab7fc2590c24aaf765bd5f02fd6db8c0cd244e5eea8d2fdf
BLAKE2b-256 checksum
How to use checksums
ff682016901c6efc63491c7f9afa3cdf4cb48d2380c6345bb6365d98024bcb1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for lotion 0.9.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page