Skip to main content

SQLAlchemy-OrderingItem provides an OrderingItem base for children of orderinglist relationships.

Project description

SQLAlchemy-OrderingItem

SQLAlchemy-OrderingItem provides an OrderingItem base for children of orderinglist relationships. Children of orderinglist relationships will exhibit more intuitive behavior when setting their parent attribute.

License

Publications which use this software should include the following citation for SQLAlchemy-OrderingItem:

Bowen, D.S. (2019). SQLAlchemy-OrderingItem [Computer software]. https://dsbowen.github.io/sqlalchemy-orderingitem.

This project is licensed under the MIT License LICENSE.

Example

Suppose we have a child of an orderinglist relationship. The orderinglist sorts childen on their index column.

Ordinary behavior:

child.parent = parent
print(child.index)

Outputs:

None

Behavior with the OrderingItem subclass:

child.parent = parent
print(child.index)

Outputs:

0

Project details


Download files

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

Files for sqlalchemy-orderingitem, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size sqlalchemy_orderingitem-0.0.2-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sqlalchemy-orderingitem-0.0.2.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page