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.5.0.tar.gz
(46.1 kB
view hashes)
Close
Hashes for sqlalchemy-orm-tree2-0.5.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 626563f2af772e8271f18435a60e03ee8e46ec659194cd18db4daa2ad79e65de |
|
MD5 | 999ae2c954627c35fee90af7a198f162 |
|
BLAKE2b-256 | a0c8ce72f0cdae8a709325f1b0759fdbffff56b3151ae16166c5960df32e7017 |