All functions that assist in standardising development approaches.
Project description
The base URL to send all API requests is https://api.notion.com.
Both request and responses are encoded as JSON.
SECRET KEY: API access require creating an "internal integration app" in python, which would produce a secret key, by which you can use to access its API services. https://www.notion.so/my-integrations.
JSON conventions - "object": Type of top-level resource (e.g database, user) - "id": Specific top level resource - Property names -> This is in a_b format - Temporial values -> date time in ISO 8601 string format - Does not support empty strings (e.g. ""). Use null value instead.
Top-level resources are addressable by a UUIDv4 "id" property. You may omit dashes from the ID when making requests to the API, e.g. when copying the ID from a Notion URL. Property names are in snake_case (not camelCase or kebab-case). Temporal values (dates and datetimes) are encoded in ISO 8601 strings. Datetimes will include the time value (2020-08-12T02:12:33.231Z) while dates will include only the date (2020-08-12) The Notion API does not support empty strings. To unset a string value for properties like a url Property value object, for example, use an explicit null instead of "".
Response database structure
''' Request structure
Response structure
'''
Change log
[1.1.1] - 2024-06-11
add: fixed: others:
- table: Comment out function execution at the bottom of the file, which was meant for testing
[1.1.1] - 2024-06-11
add:
- Init: Added shortcut to table fixed:
- Table: Forgot to remove import statement to a package that does not exist (page) others:
[1.1.0] - 2024-06-11
add:
- Table: plain table processing script.
- extract_core_table_data: table to turn raw indented data from notion server to an array of array of strings. fixed: others:
- Incorporated generate_outcome_message function into page functions
- Incorporated generate_outcome_message function into database functions
[1.0.0] - 2024-06-08
add:
- Database: Extract data from databases in notion
- Page: Extract data from page fixed: others:
- Notes: The description of the structure of the return value, because the structure of the return object has a lot of indentations and a lot of meta data. Purpose of notes is to make clear of where the core data is (e.g. text in a block).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file personalNotion-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: personalNotion-1.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa2d023925c8c22a741b2cc744f508164fec609227ffb8a75bd4fda5978f7a93 |
|
MD5 | 1835a4746f7a021ec0233fb4c6279096 |
|
BLAKE2b-256 | f2d81811ea8b9c6a92eb4481e00ef606a4d55241a2efbeb4282744fa797bb608 |