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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file congers-0.1.0.tar.gz.
File metadata
- Download URL: congers-0.1.0.tar.gz
- Upload date:
- Size: 618.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff1951f7d412d61f0b5830e140f34eab5a5c9aa94668c261ae89af5aee28809c
|
|
| MD5 |
e9fe338f6a46bdb8bc546f6322f7e1dc
|
|
| BLAKE2b-256 |
20fcd1ad4c8b5faefcbc9d2a612e34fca10ff9eae355c46c27d77f45a255e160
|
File details
Details for the file congers-0.1.0-py3-none-any.whl.
File metadata
- Download URL: congers-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4055115be18cba3e7fd6737107881a656860af635af32f1ebae8c1672756b665
|
|
| MD5 |
a0c49eb02e50fc622df76d7a17e41481
|
|
| BLAKE2b-256 |
c80ef4e01f9d4c39e6c6323b1d84155ba257178fe6b094a98913be545840dd5d
|