django-teryt-tree


Namedjango-teryt-tree JSON
Version 0.18.4 PyPI version JSON
download
home_pagehttps://github.com/ad-m/django-teryt-tree
SummaryDjango-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.
upload_time2023-09-23 22:33:08
maintainer
docs_urlNone
authorAdam Dobrawy
requires_python>=3.10
licenseBSD 3-Clause License Copyright (c) 2023, Sieć Obywatelska - Watchdog Polska Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords django-teryt-tree
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =============================
django-teryt-tree
=============================

.. image:: https://badge.fury.io/py/django-teryt-tree.png
    :target: https://badge.fury.io/py/django-teryt-tree

.. image:: https://coveralls.io/repos/ad-m/django-teryt-tree/badge.svg?branch=master&service=github
    :target: https://coveralls.io/github/ad-m/django-teryt-tree?branch=master 

Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt and flat SIMC database.

Documentation
-------------

The full documentation is at https://django-teryt-tree.readthedocs.org.

Quickstart
----------

Install django-teryt-tree::

    pip install django-teryt-tree


Then add to INSTALLEDA__APPS::

    INSTALLED_APPS+=('teryt_tree')

Then use it in a project::

    import teryt_tree

or::

    from teryt_tree.models import JednostkaAdministracyjna

To load TERC register database visit http://eteryt.stat.gov.pl/eTeryt/rejestr_teryt/udostepnianie_danych/baza_teryt/uzytkownicy_indywidualni/pobieranie/pliki_pelne.aspx?contrast=default to download valid database. Next to execute following commands::

    pip install lxml
    python manage.py load_teryt --input TERC.xml

To load SIMC register download valid database. Next to execute following commands::

    python manage.py load_simc --input SIMC.xml

Features
--------

* Import database from official exports - TERC and SIMC database.
* Store data as modified pre-order traversal tree for effective regional query
* Support format of teryt.stat.gov.pl and eteryt.stat.gov.pl

Cookiecutter Tools Used in Making This Package
----------------------------------------------

*  cookiecutter
*  cookiecutter-djangopackage

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ad-m/django-teryt-tree",
    "name": "django-teryt-tree",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "",
    "keywords": "django-teryt-tree",
    "author": "Adam Dobrawy",
    "author_email": "Adam Dobrawy <adam.dobrawy@siecobywatelska.pl>",
    "download_url": "https://files.pythonhosted.org/packages/79/16/d56b7f635419a948daa1673d5841188980420d3b1b6852f7b5745790361c/django-teryt-tree-0.18.4.tar.gz",
    "platform": null,
    "description": "=============================\ndjango-teryt-tree\n=============================\n\n.. image:: https://badge.fury.io/py/django-teryt-tree.png\n    :target: https://badge.fury.io/py/django-teryt-tree\n\n.. image:: https://coveralls.io/repos/ad-m/django-teryt-tree/badge.svg?branch=master&service=github\n    :target: https://coveralls.io/github/ad-m/django-teryt-tree?branch=master \n\nDjango-teryt-tree is a Django app that implements TERYT database as tree by django-mptt and flat SIMC database.\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-teryt-tree.readthedocs.org.\n\nQuickstart\n----------\n\nInstall django-teryt-tree::\n\n    pip install django-teryt-tree\n\n\nThen add to INSTALLEDA__APPS::\n\n    INSTALLED_APPS+=('teryt_tree')\n\nThen use it in a project::\n\n    import teryt_tree\n\nor::\n\n    from teryt_tree.models import JednostkaAdministracyjna\n\nTo load TERC register database visit http://eteryt.stat.gov.pl/eTeryt/rejestr_teryt/udostepnianie_danych/baza_teryt/uzytkownicy_indywidualni/pobieranie/pliki_pelne.aspx?contrast=default to download valid database. Next to execute following commands::\n\n    pip install lxml\n    python manage.py load_teryt --input TERC.xml\n\nTo load SIMC register download valid database. Next to execute following commands::\n\n    python manage.py load_simc --input SIMC.xml\n\nFeatures\n--------\n\n* Import database from official exports - TERC and SIMC database.\n* Store data as modified pre-order traversal tree for effective regional query\n* Support format of teryt.stat.gov.pl and eteryt.stat.gov.pl\n\nCookiecutter Tools Used in Making This Package\n----------------------------------------------\n\n*  cookiecutter\n*  cookiecutter-djangopackage\n",
    "bugtrack_url": null,
    "license": "BSD 3-Clause License  Copyright (c) 2023, Sie\u0107 Obywatelska - Watchdog Polska  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
    "summary": "Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.",
    "version": "0.18.4",
    "project_urls": {
        "Download": "https://github.com/ad-m/django-teryt-tree/",
        "Homepage": "https://github.com/ad-m/django-teryt-tree"
    },
    "split_keywords": [
        "django-teryt-tree"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2e48bfac62867f10e4bfed1cdef9de781e1d6c520556d4b6637bcd2a8f9a0976",
                "md5": "0f349a45a3b132c319991a5da2336b9c",
                "sha256": "2ce72db02fbe856c6419c1feb43ab65d67a5ace77859e8e8c7de6c1e4f397e40"
            },
            "downloads": -1,
            "filename": "django_teryt_tree-0.18.4-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0f349a45a3b132c319991a5da2336b9c",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.10",
            "size": 19814,
            "upload_time": "2023-09-23T22:33:06",
            "upload_time_iso_8601": "2023-09-23T22:33:06.713427Z",
            "url": "https://files.pythonhosted.org/packages/2e/48/bfac62867f10e4bfed1cdef9de781e1d6c520556d4b6637bcd2a8f9a0976/django_teryt_tree-0.18.4-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7916d56b7f635419a948daa1673d5841188980420d3b1b6852f7b5745790361c",
                "md5": "baf8567356c1862ca60257fe0fb253ce",
                "sha256": "882d033c80bc30f0b4c93357194cf7e52e8bc4e1b80e52745e244e34b01d749d"
            },
            "downloads": -1,
            "filename": "django-teryt-tree-0.18.4.tar.gz",
            "has_sig": false,
            "md5_digest": "baf8567356c1862ca60257fe0fb253ce",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 27437,
            "upload_time": "2023-09-23T22:33:08",
            "upload_time_iso_8601": "2023-09-23T22:33:08.439466Z",
            "url": "https://files.pythonhosted.org/packages/79/16/d56b7f635419a948daa1673d5841188980420d3b1b6852f7b5745790361c/django-teryt-tree-0.18.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-23 22:33:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ad-m",
    "github_project": "django-teryt-tree",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "django-teryt-tree"
}
        
Elapsed time: 0.29392s