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)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-orm-1.2.10.tar.gz (21.8 kB view details)

Uploaded Source

File details

Details for the file sqlalchemy-orm-1.2.10.tar.gz.

File metadata

  • Download URL: sqlalchemy-orm-1.2.10.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for sqlalchemy-orm-1.2.10.tar.gz
Algorithm Hash digest
SHA256 7ab46d2a54a429d4fd384df9a37ad639dc87ff93be5205ed649c5ca4dad164bb
MD5 2e5d3a2b10394722e2419aa08d73e79c
BLAKE2b-256 c898b0451ae949f8b16287965d4fc4a180fae50a78d9b186300e135ec22e1883

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.10 This release

1 file

1.2.9

1 file

1.2.8

1 file

1.2.7

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page