{ "info": { "author": "Matthias Kestenholz", "author_email": "mk@feinheit.ch", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development" ], "description": "===================\ndjango-tree-queries\n===================\n\n.. image:: https://travis-ci.org/matthiask/django-tree-queries.svg?branch=master\n :target: https://travis-ci.org/matthiask/django-tree-queries\n\nQuery Django model trees using adjacency lists and recursive common\ntable expressions. Supports PostgreSQL, sqlite3 (3.8.3 or higher) and\nMariaDB (10.2.2 or higher), maybe also MySQL 8.0 but I found no easy way\nto test against it.\n\nSupports Django 1.8, 1.11 or better, Python 2.7 and 3.4 or better. See\nthe Travis CI build for more details.\n\n\nFeatures and limitations\n========================\n\n- Supports only integer primary keys.\n- Allows specifying ordering among siblings.\n- Uses the correct definition of depth, where root nodes have a depth of\n zero.\n- The parent foreign key must be named ``\"parent\"`` at the moment (but\n why would you want to name it differently?)\n- The fields added by the common table expression always are\n ``tree_depth``, ``tree_path`` and ``tree_ordering``. The names cannot\n be changed. ``tree_depth`` is an integer, ``tree_path`` an array of\n primary keys and ``tree_ordering`` an array of values used for\n ordering nodes within their siblings.\n- Besides adding the fields mentioned above the package only adds\n queryset methods for filtering ancestors and descendants. Other\n features may be useful, but will not be added to the package just\n because it's possible to do so.\n- Little code, and relatively simple when compared to other tree\n management solutions for Django. No redundant values so the only way\n to end up with corrupt data is by introducing a loop in the tree\n structure (making it a graph). The ``TreeNode`` abstract model class\n has some protection against this.\n\n\nUsage\n=====\n\n- Install ``django-tree-queries`` using pip.\n- Extend ``tree_queries.models.TreeNode`` or build your own queryset\n and/or manager using ``tree_queries.query.TreeQuerySet``. The\n ``TreeNode`` abstract model already contains a ``parent`` foreign key\n for your convenience and also uses model validation to protect against\n loops.\n- Call the ``with_tree_fields()`` queryset method if you require the\n additional fields respectively the CTE.\n- Until documentation is more complete I'll have to refer you to the\n `test suite\n `_\n for additional instructions and usage examples.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/matthiask/django-tree-queries/", "keywords": "", "license": "BSD License", "maintainer": "", "maintainer_email": "", "name": "django-tree-queries", "package_url": "https://pypi.org/project/django-tree-queries/", "platform": "OS Independent", "project_url": "https://pypi.org/project/django-tree-queries/", "project_urls": { "Homepage": "https://github.com/matthiask/django-tree-queries/" }, "release_url": "https://pypi.org/project/django-tree-queries/0.3.3/", "requires_dist": null, "requires_python": "", "summary": "Tree queries with explicit opt-in, without configurability", "version": "0.3.3" }, "last_serial": 5877934, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d9d5b8983fa2f0407b82dd014953cce0", "sha256": "7fd7880507c10f17da91f49cf0cd40ae42a70436223cbe8a7cfaae5529d7ec92" }, "downloads": -1, "filename": "django-tree-queries-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d9d5b8983fa2f0407b82dd014953cce0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5495, "upload_time": "2018-07-28T02:55:43", "url": "https://files.pythonhosted.org/packages/e0/36/43a7c00ce2a3a49d2027ca2f3b880bca6d24f44783f56c51d3a07a50cd75/django-tree-queries-0.0.1.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "80f5516e467b10310e173147f41c77b2", "sha256": "e59d0e05018352f8b9ce20ebbbea1296b3a8a2539ab4085fd7c0cd66f97e1a91" }, "downloads": -1, "filename": "django_tree_queries-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "80f5516e467b10310e173147f41c77b2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9867, "upload_time": "2018-07-30T10:33:54", "url": "https://files.pythonhosted.org/packages/3e/fd/a31fe00a49640798d5d8cae51bdd7c2a3e712518a0efee4d9441454ddbc1/django_tree_queries-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9338e30eab0a416d3813a0a7b05dfe40", "sha256": "592b13168534072c356e7216b40f7ce7584d60be8d19f358fefc29adadff9a03" }, "downloads": -1, "filename": "django-tree-queries-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9338e30eab0a416d3813a0a7b05dfe40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7403, "upload_time": "2018-07-30T10:33:56", "url": "https://files.pythonhosted.org/packages/f8/66/76c8026cdecf174431e8702e5ce38d11e5b2ca50c52f39b069ee9896e2c8/django-tree-queries-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ebd30351eff43f025498db8db1533c12", "sha256": "288214a930650a80dd6cabb1b3a6032874f4c79811f94f03210e0192b8d3d3c0" }, "downloads": -1, "filename": "django_tree_queries-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ebd30351eff43f025498db8db1533c12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9966, "upload_time": "2018-08-16T07:05:32", "url": "https://files.pythonhosted.org/packages/07/42/35cc41182edc2a299f191bc9c81f018a84cc1fa40eb6cde3480e823710f1/django_tree_queries-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d14445472a604c70ef6096f6da767e83", "sha256": "610b16213fe1e41d6ffdbd8330f4c310269b8fec583045f9d0358b13f1d538d0" }, "downloads": -1, "filename": "django-tree-queries-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d14445472a604c70ef6096f6da767e83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7449, "upload_time": "2018-08-16T07:05:34", "url": "https://files.pythonhosted.org/packages/df/43/544cded4d5fb1cd966adf59aa7ae283906a7d43edfe6c7f2933097af328d/django-tree-queries-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7b5e9309a6a8cdd280c3a1869d23617c", "sha256": "4dafd55be308a1615940dec638ca766a2f3268a89d3a6bf3703f128a612566cb" }, "downloads": -1, "filename": "django_tree_queries-0.2.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7b5e9309a6a8cdd280c3a1869d23617c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10835, "upload_time": "2018-10-04T07:57:39", "url": "https://files.pythonhosted.org/packages/b1/e3/2738f1e7af80d091d8c020b3264c41cd48434f9f4b470789ec6b6fdc7e73/django_tree_queries-0.2.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2963269369b73189f04d5a6fd8b23dd4", "sha256": "f74bd2e830180f3ad4433d3cb63780ac9ddb64549f2927599d661c5e3f87be29" }, "downloads": -1, "filename": "django-tree-queries-0.2.0.tar.gz", "has_sig": false, "md5_digest": "2963269369b73189f04d5a6fd8b23dd4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7829, "upload_time": "2018-10-04T07:57:41", "url": "https://files.pythonhosted.org/packages/f4/87/548904c5009da97c19998254126f8f9544fe059df1d56fc8d002108daec0/django-tree-queries-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "a3922e49935cb194bff207af9b03db63", "sha256": "a1532004662e7031f179e2923226a168d270fa61c3ff25beb00560d202c49a34" }, "downloads": -1, "filename": "django_tree_queries-0.2.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a3922e49935cb194bff207af9b03db63", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10866, "upload_time": "2018-10-04T08:53:56", "url": "https://files.pythonhosted.org/packages/0e/37/a45333624fda8e9dbaf89fbaa2808ca29cdf092a33093829ae9378b2954b/django_tree_queries-0.2.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5d43f4372b0a1c4bf59a621e28025b08", "sha256": "4cde79699d087f2a9a81c58ee45341b8a66f4eb330fab555553432eec1c21235" }, "downloads": -1, "filename": "django-tree-queries-0.2.1.tar.gz", "has_sig": false, "md5_digest": "5d43f4372b0a1c4bf59a621e28025b08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7840, "upload_time": "2018-10-04T08:53:58", "url": "https://files.pythonhosted.org/packages/79/ea/c92232fbe4d63feb371d066833d947c272651b2ceebbaeec344ae55e7bc7/django-tree-queries-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a42f475a94a3b26d5b29da80d10bf10a", "sha256": "4c1e93f6e297f927b44fc58ab6f61473e2193a8e082e4b4f2a65489da5db709e" }, "downloads": -1, "filename": "django_tree_queries-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a42f475a94a3b26d5b29da80d10bf10a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11021, "upload_time": "2018-11-15T13:07:05", "url": "https://files.pythonhosted.org/packages/5c/29/d07d63b34ea63bc3a7509cee2727e9f4dc2c5c904aa87d597759d0acbf30/django_tree_queries-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cc6da948b6dea5bd3289aede9e236f4", "sha256": "73030ddab1c8a9b2142c6c1c30b16a07a42ec6eabd6b4ad7e1546a5ca3055e3c" }, "downloads": -1, "filename": "django-tree-queries-0.3.0.tar.gz", "has_sig": false, "md5_digest": "3cc6da948b6dea5bd3289aede9e236f4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7943, "upload_time": "2018-11-15T13:07:08", "url": "https://files.pythonhosted.org/packages/ab/83/1b9b69adcbe399b27a337986ff922f8e758c85c33ca86707fc8ce73b38a9/django-tree-queries-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "7f2acdb6d129aa866fb90090ed0482ca", "sha256": "a1c4d57d01513b79229371da009e4adb0c1b1bb6e06802ac8f19610bd3cd990d" }, "downloads": -1, "filename": "django_tree_queries-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7f2acdb6d129aa866fb90090ed0482ca", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11007, "upload_time": "2018-11-23T11:17:39", "url": "https://files.pythonhosted.org/packages/ec/21/3e0b8db75ad494ac11746018c658cc5a33dc5ebf5de8c6a2c6ba6d53d733/django_tree_queries-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "35a46036f20c8dd4be6189aaeeed75f8", "sha256": "999b5951ad259deed967c5c0b8725c2b1e265d9ff979c98f96e627eef4bcc011" }, "downloads": -1, "filename": "django-tree-queries-0.3.1.tar.gz", "has_sig": false, "md5_digest": "35a46036f20c8dd4be6189aaeeed75f8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7944, "upload_time": "2018-11-23T11:17:40", "url": "https://files.pythonhosted.org/packages/7a/18/f81a3118507d72cb8205072e9345bc51c3d30d690e653b4bf4e6b993b0ab/django-tree-queries-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "f273ff89531ddc4a606afc272f88107f", "sha256": "8340f84c398483d13fa33a17221998661a9b40336991eb78d83d54afd1a35cb9" }, "downloads": -1, "filename": "django_tree_queries-0.3.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f273ff89531ddc4a606afc272f88107f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11104, "upload_time": "2018-12-11T11:49:43", "url": "https://files.pythonhosted.org/packages/46/25/159438bd1a4f1c9069a186e4f9947cedcb2810998b1aac27e6646190b282/django_tree_queries-0.3.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ff40bb6c9af692cd3a063dbb45ec36d3", "sha256": "377b24c7c42b098c3584448143931876ba5d0914c050118d5c820cd9f747ea9b" }, "downloads": -1, "filename": "django-tree-queries-0.3.2.tar.gz", "has_sig": false, "md5_digest": "ff40bb6c9af692cd3a063dbb45ec36d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8020, "upload_time": "2018-12-11T11:49:44", "url": "https://files.pythonhosted.org/packages/14/c5/ea3a44ef4ac2aefb787f0bbcb7c2902776af1f1ebe0b9ca1adc6b5e4ca42/django-tree-queries-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "42190163ed5212c7bb9e9e794c125246", "sha256": "0e9d89b66b12ffdb1ef4668bcd7bec1bb401323e681ead492d97077833f477bd" }, "downloads": -1, "filename": "django_tree_queries-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42190163ed5212c7bb9e9e794c125246", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11119, "upload_time": "2019-02-07T09:10:08", "url": "https://files.pythonhosted.org/packages/c8/fe/8b3d419c378682b4edffd396202a96ab286ce487c0a5bc09d2af85b6b996/django_tree_queries-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5d503d8ba3adda379269b21345c5b3a", "sha256": "6680031216693e2a89dcbd7ec79d92f334b2e138ae6c1ef5d5486413fab5712e" }, "downloads": -1, "filename": "django-tree-queries-0.3.3.tar.gz", "has_sig": false, "md5_digest": "e5d503d8ba3adda379269b21345c5b3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7975, "upload_time": "2019-02-07T09:10:10", "url": "https://files.pythonhosted.org/packages/fb/5e/f9d2331f6f2574fda344294fcc9a7b5d46197f72e2d9a1c375b888e964d3/django-tree-queries-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "42190163ed5212c7bb9e9e794c125246", "sha256": "0e9d89b66b12ffdb1ef4668bcd7bec1bb401323e681ead492d97077833f477bd" }, "downloads": -1, "filename": "django_tree_queries-0.3.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "42190163ed5212c7bb9e9e794c125246", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 11119, "upload_time": "2019-02-07T09:10:08", "url": "https://files.pythonhosted.org/packages/c8/fe/8b3d419c378682b4edffd396202a96ab286ce487c0a5bc09d2af85b6b996/django_tree_queries-0.3.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e5d503d8ba3adda379269b21345c5b3a", "sha256": "6680031216693e2a89dcbd7ec79d92f334b2e138ae6c1ef5d5486413fab5712e" }, "downloads": -1, "filename": "django-tree-queries-0.3.3.tar.gz", "has_sig": false, "md5_digest": "e5d503d8ba3adda379269b21345c5b3a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7975, "upload_time": "2019-02-07T09:10:10", "url": "https://files.pythonhosted.org/packages/fb/5e/f9d2331f6f2574fda344294fcc9a7b5d46197f72e2d9a1c375b888e964d3/django-tree-queries-0.3.3.tar.gz" } ] }