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.

Source Distribution

sqlalchemy-orderingitem-0.0.3.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

sqlalchemy_orderingitem-0.0.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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