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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for congers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ff1951f7d412d61f0b5830e140f34eab5a5c9aa94668c261ae89af5aee28809c
MD5 e9fe338f6a46bdb8bc546f6322f7e1dc
BLAKE2b-256 20fcd1ad4c8b5faefcbc9d2a612e34fca10ff9eae355c46c27d77f45a255e160

See more details on using hashes here.

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

Hashes for congers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4055115be18cba3e7fd6737107881a656860af635af32f1ebae8c1672756b665
MD5 a0c49eb02e50fc622df76d7a17e41481
BLAKE2b-256 c80ef4e01f9d4c39e6c6323b1d84155ba257178fe6b094a98913be545840dd5d

See more details on using hashes here.

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