Metadata-Version: 2.4
Name: sdkfabric-notion
Version: 0.3.0
Summary: Notion Python SDK managed by SDK Fabric
Author-email: Christoph Kappestein <christoph.kappestein@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/sdk-fabric/notion-python
Project-URL: Issues, https://github.com/sdk-fabric/notion-python/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: sdkgen-client
Dynamic: license-file


# notion-python

This [SDK](https://github.com/sdk-fabric/notion-python) is managed by the [SDK Fabric](https://sdk-fabric.org/) project, a global infrastructure to
automatically generate SDKs for every API.

You can find more information about this SDK at [TypeHub](https://typehub.cloud/):
https://app.typehub.cloud/d/sdkfabric/notion

## Usage

```python
from sdk.client import Client

client = Client.build("[access_token]")

# Returns a paginated list of Users for the workspace.
response = client.user().getAll("notion-version", "start_cursor", 1)

# Retrieves a User using the ID specified.
response = client.user().get("notion-version", "user_id")

# Retrieves a database object — information that describes the structure and columns of a database — for a provided database ID.
response = client.database().get("notion-version", "database_id")

# Retrieves a Page object using the ID specified.
response = client.page().get("page_id")

# Creates a new page that is a child of an existing page or database.
response = client.page().create(Page())
```
