Skip to main content

A descriptive ORM for Python

Project description

Krude: A Descriptive ORM for Python

Krude is a simple, lightweight ORM for Python which owes its ease-of-use to the fact that it is a descriptive ORM rather than a prescriptive one. What does that mean? It means you can connect to your existing database, and Crude will automatically generate an API in which you can interact with your data in an object-oriented manner:

from krude import connect

table_builder = connect("./mydatabase.db")          # Your SQLite Database
MyTable = table_builder.create("mytable")           # A table in your database
my_record = Mytable.load(myPrimaryKeyColumn=1)      # Load using primary key(s)  
value = my_record.myTextColumn                      # Read from DB
my_record.myTextColumn = "Hello, world"             # Write to DB

Krude currently supports all CRUD operations on Sqlite databases. Further operations and database engines will be supported soon.

Download and Install

The latest stable version of Krude can be installed using pip install krude. You may also download all releases from the official GitHub repository.

Homepage and Documentation

The official Krude homepage, as well as the latest API documentation, can be found at https://krude.net

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

crude_orm-1.0.0.tar.gz (8.9 kB view hashes)

Uploaded Source

Built Distribution

crude_orm-1.0.0-py3-none-any.whl (6.6 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