A Lightweight data model management for Python
Project description
Conger
Lightweight data model management for Python ecosystem.
Specifically, conger
provides a management interface for easy previewing, editing, and storing data models (defined by pydantic or dataclass).
Install
If you using rye (recommended), you can install conger
as a dependency of your project:
rye add conger
or pip:
python -m pip install conger
Quick Start
- Define your data model (e.g.
Person
):
from conger import BaseModel, Field
class Person(BaseModel):
name: str
age: int = Field(..., gt=18, lt=100)
- Add this data model to flask app:
from flask import Flask
import pickledb
from conger import Conger
app = Flask(__name__)
db = pickledb.load("db.json", True)
conger = Conger(app, database=db)
"""
your data model
"""
conger.add_model(Person)
if __name__ == "__main__":
app.run()
LICENSE MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
congers-0.1.0.tar.gz
(618.0 kB
view hashes)