Skip to main content
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()

Metadata

Release files for sqlalchemy-orm-tree2 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sqlalchemy-orm-tree2 0.5.1
File Size Uploaded
sqlalchemy-orm-tree2-0.5.1.tar.gz 46.1 kB Details

Release files / sqlalchemy-orm-tree2-0.5.1.tar.gz

Download URL sqlalchemy-orm-tree2-0.5.1.tar.gz
Size 46.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0c0234ba54b35e9db206f60ac67d098433ae8d7d04bfd441e472bd71c279eb17
BLAKE2b-256 checksum
How to use checksums
5b1f94389f31acd72cf2789b262813f5ae079a550b98c90edccb71869331375c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Python-urllib/3.7

Release history Release notifications | RSS feed

This release

0.5.1 This release

1 release file

0.5.0

1 release file

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page