Skip to main content

SQLAlchemy-ORM

ORM framework for Python. Designed for simplicity, based on SQLAlchemy.

coverage report

pipeline status

Check out the tests directory for more examples.

Basic Example

from sqlalachemy_orm import Model, Database

Base = Model()

class Animal(Base):
    name: str
    age: int

db = Database("sqlite:///:memory:") # use an in-memory SQLite database
db.create(Animal)  # Create the `Animal` table in the database

bea = Animal(name="bea", age=5)

session = db.session()
session.create(bea) # Create a row in the `Animal` table

print(session.query(Animal).filter(Animal.name == "bea").one())

session.commit() # commit the session to the database
$ python example.py
>>> Animal(name='bea', age=5)

Metadata

Release files for sqlalchemy-orm 1.2.10

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

Source distribution (sdist)

Source distribution for sqlalchemy-orm 1.2.10
File Size Uploaded Provenance
sqlalchemy-orm-1.2.10.tar.gz 21.8 kB Without provenance Details

Release files / sqlalchemy-orm-1.2.10.tar.gz

Download URL sqlalchemy-orm-1.2.10.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ab46d2a54a429d4fd384df9a37ad639dc87ff93be5205ed649c5ca4dad164bb
BLAKE2b-256 checksum
How to use checksums
c898b0451ae949f8b16287965d4fc4a180fae50a78d9b186300e135ec22e1883
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.3

Security for sqlalchemy-orm 1.2.10

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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