Skip to main content

A PostgreSQL ORM

Project description

This is my effort to create an ORM which would take full advantage from PostgresSQL. It is currently under steady development.

Philosophy

  1. PostgresSQL is great. However portable ORM’s use it like SQLite. To use all features of Postgres we need to drop portability to weaker engines.

  2. Simple things should be simple, complicated things should be possible. The ORM should guess all the obvious things, but allow to override them.

  3. Where possible use pythonic EAFP strategy. If database seems to be not in sync with ORM try to migrate.

  4. The interaction with persistent objects should be as seamless and pythonic as possible

DONE

  1. Simple tables.

  2. Inheritance.

  3. Simplest one-to-many and many-to-one

  4. Many-to-many

  5. EAFP table creation

  6. Simplest identities

  7. Dependent and independent relations

  8. Some documentation

  9. Tree decorator for simple parent_id tree

  10. List-like relations

TODO

  1. Dict-like relations

  2. Advanced primary keys

  3. Concurrency control and conflict detection

  4. Advanced identities

  5. EAFP table migration

  6. Joined loading strategy

  7. Full documentation

  8. MPTT trees

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

Elephantoplasty-0.0.4.zip (37.7 kB view details)

Uploaded Source

Elephantoplasty-0.0.4.tar.bz2 (19.0 kB view details)

Uploaded Source

File details

Details for the file Elephantoplasty-0.0.4.zip.

File metadata

File hashes

Hashes for Elephantoplasty-0.0.4.zip
Algorithm Hash digest
SHA256 268f458b8e421ee469ba5f01f7c8173d5ddeb1239ecec76b3a8c37e081e7a09f
MD5 b1d3e1a86dc07d4a3af720b1d1a9fe4e
BLAKE2b-256 9e9544577b71a33d3fee0e0a6932eba50b60bbac5d8de5ece170bb1ade689b05

See more details on using hashes here.

File details

Details for the file Elephantoplasty-0.0.4.tar.bz2.

File metadata

File hashes

Hashes for Elephantoplasty-0.0.4.tar.bz2
Algorithm Hash digest
SHA256 726178677fc941b6d7665f15062dae7e35809ebd4ff4264abbeb7a8dc9da830a
MD5 2e472a911716782cab314a0e8949067e
BLAKE2b-256 780fbbe5757f5fc79169f3bd5255a0f366a6253bd1516c935b5e92f68cc7c8d6

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