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
History
0.16.4 (2020-11-02)
Add support for MultipleChoice filters in dal_ext
Add unit tests for dal_ext
Expose area queryset filters as static methods.
0.16.3 (2020-06-30)
Fix pk in JednostkaAdministracyjnaFactor to use text
Add ‘–limit’ parameter to ‘load_terc’ command
0.16.2 (2020-06-19)
Fix progress bar for tests
0.16.1 (2020-01-07)
Add workflows to publish on tags
Use setuptools_scm for versionig and drop bumpversion
Format syntax by black
Format migrations by pyupgrade
Add black to linter in CI
Fix migrations chain & upgrade for Django 3.0
0.16.0 (2020-01-07)
Drop support Django < 2.2
Drop support Python < 3.6
Added support Python 3.6, 3.7, 3.8
0.15.1 (2019-10-21)
Compatibility with Django 2.1, 2.2
Move CI to GitHub Actions
0.14.0 (2017-08-15)
Fix update of SIMC registry
Fix compatibility of teryt_tree.est_framework_ext.viewsets.JednostkaAdministracyjnaFilter
Add new format od TERC export
0.13.2 (2017-08-11)
Temporary drom SIMCSerializer
0.13.1 (2017-08-11)
Fix django-filters compatibility in dal_ext.
0.13.0 (2017-07-13)
Improve import performance
Add support to SIMC database
Fix path of `*.xml` files (use on-premise TravisCI-cached copy)
0.12.1 (2017-04-04)
Improve compatibility django-filters 1.x in dal_ext
0.12.0 (2017-04-04)
Move teryt_tree.filters to teryt_tree.filters_ext.filters
Fix compatibility django-filters 1.x in `filters_ext
0.11.0 (2016-09-13)
Add locale to package
0.10.0 (2016-09-13)
Add missing migrations
Add dummy urlpatterns
0.9.0 (2016-09-13)
Fix runtests
0.8.0 (2016-12-10)
Add bumpversion
Add AppConfig with translation app_label
Update polish locale
Extract settings as standalone file
Add manage.py
0.7.0 (2016-09-13)
Drop django 1.7 support
Add support django 1.10
Add --limit param to load_teryt command
0.6.0 (2016-07-03)
Add django-rest-framework extensions
Add django-autocomplete-light v3 support
Add JednostkaAdministracyjnaQuerySet.area
Add one-line TERC import command
Add cache to Travis
Fix syntax in HISTORY.rst
0.5.0 (2016-04-14)
Added TravisCI badge in README.rst
Added download_url in setup.py
0.4.0 (2016-04-14)
Remove PassThroughManagerMixin
0.1.0 (2015-10-02)
First release on PyPI.
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.17.0.tar.gz
.
File metadata
- Download URL: django-teryt-tree-0.17.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9a51d662bc578b78c31c0fc92b79d3699cbba15799ee178b2149ea8d9b94b0 |
|
MD5 | 4a81d381ac705ff0a1408b88bf2c4e0a |
|
BLAKE2b-256 | 2b83c84aa11f7e361b1ac05ae4f17cf6ba17295fe7759b78ce3e489bc0abd660 |
Provenance
File details
Details for the file django_teryt_tree-0.17.0-py2.py3-none-any.whl
.
File metadata
- Download URL: django_teryt_tree-0.17.0-py2.py3-none-any.whl
- Upload date:
- Size: 20.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0317b507c806ee2598b245d402e4a6343f95ad926991c906434ba65c1322d5b |
|
MD5 | 3c860502135495b8f003790ffdde7bc4 |
|
BLAKE2b-256 | 9cafeb0679a7ddf18d301661ff62f7c5743d6950a55778e7c8cc8682a3a5f45d |