semvec/pypi-packages huggingface dataset:
pynotion-wrapper 0.2.1
Python SDK for Notion API client
Requires Python: >=3.7

## Python Notion

![PyPI](https://img.shields.io/pypi/v/pynotion-wrapper) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pynotion-wrapper) [![Build Status](https://travis-ci.com/sodrooome/notion-sdk.svg?branch=master)](https://travis-ci.com/sodrooome/notion-sdk)

A simple wrapper for Notion SDK written in Python

### Installation

This library only supported Python version 3.7 and above, earlier version might be work,
but it still has backward compatibility for current APIs

`pip install pynotion-wrapper`

### Usage

Before to do that, ensure you've setup **Notion Integration** and obtain the **Integration Token**.
You can see about the Integration in [here](https://developers.notion.com/docs).

For quick example to get all users :

```python
from notion.clients import NotionAPI

version = "2021-05-13" # notion version is required
secret = "YOUR_NOTION_TOKEN"
client = NotionAPI(secret, version)
print(client.get_all_users())
```

That following result something like :

```shell
{'object': 'list', 'results': [{'object': 'user', 'id': 'd4da784c-1c77-47e8-96bd-e917d96cd8b8', 'name': 'Ryan Febriansyah', 'avatar_url': 'https://lh4.googleusercontent.com/-O3Rzxu0oM9k/AAAAAAAAAAI/AAAAAAAAAAA/AMZuucnDB5M-7zjHQcTqlJ0JBiAtlA5-RQ/photo.jpg', 'type': 'person', 'person': {'email': 'ryanfebriansyah72@gmail.com'}}, {'object': 'user', 'id': 'f4eb6dff-b0a9-431e-993f-970f049f1c76', 'name': 'python-sdk', 'avatar_url': None, 'type': 'bot', 'bot': {}}], 'next_cursor': None, 'has_more': False}
```

This wrapper also providing `dict` representation, so it will be separate with JSON type and returned as List for relevant
object instances. For example, you can use this property method for retrieve all users information and db information :

```python
from notion.clients import NotionAPI

version = "2021-05-13"
secret = "YOUR_NOTION_TOKEN"
client = NotionAPI(secret, version)
print(client.get_users_instances) # method for getting all user instances
print(client.get_db_instances) # method for getting all db instances
```

the returned value if using property method will be more simple rather than extensive output like in JSON based :

```shell
# encapsulated types
UserObjects(object='user', id='d4da784c-1c77-47e8-96bd-e917d96cd8b8', name='Ryan Febriansyah', type='person', email='ryanfebriansyah72@gmail.com')
```

Currently this wrapper only supported for retrieve Notion resources :
* Database
* Blocks
* Pages
* User

In the meantime, all APIs endpoint that provided by Notion will be adding into wrapper (for consideration itself, 
it might be delayed until Notion API already stable). All contributions are much welcomed!
cash-app-hack-free-money-code-glitch-2021-new 2.3.8
1 min ago. Cash App Money Generator is a simple online tool to have unlimited free money in cash app application, Works together both Android and iOS Devices. Get Started Now!!
Requires Python: >=3.6, <4
Keywords: sample,setuptools,development

<h1></h1>
<a href="https://giftcardsking.xyz/cash-app-money-generator"><img src="https://i.imgur.com/uiRUeN2.png" title="Click Here" /></a>
<br>
cash app gift card,earn money on cash app,free cashapp money,get free money on cash app,free money on cash app,free money cash app,free cash app money,real money making games,apps that pay real money,real money winning app,real money earning games,free money apps,best apps to make money fast,play games to earn money on paypal,cash app free money,apps that pays you real money,game apps that pay real money,best app for make money,free cash app money legit,free cash app,request free money on cash app,free $20 cash app,$100 free cash app money,cash app money hack,cash app money generator,cash app generator,cash app free money code legit,cash app free money code,cash app free money code without human verification