Skip to main content

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

Project description

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

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

Project details


Download files

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

Source Distribution

django-teryt-tree-0.18.4.tar.gz (27.4 kB view details)

Uploaded Source

Built Distribution

django_teryt_tree-0.18.4-py2.py3-none-any.whl (19.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-teryt-tree-0.18.4.tar.gz.

File metadata

  • Download URL: django-teryt-tree-0.18.4.tar.gz
  • Upload date:
  • Size: 27.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for django-teryt-tree-0.18.4.tar.gz
Algorithm Hash digest
SHA256 882d033c80bc30f0b4c93357194cf7e52e8bc4e1b80e52745e244e34b01d749d
MD5 baf8567356c1862ca60257fe0fb253ce
BLAKE2b-256 7916d56b7f635419a948daa1673d5841188980420d3b1b6852f7b5745790361c

See more details on using hashes here.

File details

Details for the file django_teryt_tree-0.18.4-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_teryt_tree-0.18.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ce72db02fbe856c6419c1feb43ab65d67a5ace77859e8e8c7de6c1e4f397e40
MD5 0f349a45a3b132c319991a5da2336b9c
BLAKE2b-256 2e48bfac62867f10e4bfed1cdef9de781e1d6c520556d4b6637bcd2a8f9a0976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page