Django-teryt-tree is a Django app that implements TERYT database as tree by django-mptt.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-teryt-tree-0.18.3.tar.gz
.
File metadata
- Download URL: django-teryt-tree-0.18.3.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 160d522c6876ac8cd1d40c1e990ebbb6adb02d73944e613f9dc56ec593f9a2da |
|
MD5 | 5737c6ae6d5d871b8de9c24c954c6fae |
|
BLAKE2b-256 | 975822bf7397eff38117e8985dcf2da42d552446b0806494236084720caaaeae |
Provenance
File details
Details for the file django_teryt_tree-0.18.3-py2.py3-none-any.whl
.
File metadata
- Download URL: django_teryt_tree-0.18.3-py2.py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99f9083d02ea9f4e3e252e22cdcc42788fb682f4685b9b96c63004f222fe76dc |
|
MD5 | d782220272f1be349a13ff295d0df1e3 |
|
BLAKE2b-256 | ffef0196302df7bdda6d42f3503f2c21dbdcc2c80ce5bb4d4ed4c3184515b0b4 |