Skip to main content

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

  1. Define your data model (e.g. Person):
from conger import BaseModel, Field

class Person(BaseModel):
    name: str
    age: int = Field(..., gt=18, lt=100)
  1. 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()
  1. visit http://127.0.0.1:500/conger/

LICENSE MIT

Project details


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)

Uploaded Source

Built Distribution

congers-0.1.0-py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page