Skip to main content

A tiny SQLite ORM for Python.

Project description

dorm

Build Status

A small SQLite ORM for Python 3. You probably shouldn't use this, but if you want to anyway, look at the tests for how to do so.

Migrations

Dorm has the most basic migration support imaginable:

# Generates a schema migration if it detects any changes.
python -m dorm --db=books.db --models=project.models --migrations=project.migrations generate

# Migrates to the latest migration (sorted by filename in the --migrations module).
python -m dorm --db=books.db --models=project.models --migrations=project.migrations migrate

Existing migrations are run automatically when calling dorm.setup with the migrations argument set. This is to ensure a good first-run experience and automatic upgrades for end users. If migrations is not set, any detected schema changes will be applied automatically to the database.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dorm-0.1.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file dorm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dorm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.2

File hashes

Hashes for dorm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62c2bcb4ffd4cf92727d5a22fa24eca1bcfabbc64ef6eb3cfade0beb5918495c
MD5 71549b71991caeccc8d26396f355d3e6
BLAKE2b-256 ef70e23fd06a57f1b8b008d03a02b0ba92c15dbab9202aa034be5ddf175c5280

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