Skip to main content

AutoDLA

A lightweight, powerful and modern ORM focused on simplifying development.

Documentation

Installation

Using PyPi

pip install autodla

From source

git clone https://github.com/GuzhiRegem/autoDLA.git
cd autoDLA/
pip install .

Features

To keep AutoDLA as lightweight as possible, you need to install separatelly the features you need to use, that includes the DataBase connection you are going to use, to install a feature, you can run the installation command as follows:

pip install autodla[<package_name>]

For example, PostgreSQL connection:

pip install autodla[db-postgres]

MemoryDB comes bundled with AutoDLA for quick prototyping without any external dependencies.

How to use

AutoDLA works with models, to start, you'll need to first build a usable model that inherits from Object:

from autodla import Object, primary_key

class User(Object):
    id: primary_key = primary_key.auto_increment()
    name: str
    age: int

WARNING: For model definition there is 1 rule to ensure good data integrity:

  • Each Model should have one and only one field of type primary_key (id in this case)

If you try to use this, it will fail, as the main focus of the library is to interact with a DataBase, you need a DataBase connection, we'll use PostgreSQL for this example.

pip install autodla[db-postgres] #install db connector

We need to instanciate the DataBase and then attach the Model into it.

from autodla.dbs import PostgresDB, MemoryDB

# Use MemoryDB() for pure in-memory work. PostgresDB maintains a local
# SQLite store and syncs it to PostgreSQL in the background.
db = MemoryDB()
db.attach([User])

Done!

You now can use your object as you would normally and the changes are going to be reflected on the DataBase, enjoy!


Uses

Create a user

user = User.new(name="John", age=30)

Retrieve all users

users = User.all(limit=None, skip=0)

Integrity of python id for the percieved same object

print(id(user) === id(users[-1]))
# This prints True

This is protected under MIT licence

Metadata

Release files for autodla 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for autodla 0.2.8
File Size Uploaded Provenance
autodla-0.2.8.tar.gz 197.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for autodla 0.2.8
File Interpreter ABI Platform
autodla-0.2.8-py3-none-any.whl Python 3 none any Details

Total release size: 397.0 kB

Release files / autodla-0.2.8.tar.gz

Download URL autodla-0.2.8.tar.gz
Size 197.7 kB
Tags Source
SHA-256 checksum
How to use checksums
63ff49b4689f4bb3df01a7b979c28a3213b6c3cefba415d7370d4f3f47407661
BLAKE2b-256 checksum
How to use checksums
8eb94c20a7e439a1dd5063cd7cb2b0376c33753e7d737d43078fe3a42d07401e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2025.

Transparency log

Release files / autodla-0.2.8-py3-none-any.whl

Download URL autodla-0.2.8-py3-none-any.whl
Size 199.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd85e231073b32998353b439af6d7bf1c2b3a2aaf38c24eb023813a29fd2eb87
BLAKE2b-256 checksum
How to use checksums
a0ba6eb2a988acc21c9482ca77884188b37cab1573173a47805714afecd28ca9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2025.

Transparency log

Security for autodla 0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for autodla-0.2.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 30, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page