
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
This repository automates the creation of databases and entries in Notion using predefined JSON schemas and entry definitions. It is optimized for extensibility and ease of use with minimal configuration.
git clone https://github.com/your-repo/notion-automation.git
cd notion-automation
pip install -r requirements.txt
Create a .env
file with your Notion API key and page ID:
NOTION_API_KEY=your_notion_api_key
NOTION_PAGE_ID=your_notion_page_id
Store your schema and entries (optional) in the plugins/
folder. The schema defines the database structure, and the entries define the content.
schema.json
):{
"title": "Project Entities",
"properties": {
"Entity ID": {
"property_type": "title"
},
"Name": {
"property_type": "rich_text"
},
"Type": {
"property_type": "select",
"options": [
{ "name": "Entity", "color": "blue" },
{ "name": "Component", "color": "green" },
{ "name": "Module", "color": "purple" }
]
},
"Created At": {
"property_type": "date"
},
"Tags": {
"property_type": "multi_select",
"options": [
{ "name": "Core", "color": "red" },
{ "name": "Active", "color": "green" },
{ "name": "Archived", "color": "gray" },
{ "name": "Reference", "color": "yellow" }
]
}
}
}
entries.json
):{
"entries": [
{
"Entity ID": "E001",
"Name": "Alpha",
"Type": "Entity",
"Created At": "2023-10-15",
"Tags": ["Core", "Active"]
},
{
"Entity ID": "E002",
"Name": "Beta",
"Type": "Component",
"Created At": "2023-10-10",
"Tags": ["Archived", "Reference"]
},
{
"Entity ID": "E003",
"Name": "Gamma",
"Type": "Module",
"Created At": "2023-10-20",
"Tags": ["Core", "Active"]
}
]
}
To create a database with preseeded entries in the default page specified in the .env
file, run:
python cli.py --schema plugins/schema.json --entries plugins/entries.json
If you want to create an empty database without adding entries, simply omit the --entries
argument:
python cli.py --schema plugins/schema.json
To create a database in a specific Notion page by providing the --page-id
argument, use:
python cli.py --schema plugins/schema.json --entries plugins/entries.json --page-id your_target_page_id
Note: Providing the --page-id
argument will override the NOTION_PAGE_ID
specified in the .env
file for that execution.
cli.py
: The main entry point for creating databases and entries.notion_client/
: Contains API integration logic and models.plugins/
: Store your schema and entry JSON files here. This folder is .gitignore
d for privacy and customization.Logs are automatically generated in notion_automation.log
. Check the logs for detailed information on API calls and errors.
FAQs
Automate Notion database creation with JSON schemas
We found that notion-automation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.