Skip to main content

A wrapper of Notion client for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lotion-0.9.6.tar.gz (123.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lotion-0.9.6-py3-none-any.whl (70.3 kB view details)

Uploaded Python 3

File details

Details for the file lotion-0.9.6.tar.gz.

File metadata

  • Download URL: lotion-0.9.6.tar.gz
  • Upload date:
  • Size: 123.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lotion-0.9.6.tar.gz
Algorithm Hash digest
SHA256 256cfd2697ebfd21a4fb4549e3cf657831d436dea1b4f092f0c2a2a200d0db9f
MD5 5d35e592d8a085c452bd7d216e765fee
BLAKE2b-256 8a32831b99a00fef3b18a715ae3ca5257987abfa850aaf2d645cadb153b06adc

See more details on using hashes here.

File details

Details for the file lotion-0.9.6-py3-none-any.whl.

File metadata

  • Download URL: lotion-0.9.6-py3-none-any.whl
  • Upload date:
  • Size: 70.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lotion-0.9.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6f16ce1cb0c436f2ab7fc2590c24aaf765bd5f02fd6db8c0cd244e5eea8d2fdf
MD5 77d2b8f1b76e1056ad4541554450276e
BLAKE2b-256 ff682016901c6efc63491c7f9afa3cdf4cb48d2380c6345bb6365d98024bcb1b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page