{"id":13657993,"url":"https://github.com/minwook-shin/notion-database","last_synced_at":"2025-05-16T15:07:03.689Z","repository":{"id":44812021,"uuid":"380672103","full_name":"minwook-shin/notion-database","owner":"minwook-shin","description":"Python bindings for Notion Database API","archived":false,"fork":false,"pushed_at":"2024-11-22T10:29:23.000Z","size":290,"stargazers_count":139,"open_issues_count":3,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-12T14:55:48.546Z","etag":null,"topics":["api","database","notion","notion-database","pypi-package","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/notion-database/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/minwook-shin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["minwook-shin"]}},"created_at":"2021-06-27T06:54:27.000Z","updated_at":"2025-04-06T01:52:02.000Z","dependencies_parsed_at":"2024-06-19T04:11:01.220Z","dependency_job_id":"eeb0e563-e304-4f1f-a433-27681ca3b216","html_url":"https://github.com/minwook-shin/notion-database","commit_stats":{"total_commits":61,"total_committers":5,"mean_commits":12.2,"dds":0.09836065573770492,"last_synced_commit":"a9118e28fc1bd0464e0f19ab5a0d85dea13b67da"},"previous_names":[],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minwook-shin%2Fnotion-database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minwook-shin%2Fnotion-database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minwook-shin%2Fnotion-database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/minwook-shin%2Fnotion-database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/minwook-shin","download_url":"https://codeload.github.com/minwook-shin/notion-database/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254553959,"owners_count":22090417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","database","notion","notion-database","pypi-package","python"],"created_at":"2024-08-02T05:00:54.917Z","updated_at":"2025-05-16T15:07:03.671Z","avatar_url":"https://github.com/minwook-shin.png","language":"Python","funding_links":["https://github.com/sponsors/minwook-shin"],"categories":["Python","HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"[![Test Python Package](https://github.com/minwook-shin/notion-database/actions/workflows/python-publish.yml/badge.svg)](https://github.com/minwook-shin/notion-database/actions/workflows/python-publish.yml)\n\n#  Python Notion Database\n\u003e Database of Pythonic Notion API\n\n\u003cimg alt=\"notion-database.gif\" height=\"100%\" src=\"https://github.com/minwook-shin/notion-database/blob/main/media/notion-database.gif?raw=true\" width=\"100%\"/\u003e\n\ncreated by database from the official Notion API.\n\n\"notion database\" is Notion API wrapper library.\n\n```python\nimport os\n\nfrom notion_database.page import Page\nfrom notion_database.properties import Properties\nfrom notion_database.const.query import Direction, Timestamp\nfrom notion_database.search import Search\n\nS = Search(integrations_token=os.getenv('NOTION_KEY'))\nS.search_database(query=\"\", sort={\"direction\": Direction.ascending, \"timestamp\": Timestamp.last_edited_time})\nfor i in S.result:\n  PROPERTY = Properties()\n  PROPERTY.set_title(\"title\", \"title\")\n  PROPERTY.set_rich_text(\"Description\", \"description text\")\n  P = Page(integrations_token=os.getenv('NOTION_KEY'))\n  P.create_page(database_id=i[\"id\"], properties=PROPERTY)\n```\nSee detailed example [here](example.py).\n\n## License Notice\n\nhope that many people will use this package, also license has been changed to LGPL 3 from 1.0. \n\nprevious version is GPL, please be careful when using this out of version.\n\n## What's new notion-version\n\n* 1.0.0\n  * Now that we've implemented all features, \n  * change the version rule to the semantic version.\n  * notion-version : \"2022-06-28\"\n\n* 2022.08.01\n  * **Update notion-version (2022-06-28)**\n\n* 2022.03.27\n  * **Update notion-version (2022-02-22)**\n    * Using officially API (out of beta!).\n    * https://developers.notion.com/changelog/releasing-notion-version-2022-02-22\n    \n* 2021.09.01\n    * **Update notion-version (2021-08-16)**\n\n## Installing / Getting started\n\n```shell\npip install notion-database\n```\n\n### Docs\n\nhttps://notion-database.readthedocs.io\n\n## Building / Developing\n\n```shell\npython setup.py install\n```\n\n## Features\n\n* Blocks\n  * ✅ Append block children\n  * ✅ Retrieve block children\n* Pages\n  * ✅ Create a page\n  * ✅ Retrieve a page\n  * ✅ Retrieve a page property item\n  * ✅ Update page properties\n  * ✅ Archive a page\n* Databases\n  * ✅ Create a database\n  * ✅ Query a database\n    * See detailed example [here](query_db_example.py).\n  * ✅ Retrieve a database\n  * ✅ Update a database\n  * ✅ Update database properties\n* Blocks\n  * ✅ Retrieve a block\n  * ✅ Retrieve block children\n\n## Contributing\n\nIf you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.\n\n## Links\n\n- Notion API : https://developers.notion.com\n\n## Licensing\n\nThe code in this project is licensed under LGPL license.\n\n## Example project using this package\n\n* jira-2-notion-db\n  * https://github.com/minwook-shin/jira-2-notion-db","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminwook-shin%2Fnotion-database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminwook-shin%2Fnotion-database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminwook-shin%2Fnotion-database/lists"}