Skip to main content

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

https://travis-ci.org/monetizeio/sqlalchemy-orm-tree.png?branch=master https://badge.fury.io/py/SQLAlchemy-ORM-tree.png https://coveralls.io/repos/monetizeio/sqlalchemy-orm-tree/badge.png?branch=master

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 https://github.com/monetizeio/sqlalchemy-orm-tree
Issues https://github.com/monetizeio/sqlalchemy-orm-tree/issues
Docs https://sqlalchemy-orm-tree.readthedocs.org/
API https://sqlalchemy-orm-tree.readthedocs.org/api.html
Travis http://travis-ci.org/monetizeio/sqlalchemy-orm-tree
Test coverage https://coveralls.io/r/monetizeio/sqlalchemy-orm-tree
pypi https://pypi.python.org/pypi/sqlalchemy-orm-tree
ohloh http://www.ohloh.net/p/sqlalchemy-orm-tree
License BSD.
git repo
$ git clone https://github.com/monetizeio/sqlalchemy-orm-tree.git
install
$ pip install sqlalchemy-orm-tree
install dev
$ git clone https://github.com/monetizeio/sqlalchemy-orm-tree.git sqlalchemy-orm-tree
$ cd ./sqlalchemy-orm-tree
$ virtualenv .env
$ source .env/bin/activate
$ pip install -e .
tests
$ python setup.py test

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

This version
History Node

0.4.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
sqlalchemy_orm_tree2-0.4.0-py2-none-any.whl (53.5 kB) Copy SHA256 hash SHA256 Wheel 2.7
sqlalchemy-orm-tree2-0.4.0.tar.gz (46.2 kB) Copy SHA256 hash SHA256 Source None

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