Skip to content

Commit

Permalink
feat: add CLI for database creation, update .gitignore, and remove ol…
Browse files Browse the repository at this point in the history
…d JSON configs

- Introduced a new `cli.py` script using `Click` for creating Notion databases.
- Updated `.gitignore` to include the `plugins` directory.
- Removed outdated JSON configuration files for client engagement, fashion recommender, and training tasks.
- Added new tests for the Notion client, configuration, and model modules.
- Refactored Notion API client and configuration loading for better modularity.
  • Loading branch information
atxtechbro committed Sep 13, 2024
1 parent 1642c48 commit e892ca2
Show file tree
Hide file tree
Showing 23 changed files with 418 additions and 1,938 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ venv/
# VSCode settings
.vscode/

plugins

17 changes: 17 additions & 0 deletions cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import click
from notion_client.api import NotionClient
from notion_client.config import ConfigManager

@click.group()
def cli():
pass

@cli.command()
@click.option('--schema', required=True, help='Schema name without extension.')
@click.option('--tasks', required=True, help='Tasks name without extension.')
def create_database(schema, tasks):
# Implementation as above
pass

if __name__ == "__main__":
cli()
288 changes: 0 additions & 288 deletions config/database_configs/client_engagement_tracker.json

This file was deleted.

52 changes: 0 additions & 52 deletions config/database_configs/email-capture-validation-task.json

This file was deleted.

Loading

0 comments on commit e892ca2

Please sign in to comment.