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.3.tar.gz (36.5 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.3-py3-none-any.whl (61.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lotion-0.9.3.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for lotion-0.9.3.tar.gz
Algorithm Hash digest
SHA256 89e1de448fcabdd95d65060ee7eb5dd24f9498b2654a24488f4f32536a4d28d2
MD5 bd464a5dc8e4a04afeee8435abd61cf3
BLAKE2b-256 3f7b6bce1c7febed9f9899e06b368a5eaa0b332bfe4eca37e2d034c8db97d788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lotion-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 61.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for lotion-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0f6c1ff89ae63412fa51fc0f46fc4fda4aa37c4ccbb8e897f08814f1e53cdfc5
MD5 c22a9fa78a91c27f82300398779d0f3f
BLAKE2b-256 4c9ece874c64fd06b74273f71f2c1ec23ba08091dce2506c6120c58110473d46

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