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
Built Distribution
Hashes for sqlalchemy-orderingitem-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1dd536ef10d846afb97aafd3252b04510f6483000628dc2a49d3e144588b557 |
|
MD5 | 2daf3fa29d2e3ae0a09c21d461e4735a |
|
BLAKE2b-256 | 8b9ef371835372e6a63804651aa040585c769600c5b8700170ed27a24e67b490 |
Hashes for sqlalchemy_orderingitem-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47a562793916589c8ac1159384f50472f8683062570f3a2d3328bd60cc7653be |
|
MD5 | 4e22291787ce59c6e9a11c76690f3bda |
|
BLAKE2b-256 | 393421b8914a788a1845e51b14c6e1358f18a72c8865dba4df2cd3d011ff6c0c |