Skip to main content

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:

  1. table: Comment out function execution at the bottom of the file, which was meant for testing

[1.1.1] - 2024-06-11

add:

  1. Init: Added shortcut to table fixed:
  2. Table: Forgot to remove import statement to a package that does not exist (page) others:

[1.1.0] - 2024-06-11

add:

  1. Table: plain table processing script.
  2. extract_core_table_data: table to turn raw indented data from notion server to an array of array of strings. fixed: others:
  3. Incorporated generate_outcome_message function into page functions
  4. Incorporated generate_outcome_message function into database functions

[1.0.0] - 2024-06-08

add:

  1. Database: Extract data from databases in notion
  2. Page: Extract data from page fixed: others:
  3. 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

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

personalNotion-1.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file personalNotion-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for personalNotion-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fa2d023925c8c22a741b2cc744f508164fec609227ffb8a75bd4fda5978f7a93
MD5 1835a4746f7a021ec0233fb4c6279096
BLAKE2b-256 f2d81811ea8b9c6a92eb4481e00ef606a4d55241a2efbeb4282744fa797bb608

See more details on using hashes here.

Supported by

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