An implementation for SQLAlchemy-based applications of the nested-sets/modified-pre-order-tree-traversal technique for storing hierarchical data in a relational database.
Project description
SQLAlchemy-ORM-tree
An implementation for SQLAlchemy-based applications of the nested-sets / modified-pre-order-tree-traversal technique for storing hierarchical data in a relational database.
Python support |
Python 2.6+, 3.3+ |
SQLAlchemy |
SQLAlchemy >=0.7.5, >=0.8, >=0.9 |
Source |
|
Issues |
|
Docs |
|
API |
|
Travis |
|
Test coverage |
|
pypi |
|
ohloh |
|
License |
BSD. |
git repo |
|
install |
|
install dev |
|
tests |
|
Simple Example
import sqlalchemy_tree Model = declarative_base(metaclass=sqlalchemy_tree.DeclarativeMeta) class Page(Model): # This activates sqlalchemy-orm-tree. __tree_manager__ = 'tree'
Page.tree.register()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sqlalchemy-orm-tree2-0.4.0.tar.gz
(46.2 kB
view hashes)
Built Distribution
Close
Hashes for sqlalchemy-orm-tree2-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6723ed57d42e480aa50c4bb7f1e02ab3179b8412dc7f066d7fcd1a3e6ef7702f |
|
MD5 | 2e704cf9e595b30d4678990934236a96 |
|
BLAKE2b-256 | 760a2c765585f3fda39f07433039aedd85124ee389bf33a8ce48655139e94d62 |
Close
Hashes for sqlalchemy_orm_tree2-0.4.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d07abab2a8322bed27e25101b31cc967d96a6aca510aec4234a7c30ef072311 |
|
MD5 | acb2cde3353af299c84cf2fd03dcd29b |
|
BLAKE2b-256 | d58e41f89b418ea7c233097316135a67875d89c88eaff078287142e8562e9848 |