Metadata-Version: 2.1
Name: notionflow
Version: 0.1.0
Summary: 
License: MIT
Author: nekanat
Author-email: nekanat.stock@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: notion-client (>=2.0.0,<3.0.0)
Requires-Dist: plotly (>=5.14.1,<6.0.0)
Requires-Dist: pydantic (>=1.10.7,<2.0.0)
Description-Content-Type: text/markdown

# notionflow

**WIP**
Notionflow is a library for experiment management in machine learning on notion.

## Installation

```bash
pip install notionflow
```

## Quick start

```bash
export NOTION_TOKEN=<your notion token>
export NOTION_PARENT_PAGE_ID=<parent page id>
```

```py
import notionflow as nf

nf.create_database("database1", {"param1": "number"}, {"recall": "number"})

with nf.start_page(page_name="page1") as page:
    nf.log_param("param1", 1.0)
    nf.log_metric("recall", 0.5)

with nf.start_page(page_name="page2") as page:
    nf.log_param("param1", 2.0)
    nf.log_metric("recall", 0.1)
```
