django-fast-treenode 3.0.2__py3-none-any.whl → 3.0.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_fast_treenode-3.0.2.dist-info → django_fast_treenode-3.0.3.dist-info}/METADATA +23 -24
- {django_fast_treenode-3.0.2.dist-info → django_fast_treenode-3.0.3.dist-info}/RECORD +20 -20
- {django_fast_treenode-3.0.2.dist-info → django_fast_treenode-3.0.3.dist-info}/WHEEL +1 -1
- treenode/admin/admin.py +1 -0
- treenode/static/vendors/jquery-ui/AUTHORS.txt +384 -384
- treenode/static/vendors/jquery-ui/LICENSE.txt +43 -43
- treenode/static/vendors/jquery-ui/external/jquery/jquery.js +10716 -10716
- treenode/static/vendors/jquery-ui/index.html +297 -297
- treenode/static/vendors/jquery-ui/jquery-ui.css +438 -438
- treenode/static/vendors/jquery-ui/jquery-ui.js +5222 -5222
- treenode/static/vendors/jquery-ui/jquery-ui.min.css +6 -6
- treenode/static/vendors/jquery-ui/jquery-ui.min.js +5 -5
- treenode/static/vendors/jquery-ui/jquery-ui.structure.css +16 -16
- treenode/static/vendors/jquery-ui/jquery-ui.structure.min.css +4 -4
- treenode/static/vendors/jquery-ui/jquery-ui.theme.css +439 -439
- treenode/static/vendors/jquery-ui/jquery-ui.theme.min.css +4 -4
- treenode/static/vendors/jquery-ui/package.json +82 -82
- treenode/version.py +2 -2
- {django_fast_treenode-3.0.2.dist-info → django_fast_treenode-3.0.3.dist-info}/licenses/LICENSE +0 -0
- {django_fast_treenode-3.0.2.dist-info → django_fast_treenode-3.0.3.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: django-fast-treenode
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.3
|
4
4
|
Summary: Treenode Framework for supporting tree (hierarchical) data structure in Django projects
|
5
5
|
Home-page: https://django-fast-treenode.readthedocs.io/
|
6
6
|
Author: Timur Kady
|
@@ -62,16 +62,16 @@ Dynamic: home-page
|
|
62
62
|
Dynamic: license-file
|
63
63
|
Dynamic: requires-python
|
64
64
|
|
65
|
-
#
|
65
|
+
# Treenode Framework
|
66
66
|
**A hybrid open-source framework for working with trees in Django**
|
67
67
|
|
68
68
|
[](https://github.com/TimurKady/django-fast-treenode/actions/workflows/test.yaml)
|
69
69
|
[](https://django-fast-treenode.readthedocs.io/)
|
70
|
-
[](https://pypi.org/project/django-fast-
|
70
|
+
[](https://pypi.org/project/django-fast-Treenode/)
|
71
71
|
[](https://djangopackages.org/packages/p/django-fast-treenode/)
|
72
72
|
[](https://github.com/sponsors/TimurKady)
|
73
73
|
|
74
|
-
## About The
|
74
|
+
## About The Treenode Framework
|
75
75
|
### Overview
|
76
76
|
|
77
77
|
**Treenode Framework** is an advanced tree management system for Django applications.It is designed to handle large-scale, deeply nested, and highly dynamic tree structures while maintaining excellent performance, data integrity, and ease of use.
|
@@ -87,7 +87,7 @@ Its core philosophy: **maximum scalability, minimum complexity**.
|
|
87
87
|
|
88
88
|
### Key Features
|
89
89
|
#### Common operations
|
90
|
-
The `django-fast-
|
90
|
+
The `django-fast-Treenode` package supports all the basic operations needed to work with tree structures:
|
91
91
|
|
92
92
|
- Extracting **ancestors** (queryset, list, pks, count);
|
93
93
|
- Extracting **children** (queryset, list, pks, count);
|
@@ -118,10 +118,10 @@ Typical applications include:
|
|
118
118
|
|
119
119
|
In all these domains, scalable and fast tree management is not a luxury — it's a necessity.
|
120
120
|
|
121
|
-
### Why
|
121
|
+
### Why Treenode Framework?
|
122
122
|
At the moment, django-fast-treeenode is, if not the best, then one of the best packages for working with tree data under Djangjo.
|
123
123
|
|
124
|
-
- **High performance**: [tests show](docs/about.md#benchmark-tests) that on trees of 5k-10k nodes with a nesting depth of 500-600 levels, **Treenode Framework** (`django-fast-
|
124
|
+
- **High performance**: [tests show](docs/about.md#benchmark-tests) that on trees of 5k-10k nodes with a nesting depth of 500-600 levels, **Treenode Framework** (`django-fast-Treenode`) shows **performance 4-7 times better** than the main popular packages.
|
125
125
|
- **Flexible API**: today contains the widest set of methods for working with a tree in comparison with other packages.
|
126
126
|
- **Convenient administration**: the admin panel interface was developed taking into account the experience of using other packages. It provides convenience and intuitiveness with ease of programming.
|
127
127
|
- **Scalability**: **Treenode Framework** suitable for solving simple problems such as menus, directories, parsing arithmetic expressions, as well as complex problems such as program optimization, image layout, multi-step decision making problems, or machine learning..
|
@@ -134,7 +134,7 @@ To get started quickly, you need to follow these steps:
|
|
134
134
|
|
135
135
|
- Simply install the package via `pip`:
|
136
136
|
```sh
|
137
|
-
pip install django-fast-
|
137
|
+
pip install django-fast-Treenode
|
138
138
|
```
|
139
139
|
- Once installed, add `'treenode'` to your `INSTALLED_APPS` in **settings.py**:
|
140
140
|
```python {title="settings.py"}
|
@@ -147,9 +147,9 @@ To get started quickly, you need to follow these steps:
|
|
147
147
|
|
148
148
|
- Open **models.py** and create your own tree class:
|
149
149
|
```
|
150
|
-
from
|
150
|
+
from Treenode.models import TreenodeModel
|
151
151
|
|
152
|
-
class MyTree(
|
152
|
+
class MyTree(TreenodeModel):
|
153
153
|
name = models.CharField(max_length=255)
|
154
154
|
display_field = "name"
|
155
155
|
```
|
@@ -157,11 +157,11 @@ To get started quickly, you need to follow these steps:
|
|
157
157
|
- Open **admin.py** and create a model for the admin panel
|
158
158
|
```
|
159
159
|
from django.contrib import admin
|
160
|
-
from
|
161
|
-
from .models import
|
160
|
+
from Treenode.admin import TreenodeModelAdmin
|
161
|
+
from .models import MyTree
|
162
162
|
|
163
|
-
@admin.register(
|
164
|
-
class
|
163
|
+
@admin.register(MyTree)
|
164
|
+
class MyTreeAdmin(TreenodeModelAdmin):
|
165
165
|
list_display = ("name",)
|
166
166
|
search_fields = ("name",)
|
167
167
|
```
|
@@ -176,25 +176,24 @@ To get started quickly, you need to follow these steps:
|
|
176
176
|
```sh
|
177
177
|
python manage.py runserver
|
178
178
|
```
|
179
|
-
|
180
179
|
Everything is ready, enjoy 🎉!
|
181
180
|
|
182
181
|
## Documentation
|
183
|
-
Full documentation is available at **[ReadTheDocs](https://django-fast-
|
182
|
+
Full documentation is available at **[ReadTheDocs](https://django-fast-Treenode.readthedocs.io/)**.
|
184
183
|
|
185
184
|
Quick access links:
|
186
|
-
* [Installation, configuration and fine tuning](https://django-fast-
|
187
|
-
* [Model Inheritance and Extensions](https://django-fast-
|
188
|
-
* [Working with Admin Classes](https://django-fast-
|
189
|
-
* [API Reference](https://django-fast-
|
190
|
-
* [Import & Export](https://django-fast-
|
191
|
-
* [Caching and working with cache](https://django-fast-
|
192
|
-
* [Migration and upgrade guide](https://django-fast-
|
185
|
+
* [Installation, configuration and fine tuning](https://django-fast-Treenode.readthedocs.io/installation/)
|
186
|
+
* [Model Inheritance and Extensions](https://django-fast-Treenode.readthedocs.io/models/)
|
187
|
+
* [Working with Admin Classes](https://django-fast-Treenode.readthedocs.io/admin/)
|
188
|
+
* [API Reference](https://django-fast-Treenode.readthedocs.io/api/)
|
189
|
+
* [Import & Export](https://django-fast-Treenode.readthedocs.io/import_export/)
|
190
|
+
* [Caching and working with cache](https://django-fast-Treenode.readthedocs.io/cache/)
|
191
|
+
* [Migration and upgrade guide](https://django-fast-Treenode.readthedocs.io/migration/)
|
193
192
|
|
194
193
|
Your wishes, objections, comments are welcome.
|
195
194
|
|
196
195
|
## License
|
197
|
-
Released under [MIT License](https://github.com/TimurKady/django-fast-
|
196
|
+
Released under [MIT License](https://github.com/TimurKady/django-fast-Treenode/blob/main/LICENSE).
|
198
197
|
|
199
198
|
## Credits
|
200
199
|
Thanks to everyone who contributed to the development and testing of this package, as well as the Django community for their inspiration and support.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
django_fast_treenode-3.0.
|
1
|
+
django_fast_treenode-3.0.3.dist-info/licenses/LICENSE,sha256=SSYqS84FCnAW7tAxmjBKU8qAa8Jv4VGPuSSGeHwWtJE,1095
|
2
2
|
treenode/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
3
|
treenode/apps.py,sha256=QlwjNDM9rkUoWB8Vm8-OkS6lNx0-aTByuGZlu9wrQMs,1832
|
4
4
|
treenode/cache.py,sha256=2jUiiecfFxwB7QFukpU4u0FnDzGH6hNRfo6KAYvs6vM,8447
|
@@ -7,10 +7,10 @@ treenode/settings.py,sha256=oSkcKXNVd28HXrlWZIH2VYinCMq-UdCDlX4KD0Qc_Xk,631
|
|
7
7
|
treenode/signals.py,sha256=ERrlKjGqhYaPYVKKRk1JBBlPFOmJKpJ6bXsJavcTlo0,518
|
8
8
|
treenode/tests.py,sha256=2uDafv3Ns6f7Vy1ekUtgYxCZEi1KRyesZDTAFhYcX-E,63
|
9
9
|
treenode/urls.py,sha256=krHvVigc_dxC0z5hEd2rgeH6th8jW7qJY3Qbia-419Y,240
|
10
|
-
treenode/version.py,sha256=
|
10
|
+
treenode/version.py,sha256=UQel-ilvX8HzIC5S8Odk9qyR41TRS2ikVETb9NGTXN0,220
|
11
11
|
treenode/widgets.py,sha256=61ed16bVqb1_R97jekDrbKS5pDVK4nzXSDwL3CDBYEk,4075
|
12
12
|
treenode/admin/__init__.py,sha256=XNEYHdF5lKb0vpdlVxdR2fxj5oUgzyx1YyCwsv0gxHw,100
|
13
|
-
treenode/admin/admin.py,sha256=
|
13
|
+
treenode/admin/admin.py,sha256=9_GC6JjWRiG_G84royRGAr10BSNIAj4N_33JXdzP8IY,7733
|
14
14
|
treenode/admin/changelist.py,sha256=KUYS9MaR8Ck_1xmMqupobxWKarrJEqmHuEG32CL01Bo,1662
|
15
15
|
treenode/admin/exporter.py,sha256=QE74V6W3tvwA5kCvBt1MmVlLOaWh-o8EU63cgmiwD5Q,5724
|
16
16
|
treenode/admin/importer.py,sha256=hK3D-1DZcoowGblRluGzng3n5Bf__hMsbNaIGXRpRdg,6263
|
@@ -44,19 +44,19 @@ treenode/static/js/.gitkeep,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
44
44
|
treenode/static/js/lz-string.min.js,sha256=TAnTJQd2AlLqT9M2TU7GFjnoj9SIfwLeZnpEtLkP624,4718
|
45
45
|
treenode/static/js/tree_widget.js,sha256=2LU8IIJD5TXbWVGjCEgrj5aYnUYtwBZECzj25XLtxNc,9633
|
46
46
|
treenode/static/js/treenode_admin.js,sha256=fkxAj50QxwpPVdQxDNxQZ5vR0goUt53h8FzOv_fjxBQ,15945
|
47
|
-
treenode/static/vendors/jquery-ui/AUTHORS.txt,sha256=
|
48
|
-
treenode/static/vendors/jquery-ui/LICENSE.txt,sha256=
|
49
|
-
treenode/static/vendors/jquery-ui/index.html,sha256=
|
50
|
-
treenode/static/vendors/jquery-ui/jquery-ui.css,sha256=
|
51
|
-
treenode/static/vendors/jquery-ui/jquery-ui.js,sha256=
|
52
|
-
treenode/static/vendors/jquery-ui/jquery-ui.min.css,sha256=
|
53
|
-
treenode/static/vendors/jquery-ui/jquery-ui.min.js,sha256=
|
54
|
-
treenode/static/vendors/jquery-ui/jquery-ui.structure.css,sha256=
|
55
|
-
treenode/static/vendors/jquery-ui/jquery-ui.structure.min.css,sha256=
|
56
|
-
treenode/static/vendors/jquery-ui/jquery-ui.theme.css,sha256=
|
57
|
-
treenode/static/vendors/jquery-ui/jquery-ui.theme.min.css,sha256=
|
58
|
-
treenode/static/vendors/jquery-ui/package.json,sha256=
|
59
|
-
treenode/static/vendors/jquery-ui/external/jquery/jquery.js,sha256=
|
47
|
+
treenode/static/vendors/jquery-ui/AUTHORS.txt,sha256=7eSHeezBdJ7Qlq0sbIvY4VRvqpMwLCAsm5ur1GqFBV8,15232
|
48
|
+
treenode/static/vendors/jquery-ui/LICENSE.txt,sha256=apBrQ--OzcBj7ylvGUYGVfV3jIaoB2ZPm63a1EU0Hko,1861
|
49
|
+
treenode/static/vendors/jquery-ui/index.html,sha256=fFm161yOy1n-_mJRFXB5oOYki_8Dlv-4ym3UZlrBiFw,24526
|
50
|
+
treenode/static/vendors/jquery-ui/jquery-ui.css,sha256=Q5bjan1qvGRnmfsMY79xzgnzXgNfHpKITyFwDwYDXTE,17609
|
51
|
+
treenode/static/vendors/jquery-ui/jquery-ui.js,sha256=wo5jyZcNCjgTOWkHAG5I-AHnELJBiMT7PB86Hkn981w,151652
|
52
|
+
treenode/static/vendors/jquery-ui/jquery-ui.min.css,sha256=FS9BPkDJmv5x5xNd4OpSxisTNOEUUC3cry5lZo9TXNU,15009
|
53
|
+
treenode/static/vendors/jquery-ui/jquery-ui.min.js,sha256=ymdFCtss_PVmZcIYetqzjnF_jiQur3VPdv4bjqIPA74,70369
|
54
|
+
treenode/static/vendors/jquery-ui/jquery-ui.structure.css,sha256=Sc38kpjVG4BhkslXC-wnctVgd7RO4NAVnNinveoLumU,344
|
55
|
+
treenode/static/vendors/jquery-ui/jquery-ui.structure.min.css,sha256=3Hh94kZQ7IgAV86zPR-eYJheU0GvPFXXa0ZHldtjim4,212
|
56
|
+
treenode/static/vendors/jquery-ui/jquery-ui.theme.css,sha256=0cqVKFAVS9NOQyqhyhpanAO_AQnoPsX715VK0iIMGDE,17579
|
57
|
+
treenode/static/vendors/jquery-ui/jquery-ui.theme.min.css,sha256=TdVk-kqTdbRzjVI7AfPMWaIJG2pOIlnZk4hUAW3bl3E,13712
|
58
|
+
treenode/static/vendors/jquery-ui/package.json,sha256=bDQqA98dfsEi83upFeZ8RipVtAraPRoxZMxcv244oQo,2204
|
59
|
+
treenode/static/vendors/jquery-ui/external/jquery/jquery.js,sha256=6440qEDaqjKqrIVfk4x21neDBVsbef6XUR5dUCKBv_E,296030
|
60
60
|
treenode/static/vendors/jquery-ui/images/ui-icons_444444_256x240.png,sha256=YW09ms2dyfoVEOT_NEpaWXMMRLJxVIqu8hku63SoCEA,7107
|
61
61
|
treenode/static/vendors/jquery-ui/images/ui-icons_555555_256x240.png,sha256=HP6KoU5aOllbVtaudhmNOLhBIzi_0oCuxBjwyhDATOo,7105
|
62
62
|
treenode/static/vendors/jquery-ui/images/ui-icons_777620_256x240.png,sha256=NxKGIMNmb6YYZor0RuijQ7PTK5BoA9b5qXLjYTMFvXo,4615
|
@@ -84,7 +84,7 @@ treenode/views/children.py,sha256=bygXaEBExxG3zIPL34_PYHLFFIqlQU2naqPIlyQ6e-s,11
|
|
84
84
|
treenode/views/common.py,sha256=mrmr40R91XVbMWcz5GZT-OjpnQ87F7XQZxu1W6rqpqI,617
|
85
85
|
treenode/views/crud.py,sha256=RI5rdyD4hZTszjZFThByxi_lkAeJlqbDCXFkD8iyzKE,7424
|
86
86
|
treenode/views/search.py,sha256=c_GyooT3jyoNa96bBxfoWruRN1wIw-ZGYvwGKkGojTs,1501
|
87
|
-
django_fast_treenode-3.0.
|
88
|
-
django_fast_treenode-3.0.
|
89
|
-
django_fast_treenode-3.0.
|
90
|
-
django_fast_treenode-3.0.
|
87
|
+
django_fast_treenode-3.0.3.dist-info/METADATA,sha256=kbt-jrE-L0YYYUrHJKdvCOMe-GiSnKdT3LhebaWCcqM,10249
|
88
|
+
django_fast_treenode-3.0.3.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
|
89
|
+
django_fast_treenode-3.0.3.dist-info/top_level.txt,sha256=fmgxHbXyx1O2MPi_9kjx8aL9L-8TmV0gre4Go8XgqFk,9
|
90
|
+
django_fast_treenode-3.0.3.dist-info/RECORD,,
|