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
Metadata
Release files for django-teryt-tree 0.18.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-teryt-tree-0.18.4.tar.gz | 27.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_teryt_tree-0.18.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 47.3 kB
Release files / django-teryt-tree-0.18.4.tar.gz
| Download URL | django-teryt-tree-0.18.4.tar.gz |
|---|---|
| Size | 27.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
882d033c80bc30f0b4c93357194cf7e52e8bc4e1b80e52745e244e34b01d749d
|
|
BLAKE2b-256 checksum How to use checksums |
7916d56b7f635419a948daa1673d5841188980420d3b1b6852f7b5745790361c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / django_teryt_tree-0.18.4-py2.py3-none-any.whl
| Download URL | django_teryt_tree-0.18.4-py2.py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2ce72db02fbe856c6419c1feb43ab65d67a5ace77859e8e8c7de6c1e4f397e40
|
|
BLAKE2b-256 checksum How to use checksums |
2e48bfac62867f10e4bfed1cdef9de781e1d6c520556d4b6637bcd2a8f9a0976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for django-teryt-tree 0.18.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.