g3w-admin-pdnd 2.0.2__tar.gz

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.
Files changed (120) hide show
  1. g3w_admin_pdnd-2.0.2/.github/release.yml +40 -0
  2. g3w_admin_pdnd-2.0.2/.github/workflows/backport.yml +15 -0
  3. g3w_admin_pdnd-2.0.2/.github/workflows/cd.yml +44 -0
  4. g3w_admin_pdnd-2.0.2/.github/workflows/ci.yml +13 -0
  5. g3w_admin_pdnd-2.0.2/.gitignore +26 -0
  6. g3w_admin_pdnd-2.0.2/LICENSE +21 -0
  7. g3w_admin_pdnd-2.0.2/MANIFEST.in +1 -0
  8. g3w_admin_pdnd-2.0.2/PKG-INFO +85 -0
  9. g3w_admin_pdnd-2.0.2/README.md +60 -0
  10. g3w_admin_pdnd-2.0.2/doc/img/pdnd_schema.png +0 -0
  11. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/PKG-INFO +85 -0
  12. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/SOURCES.txt +118 -0
  13. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/dependency_links.txt +1 -0
  14. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/requires.txt +6 -0
  15. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/scm_file_list.json +139 -0
  16. g3w_admin_pdnd-2.0.2/g3w_admin_pdnd.egg-info/top_level.txt +1 -0
  17. g3w_admin_pdnd-2.0.2/pyproject.toml +54 -0
  18. g3w_admin_pdnd-2.0.2/qpdnd/__init__.py +0 -0
  19. g3w_admin_pdnd-2.0.2/qpdnd/admin.py +101 -0
  20. g3w_admin_pdnd-2.0.2/qpdnd/api/__init__.py +0 -0
  21. g3w_admin_pdnd-2.0.2/qpdnd/api/decorators/__init__.py +0 -0
  22. g3w_admin_pdnd-2.0.2/qpdnd/api/decorators/voucher_checker.py +229 -0
  23. g3w_admin_pdnd-2.0.2/qpdnd/api/models/__init__.py +2 -0
  24. g3w_admin_pdnd-2.0.2/qpdnd/api/models/aggiornamentoaccessi.py +121 -0
  25. g3w_admin_pdnd-2.0.2/qpdnd/api/models/aggiornamentointerni.py +63 -0
  26. g3w_admin_pdnd-2.0.2/qpdnd/api/models/aggiornamentoodonimi.py +133 -0
  27. g3w_admin_pdnd-2.0.2/qpdnd/api/models/consultazioni_comuni.py +37 -0
  28. g3w_admin_pdnd-2.0.2/qpdnd/api/models/coordinate.py +38 -0
  29. g3w_admin_pdnd-2.0.2/qpdnd/api/models/gestionecoordinate.py +44 -0
  30. g3w_admin_pdnd-2.0.2/qpdnd/api/models/mtype.py +21 -0
  31. g3w_admin_pdnd-2.0.2/qpdnd/api/permissions.py +51 -0
  32. g3w_admin_pdnd-2.0.2/qpdnd/api/views.py +575 -0
  33. g3w_admin_pdnd-2.0.2/qpdnd/apiurls.py +92 -0
  34. g3w_admin_pdnd-2.0.2/qpdnd/apps.py +39 -0
  35. g3w_admin_pdnd-2.0.2/qpdnd/fixtures/license.json +145 -0
  36. g3w_admin_pdnd-2.0.2/qpdnd/fixtures/qpdnd.istatcodiciui.json +1 -0
  37. g3w_admin_pdnd-2.0.2/qpdnd/forms/__init__.py +2 -0
  38. g3w_admin_pdnd-2.0.2/qpdnd/forms/anncsu.py +305 -0
  39. g3w_admin_pdnd-2.0.2/qpdnd/forms/projects.py +201 -0
  40. g3w_admin_pdnd-2.0.2/qpdnd/management/__init__.py +0 -0
  41. g3w_admin_pdnd-2.0.2/qpdnd/management/commands/__init__.py +0 -0
  42. g3w_admin_pdnd-2.0.2/qpdnd/management/commands/import_licenses_from_github.py +25 -0
  43. g3w_admin_pdnd-2.0.2/qpdnd/management/commands/run_task.py +27 -0
  44. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0001_initial.py +35 -0
  45. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0002_qpdndlayer_endpoint.py +18 -0
  46. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0003_auto_20240725_1022.py +21 -0
  47. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0004_qpdndproject_version.py +18 -0
  48. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0005_auto_20240726_0929.py +23 -0
  49. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0006_alter_qpdndproject_terms_of_service.py +18 -0
  50. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0007_auto_20240730_0930.py +53 -0
  51. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0008_license_node_id.py +18 -0
  52. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0009_qpdndproject_license.py +19 -0
  53. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0010_qpdndproject_x_api_id.py +18 -0
  54. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0011_auto_20240920_0809.py +23 -0
  55. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0012_alter_qpdndproject_qpdnd_env.py +18 -0
  56. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0013_auto_20240920_0821.py +23 -0
  57. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0014_qpdndproject_pdnd_eservice_is.py +18 -0
  58. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0015_rename_pdnd_eservice_is_qpdndproject_pdnd_eservice_id.py +18 -0
  59. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0016_alter_qpdndproject_terms_of_service.py +18 -0
  60. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0017_auto_20250107_1102.py +38 -0
  61. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0018_qpdndproject_client_setting.py +19 -0
  62. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0019_auto_20250108_1636.py +46 -0
  63. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0020_qpdndclientsetting_pdnd_audience.py +18 -0
  64. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0021_alter_qpdndproject_project_anncsuroject.py +28 -0
  65. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0022_rename_anncsuroject_anncsuproject.py +17 -0
  66. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0023_anncsuproject_client_setting.py +19 -0
  67. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0024_remove_anncsuproject_client_setting_and_more.py +27 -0
  68. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0025_istatcodiciui.py +47 -0
  69. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0026_anncsuproject_codice_comune.py +19 -0
  70. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0027_anncsuproject_task_id.py +18 -0
  71. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0028_alter_anncsuproject_project.py +19 -0
  72. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0029_anncsuproject_govway_password_and_more.py +23 -0
  73. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0030_anncsuproject_api_type.py +18 -0
  74. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0031_anncsuproject_results.py +18 -0
  75. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0032_alter_anncsuproject_api_type.py +18 -0
  76. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0033_alter_anncsuproject_options.py +17 -0
  77. g3w_admin_pdnd-2.0.2/qpdnd/migrations/0034_anncsutaskhistory.py +35 -0
  78. g3w_admin_pdnd-2.0.2/qpdnd/migrations/__init__.py +0 -0
  79. g3w_admin_pdnd-2.0.2/qpdnd/models/__init__.py +2 -0
  80. g3w_admin_pdnd-2.0.2/qpdnd/models/anncsu.py +352 -0
  81. g3w_admin_pdnd-2.0.2/qpdnd/models/expose.py +165 -0
  82. g3w_admin_pdnd-2.0.2/qpdnd/receivers.py +93 -0
  83. g3w_admin_pdnd-2.0.2/qpdnd/run_celery.sh +11 -0
  84. g3w_admin_pdnd-2.0.2/qpdnd/server_filters/__init__.py +1 -0
  85. g3w_admin_pdnd-2.0.2/qpdnd/server_filters/layer.py +47 -0
  86. g3w_admin_pdnd-2.0.2/qpdnd/settings.py +161 -0
  87. g3w_admin_pdnd-2.0.2/qpdnd/sitetrees.py +58 -0
  88. g3w_admin_pdnd-2.0.2/qpdnd/static/qpdnd/js/widget.js +327 -0
  89. g3w_admin_pdnd-2.0.2/qpdnd/tasks.py +171 -0
  90. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/include/endpoint_check.html +29 -0
  91. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/include/task_status.html +11 -0
  92. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/project.html +78 -0
  93. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/project_list.html +95 -0
  94. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/run.html +186 -0
  95. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/anncsu/run_conscom.html +72 -0
  96. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/client_setting_form.html +37 -0
  97. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/client_settings_list.html +59 -0
  98. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/messages/check_project_delete.html +4 -0
  99. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/messages/check_project_update.html +4 -0
  100. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/project_form.html +45 -0
  101. g3w_admin_pdnd-2.0.2/qpdnd/templates/qpdnd/projects_list.html +95 -0
  102. g3w_admin_pdnd-2.0.2/qpdnd/urls.py +129 -0
  103. g3w_admin_pdnd-2.0.2/qpdnd/utils/__init__.py +0 -0
  104. g3w_admin_pdnd-2.0.2/qpdnd/utils/anncsu.py +490 -0
  105. g3w_admin_pdnd-2.0.2/qpdnd/utils/general.py +24 -0
  106. g3w_admin_pdnd-2.0.2/qpdnd/utils/pdnd.py +297 -0
  107. g3w_admin_pdnd-2.0.2/qpdnd/views/__init__.py +4 -0
  108. g3w_admin_pdnd-2.0.2/qpdnd/views/anncsu_admin.py +145 -0
  109. g3w_admin_pdnd-2.0.2/qpdnd/views/anncsu_run.py +160 -0
  110. g3w_admin_pdnd-2.0.2/qpdnd/views/client_settings.py +87 -0
  111. g3w_admin_pdnd-2.0.2/qpdnd/views/projects.py +87 -0
  112. g3w_admin_pdnd-2.0.2/requirements.txt +6 -0
  113. g3w_admin_pdnd-2.0.2/requirements_test.txt +4 -0
  114. g3w_admin_pdnd-2.0.2/schemas/README.md +13 -0
  115. g3w_admin_pdnd-2.0.2/schemas/aggiornamento_accessi.yml +356 -0
  116. g3w_admin_pdnd-2.0.2/schemas/aggiornamento_coordinate.yaml +303 -0
  117. g3w_admin_pdnd-2.0.2/schemas/aggiornamento_interni.yml +245 -0
  118. g3w_admin_pdnd-2.0.2/schemas/aggiornamento_odonimi.yml +309 -0
  119. g3w_admin_pdnd-2.0.2/schemas/consultazione_comuni.yml +2668 -0
  120. g3w_admin_pdnd-2.0.2/setup.cfg +4 -0
@@ -0,0 +1,40 @@
1
+ changelog:
2
+ exclude:
3
+ labels:
4
+ - ignore-for-release
5
+ authors:
6
+ - octocat
7
+ categories:
8
+ - title: 🚀 New Features
9
+ labels:
10
+ - feature
11
+ - title: 🐞 Bug fixed
12
+ labels:
13
+ - bug
14
+ - title: ✨ Improvements
15
+ labels:
16
+ - ux
17
+ - title: 📝 Documentation
18
+ labels:
19
+ - docs
20
+ - title: 👨‍🚀 Translations
21
+ labels:
22
+ - i18n
23
+ - title: 🐙 Github
24
+ labels:
25
+ - github
26
+ - title: 🧪 Tests
27
+ labels:
28
+ - tests
29
+ - title: 🛠️ Config
30
+ labels:
31
+ - config
32
+ - title: ♻️ API changes
33
+ labels:
34
+ - refactoring
35
+ - title: ⚠️ Breaking changes
36
+ labels:
37
+ - breaking
38
+ - title: ⚓ Other changes
39
+ labels:
40
+ - "*"
@@ -0,0 +1,15 @@
1
+ name: 🔙 Backport
2
+ on:
3
+ pull_request_target:
4
+ types:
5
+ - closed
6
+ - labeled
7
+
8
+ permissions:
9
+ contents: write
10
+ issues: write
11
+ pull-requests: write
12
+
13
+ jobs:
14
+ backport:
15
+ uses: g3w-suite/.github/.github/workflows/backport.yml@main
@@ -0,0 +1,44 @@
1
+ # Keep the publisher workflow local for PyPI OIDC; release implementation is shared.
2
+ name: CD
3
+
4
+ on:
5
+ workflow_run:
6
+ workflows: [CI]
7
+ types: [completed]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: publish-${{ github.repository }}
14
+ queue: max
15
+
16
+ jobs:
17
+ publish:
18
+ if: >-
19
+ github.event.workflow_run.conclusion == 'success' &&
20
+ github.event.workflow_run.event == 'push' &&
21
+ github.event.workflow_run.head_repository.full_name == github.repository
22
+ runs-on: ubuntu-latest
23
+ permissions:
24
+ contents: write
25
+ id-token: write
26
+ steps:
27
+ - id: prepare
28
+ uses: g3w-suite/.github/.github/actions/plugin-cd@main
29
+ with:
30
+ github-token: ${{ github.token }}
31
+ - name: Publish to PyPI
32
+ if: ${{ steps.prepare.outputs.proceed == 'true' }}
33
+ uses: pypa/gh-action-pypi-publish@release/v1
34
+ with:
35
+ skip-existing: true
36
+ - name: Create release
37
+ if: ${{ success() && steps.prepare.outputs.proceed == 'true' }}
38
+ uses: g3w-suite/.github/.github/actions/plugin-cd-release@main
39
+ with:
40
+ github-token: ${{ github.token }}
41
+ tag: ${{ steps.prepare.outputs.tag }}
42
+ existing: ${{ steps.prepare.outputs.existing }}
43
+ commit-sha: ${{ github.event.workflow_run.head_sha }}
44
+ branch: ${{ github.event.workflow_run.head_branch }}
@@ -0,0 +1,13 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: ['**']
6
+ pull_request:
7
+
8
+ permissions:
9
+ contents: read
10
+
11
+ jobs:
12
+ ci:
13
+ uses: g3w-suite/.github/.github/workflows/ci.yml@main
@@ -0,0 +1,26 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Python setuptools
7
+ *.egg
8
+ *.egg-info/
9
+ *.eggs
10
+
11
+ # Python virtualenv
12
+ .venv/
13
+ venv/
14
+
15
+ # PyPi related files
16
+ .coverage
17
+ dist/
18
+ build/
19
+
20
+ _version.py
21
+
22
+ /portal/frontend/node_modules/
23
+ .idea
24
+
25
+ Makefile.semver.mk
26
+ Makefile.venv.mk
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 G3W-SUITE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ prune qpdnd/tests
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: g3w-admin-pdnd
3
+ Version: 2.0.2
4
+ Summary: G3W-ADMIN plugin for Italy PDND service
5
+ Author-email: Gis3w snc <info@gis3w.it>
6
+ License: Mozilla Public License 2.0 (MPL 2.0)
7
+ Project-URL: Homepage, https://github.com/g3w-suite/g3w-admin-pdnd
8
+ Project-URL: Bug Tracker, https://github.com/g3w-suite/g3w-admin-pdnd/issues
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Framework :: Django
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: aiohttp==3.14.3
20
+ Requires-Dist: PyJWT<3.0.0,>=2.0.0
21
+ Requires-Dist: cryptography==38.0.4
22
+ Requires-Dist: pydantic==2.6.3
23
+ Provides-Extra: dev
24
+ Dynamic: license-file
25
+
26
+ # G3W-ADMIN-PDND
27
+
28
+ [![PyPI version](https://img.shields.io/pypi/v/g3w-admin-pdnd)](https://pypi.org/project/g3w-admin-pdnd/)
29
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/g3w-suite/g3w-admin-pdnd) [![CI](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml/badge.svg)](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml)
30
+
31
+ A [G3W-SUITE](https://github.com/g3w-suite) plugin for [**Piattaforma Digitale Nazionale Dati**](https://innovazione.gov.it/progetti/dati-e-interoperabilita/) (PDND).
32
+
33
+ ![PDND schema](doc/img/pdnd_schema.png)
34
+
35
+ ### Auhtentication
36
+ The plugin support the first level of authentication required by **PDND** based con `voucher token` analisys.
37
+
38
+ The second level of authentication base on `Agid-JWT-TrackingEvidence` http header is no supported.
39
+
40
+ *The Agid-JWT-TrackingEvidence header has been introduced in the AUDIT_REST_XX patterns with the update of the Technical Interoperability Guidelines of May 23, 2023*
41
+
42
+ ## Installation
43
+
44
+ Install *qpdnd* module into [`g3w-admin`](https://github.com/g3w-suite/g3w-admin/tree/v.3.6.x/g3w-admin) applications folder:
45
+
46
+ (Change the following 1.0.0 example version number)
47
+ ```sh
48
+ # Install module from github (v1.0.0)
49
+ pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@v1.0.0
50
+
51
+ # Install module from github (dev branch)
52
+ # pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@dev
53
+
54
+ # Install module from local folder (git development)
55
+ # pip3 install -e /g3w-admin/plugins/qpdnd
56
+
57
+ # Install module from PyPi (not yet available)
58
+ # pip3 install g3w-admin-pdnd
59
+ ```
60
+
61
+ ### Load lincense fixture data
62
+ ```sh
63
+ python3 manaage.py loaddata license
64
+ ```
65
+
66
+ ## Development and tests
67
+
68
+ The integration BDD scenarios are in [`qpdnd/tests/features`](qpdnd/tests/features).
69
+ They run in the G3W-ADMIN/QGIS environment used by CI. Install test dependencies:
70
+
71
+ ```sh
72
+ python3 -m pip install -r requirements_test.txt
73
+ ```
74
+
75
+ From the configured G3W-ADMIN directory, run:
76
+
77
+ ```sh
78
+ python3 manage.py behave --simple qpdnd/tests
79
+ ```
80
+
81
+ The existing Django unit tests can be run with:
82
+
83
+ ```sh
84
+ python3 manage.py test qpdnd
85
+ ```
@@ -0,0 +1,60 @@
1
+ # G3W-ADMIN-PDND
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/g3w-admin-pdnd)](https://pypi.org/project/g3w-admin-pdnd/)
4
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/g3w-suite/g3w-admin-pdnd) [![CI](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml/badge.svg)](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml)
5
+
6
+ A [G3W-SUITE](https://github.com/g3w-suite) plugin for [**Piattaforma Digitale Nazionale Dati**](https://innovazione.gov.it/progetti/dati-e-interoperabilita/) (PDND).
7
+
8
+ ![PDND schema](doc/img/pdnd_schema.png)
9
+
10
+ ### Auhtentication
11
+ The plugin support the first level of authentication required by **PDND** based con `voucher token` analisys.
12
+
13
+ The second level of authentication base on `Agid-JWT-TrackingEvidence` http header is no supported.
14
+
15
+ *The Agid-JWT-TrackingEvidence header has been introduced in the AUDIT_REST_XX patterns with the update of the Technical Interoperability Guidelines of May 23, 2023*
16
+
17
+ ## Installation
18
+
19
+ Install *qpdnd* module into [`g3w-admin`](https://github.com/g3w-suite/g3w-admin/tree/v.3.6.x/g3w-admin) applications folder:
20
+
21
+ (Change the following 1.0.0 example version number)
22
+ ```sh
23
+ # Install module from github (v1.0.0)
24
+ pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@v1.0.0
25
+
26
+ # Install module from github (dev branch)
27
+ # pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@dev
28
+
29
+ # Install module from local folder (git development)
30
+ # pip3 install -e /g3w-admin/plugins/qpdnd
31
+
32
+ # Install module from PyPi (not yet available)
33
+ # pip3 install g3w-admin-pdnd
34
+ ```
35
+
36
+ ### Load lincense fixture data
37
+ ```sh
38
+ python3 manaage.py loaddata license
39
+ ```
40
+
41
+ ## Development and tests
42
+
43
+ The integration BDD scenarios are in [`qpdnd/tests/features`](qpdnd/tests/features).
44
+ They run in the G3W-ADMIN/QGIS environment used by CI. Install test dependencies:
45
+
46
+ ```sh
47
+ python3 -m pip install -r requirements_test.txt
48
+ ```
49
+
50
+ From the configured G3W-ADMIN directory, run:
51
+
52
+ ```sh
53
+ python3 manage.py behave --simple qpdnd/tests
54
+ ```
55
+
56
+ The existing Django unit tests can be run with:
57
+
58
+ ```sh
59
+ python3 manage.py test qpdnd
60
+ ```
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: g3w-admin-pdnd
3
+ Version: 2.0.2
4
+ Summary: G3W-ADMIN plugin for Italy PDND service
5
+ Author-email: Gis3w snc <info@gis3w.it>
6
+ License: Mozilla Public License 2.0 (MPL 2.0)
7
+ Project-URL: Homepage, https://github.com/g3w-suite/g3w-admin-pdnd
8
+ Project-URL: Bug Tracker, https://github.com/g3w-suite/g3w-admin-pdnd/issues
9
+ Classifier: Development Status :: 5 - Production/Stable
10
+ Classifier: Environment :: Web Environment
11
+ Classifier: Framework :: Django
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Topic :: Software Development :: Libraries
17
+ Description-Content-Type: text/markdown
18
+ License-File: LICENSE
19
+ Requires-Dist: aiohttp==3.14.3
20
+ Requires-Dist: PyJWT<3.0.0,>=2.0.0
21
+ Requires-Dist: cryptography==38.0.4
22
+ Requires-Dist: pydantic==2.6.3
23
+ Provides-Extra: dev
24
+ Dynamic: license-file
25
+
26
+ # G3W-ADMIN-PDND
27
+
28
+ [![PyPI version](https://img.shields.io/pypi/v/g3w-admin-pdnd)](https://pypi.org/project/g3w-admin-pdnd/)
29
+ [![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/g3w-suite/g3w-admin-pdnd) [![CI](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml/badge.svg)](https://github.com/g3w-suite/g3w-admin-pdnd/actions/workflows/ci.yml)
30
+
31
+ A [G3W-SUITE](https://github.com/g3w-suite) plugin for [**Piattaforma Digitale Nazionale Dati**](https://innovazione.gov.it/progetti/dati-e-interoperabilita/) (PDND).
32
+
33
+ ![PDND schema](doc/img/pdnd_schema.png)
34
+
35
+ ### Auhtentication
36
+ The plugin support the first level of authentication required by **PDND** based con `voucher token` analisys.
37
+
38
+ The second level of authentication base on `Agid-JWT-TrackingEvidence` http header is no supported.
39
+
40
+ *The Agid-JWT-TrackingEvidence header has been introduced in the AUDIT_REST_XX patterns with the update of the Technical Interoperability Guidelines of May 23, 2023*
41
+
42
+ ## Installation
43
+
44
+ Install *qpdnd* module into [`g3w-admin`](https://github.com/g3w-suite/g3w-admin/tree/v.3.6.x/g3w-admin) applications folder:
45
+
46
+ (Change the following 1.0.0 example version number)
47
+ ```sh
48
+ # Install module from github (v1.0.0)
49
+ pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@v1.0.0
50
+
51
+ # Install module from github (dev branch)
52
+ # pip3 install git+https://github.com/g3w-suite/g3w-admin-pdnd.git@dev
53
+
54
+ # Install module from local folder (git development)
55
+ # pip3 install -e /g3w-admin/plugins/qpdnd
56
+
57
+ # Install module from PyPi (not yet available)
58
+ # pip3 install g3w-admin-pdnd
59
+ ```
60
+
61
+ ### Load lincense fixture data
62
+ ```sh
63
+ python3 manaage.py loaddata license
64
+ ```
65
+
66
+ ## Development and tests
67
+
68
+ The integration BDD scenarios are in [`qpdnd/tests/features`](qpdnd/tests/features).
69
+ They run in the G3W-ADMIN/QGIS environment used by CI. Install test dependencies:
70
+
71
+ ```sh
72
+ python3 -m pip install -r requirements_test.txt
73
+ ```
74
+
75
+ From the configured G3W-ADMIN directory, run:
76
+
77
+ ```sh
78
+ python3 manage.py behave --simple qpdnd/tests
79
+ ```
80
+
81
+ The existing Django unit tests can be run with:
82
+
83
+ ```sh
84
+ python3 manage.py test qpdnd
85
+ ```
@@ -0,0 +1,118 @@
1
+ .gitignore
2
+ LICENSE
3
+ MANIFEST.in
4
+ README.md
5
+ pyproject.toml
6
+ requirements.txt
7
+ requirements_test.txt
8
+ .github/release.yml
9
+ .github/workflows/backport.yml
10
+ .github/workflows/cd.yml
11
+ .github/workflows/ci.yml
12
+ doc/img/pdnd_schema.png
13
+ g3w_admin_pdnd.egg-info/PKG-INFO
14
+ g3w_admin_pdnd.egg-info/SOURCES.txt
15
+ g3w_admin_pdnd.egg-info/dependency_links.txt
16
+ g3w_admin_pdnd.egg-info/requires.txt
17
+ g3w_admin_pdnd.egg-info/scm_file_list.json
18
+ g3w_admin_pdnd.egg-info/top_level.txt
19
+ qpdnd/__init__.py
20
+ qpdnd/admin.py
21
+ qpdnd/apiurls.py
22
+ qpdnd/apps.py
23
+ qpdnd/receivers.py
24
+ qpdnd/run_celery.sh
25
+ qpdnd/settings.py
26
+ qpdnd/sitetrees.py
27
+ qpdnd/tasks.py
28
+ qpdnd/urls.py
29
+ qpdnd/api/__init__.py
30
+ qpdnd/api/permissions.py
31
+ qpdnd/api/views.py
32
+ qpdnd/api/decorators/__init__.py
33
+ qpdnd/api/decorators/voucher_checker.py
34
+ qpdnd/api/models/__init__.py
35
+ qpdnd/api/models/aggiornamentoaccessi.py
36
+ qpdnd/api/models/aggiornamentointerni.py
37
+ qpdnd/api/models/aggiornamentoodonimi.py
38
+ qpdnd/api/models/consultazioni_comuni.py
39
+ qpdnd/api/models/coordinate.py
40
+ qpdnd/api/models/gestionecoordinate.py
41
+ qpdnd/api/models/mtype.py
42
+ qpdnd/fixtures/license.json
43
+ qpdnd/fixtures/qpdnd.istatcodiciui.json
44
+ qpdnd/forms/__init__.py
45
+ qpdnd/forms/anncsu.py
46
+ qpdnd/forms/projects.py
47
+ qpdnd/management/__init__.py
48
+ qpdnd/management/commands/__init__.py
49
+ qpdnd/management/commands/import_licenses_from_github.py
50
+ qpdnd/management/commands/run_task.py
51
+ qpdnd/migrations/0001_initial.py
52
+ qpdnd/migrations/0002_qpdndlayer_endpoint.py
53
+ qpdnd/migrations/0003_auto_20240725_1022.py
54
+ qpdnd/migrations/0004_qpdndproject_version.py
55
+ qpdnd/migrations/0005_auto_20240726_0929.py
56
+ qpdnd/migrations/0006_alter_qpdndproject_terms_of_service.py
57
+ qpdnd/migrations/0007_auto_20240730_0930.py
58
+ qpdnd/migrations/0008_license_node_id.py
59
+ qpdnd/migrations/0009_qpdndproject_license.py
60
+ qpdnd/migrations/0010_qpdndproject_x_api_id.py
61
+ qpdnd/migrations/0011_auto_20240920_0809.py
62
+ qpdnd/migrations/0012_alter_qpdndproject_qpdnd_env.py
63
+ qpdnd/migrations/0013_auto_20240920_0821.py
64
+ qpdnd/migrations/0014_qpdndproject_pdnd_eservice_is.py
65
+ qpdnd/migrations/0015_rename_pdnd_eservice_is_qpdndproject_pdnd_eservice_id.py
66
+ qpdnd/migrations/0016_alter_qpdndproject_terms_of_service.py
67
+ qpdnd/migrations/0017_auto_20250107_1102.py
68
+ qpdnd/migrations/0018_qpdndproject_client_setting.py
69
+ qpdnd/migrations/0019_auto_20250108_1636.py
70
+ qpdnd/migrations/0020_qpdndclientsetting_pdnd_audience.py
71
+ qpdnd/migrations/0021_alter_qpdndproject_project_anncsuroject.py
72
+ qpdnd/migrations/0022_rename_anncsuroject_anncsuproject.py
73
+ qpdnd/migrations/0023_anncsuproject_client_setting.py
74
+ qpdnd/migrations/0024_remove_anncsuproject_client_setting_and_more.py
75
+ qpdnd/migrations/0025_istatcodiciui.py
76
+ qpdnd/migrations/0026_anncsuproject_codice_comune.py
77
+ qpdnd/migrations/0027_anncsuproject_task_id.py
78
+ qpdnd/migrations/0028_alter_anncsuproject_project.py
79
+ qpdnd/migrations/0029_anncsuproject_govway_password_and_more.py
80
+ qpdnd/migrations/0030_anncsuproject_api_type.py
81
+ qpdnd/migrations/0031_anncsuproject_results.py
82
+ qpdnd/migrations/0032_alter_anncsuproject_api_type.py
83
+ qpdnd/migrations/0033_alter_anncsuproject_options.py
84
+ qpdnd/migrations/0034_anncsutaskhistory.py
85
+ qpdnd/migrations/__init__.py
86
+ qpdnd/models/__init__.py
87
+ qpdnd/models/anncsu.py
88
+ qpdnd/models/expose.py
89
+ qpdnd/server_filters/__init__.py
90
+ qpdnd/server_filters/layer.py
91
+ qpdnd/static/qpdnd/js/widget.js
92
+ qpdnd/templates/qpdnd/client_setting_form.html
93
+ qpdnd/templates/qpdnd/client_settings_list.html
94
+ qpdnd/templates/qpdnd/project_form.html
95
+ qpdnd/templates/qpdnd/projects_list.html
96
+ qpdnd/templates/qpdnd/anncsu/project.html
97
+ qpdnd/templates/qpdnd/anncsu/project_list.html
98
+ qpdnd/templates/qpdnd/anncsu/run.html
99
+ qpdnd/templates/qpdnd/anncsu/run_conscom.html
100
+ qpdnd/templates/qpdnd/anncsu/include/endpoint_check.html
101
+ qpdnd/templates/qpdnd/anncsu/include/task_status.html
102
+ qpdnd/templates/qpdnd/messages/check_project_delete.html
103
+ qpdnd/templates/qpdnd/messages/check_project_update.html
104
+ qpdnd/utils/__init__.py
105
+ qpdnd/utils/anncsu.py
106
+ qpdnd/utils/general.py
107
+ qpdnd/utils/pdnd.py
108
+ qpdnd/views/__init__.py
109
+ qpdnd/views/anncsu_admin.py
110
+ qpdnd/views/anncsu_run.py
111
+ qpdnd/views/client_settings.py
112
+ qpdnd/views/projects.py
113
+ schemas/README.md
114
+ schemas/aggiornamento_accessi.yml
115
+ schemas/aggiornamento_coordinate.yaml
116
+ schemas/aggiornamento_interni.yml
117
+ schemas/aggiornamento_odonimi.yml
118
+ schemas/consultazione_comuni.yml
@@ -0,0 +1,6 @@
1
+ aiohttp==3.14.3
2
+ PyJWT<3.0.0,>=2.0.0
3
+ cryptography==38.0.4
4
+ pydantic==2.6.3
5
+
6
+ [dev]
@@ -0,0 +1,139 @@
1
+ {
2
+ "files": [
3
+ ".github/release.yml",
4
+ ".github/workflows/backport.yml",
5
+ ".github/workflows/cd.yml",
6
+ ".github/workflows/ci.yml",
7
+ ".gitignore",
8
+ "LICENSE",
9
+ "MANIFEST.in",
10
+ "README.md",
11
+ "doc/img/pdnd_schema.png",
12
+ "pyproject.toml",
13
+ "qpdnd/__init__.py",
14
+ "qpdnd/admin.py",
15
+ "qpdnd/api/__init__.py",
16
+ "qpdnd/api/decorators/__init__.py",
17
+ "qpdnd/api/decorators/voucher_checker.py",
18
+ "qpdnd/api/models/__init__.py",
19
+ "qpdnd/api/models/aggiornamentoaccessi.py",
20
+ "qpdnd/api/models/aggiornamentointerni.py",
21
+ "qpdnd/api/models/aggiornamentoodonimi.py",
22
+ "qpdnd/api/models/consultazioni_comuni.py",
23
+ "qpdnd/api/models/coordinate.py",
24
+ "qpdnd/api/models/gestionecoordinate.py",
25
+ "qpdnd/api/models/mtype.py",
26
+ "qpdnd/api/permissions.py",
27
+ "qpdnd/api/views.py",
28
+ "qpdnd/apiurls.py",
29
+ "qpdnd/apps.py",
30
+ "qpdnd/fixtures/license.json",
31
+ "qpdnd/fixtures/qpdnd.istatcodiciui.json",
32
+ "qpdnd/forms/__init__.py",
33
+ "qpdnd/forms/anncsu.py",
34
+ "qpdnd/forms/projects.py",
35
+ "qpdnd/management/__init__.py",
36
+ "qpdnd/management/commands/__init__.py",
37
+ "qpdnd/management/commands/import_licenses_from_github.py",
38
+ "qpdnd/management/commands/run_task.py",
39
+ "qpdnd/migrations/0001_initial.py",
40
+ "qpdnd/migrations/0002_qpdndlayer_endpoint.py",
41
+ "qpdnd/migrations/0003_auto_20240725_1022.py",
42
+ "qpdnd/migrations/0004_qpdndproject_version.py",
43
+ "qpdnd/migrations/0005_auto_20240726_0929.py",
44
+ "qpdnd/migrations/0006_alter_qpdndproject_terms_of_service.py",
45
+ "qpdnd/migrations/0007_auto_20240730_0930.py",
46
+ "qpdnd/migrations/0008_license_node_id.py",
47
+ "qpdnd/migrations/0009_qpdndproject_license.py",
48
+ "qpdnd/migrations/0010_qpdndproject_x_api_id.py",
49
+ "qpdnd/migrations/0011_auto_20240920_0809.py",
50
+ "qpdnd/migrations/0012_alter_qpdndproject_qpdnd_env.py",
51
+ "qpdnd/migrations/0013_auto_20240920_0821.py",
52
+ "qpdnd/migrations/0014_qpdndproject_pdnd_eservice_is.py",
53
+ "qpdnd/migrations/0015_rename_pdnd_eservice_is_qpdndproject_pdnd_eservice_id.py",
54
+ "qpdnd/migrations/0016_alter_qpdndproject_terms_of_service.py",
55
+ "qpdnd/migrations/0017_auto_20250107_1102.py",
56
+ "qpdnd/migrations/0018_qpdndproject_client_setting.py",
57
+ "qpdnd/migrations/0019_auto_20250108_1636.py",
58
+ "qpdnd/migrations/0020_qpdndclientsetting_pdnd_audience.py",
59
+ "qpdnd/migrations/0021_alter_qpdndproject_project_anncsuroject.py",
60
+ "qpdnd/migrations/0022_rename_anncsuroject_anncsuproject.py",
61
+ "qpdnd/migrations/0023_anncsuproject_client_setting.py",
62
+ "qpdnd/migrations/0024_remove_anncsuproject_client_setting_and_more.py",
63
+ "qpdnd/migrations/0025_istatcodiciui.py",
64
+ "qpdnd/migrations/0026_anncsuproject_codice_comune.py",
65
+ "qpdnd/migrations/0027_anncsuproject_task_id.py",
66
+ "qpdnd/migrations/0028_alter_anncsuproject_project.py",
67
+ "qpdnd/migrations/0029_anncsuproject_govway_password_and_more.py",
68
+ "qpdnd/migrations/0030_anncsuproject_api_type.py",
69
+ "qpdnd/migrations/0031_anncsuproject_results.py",
70
+ "qpdnd/migrations/0032_alter_anncsuproject_api_type.py",
71
+ "qpdnd/migrations/0033_alter_anncsuproject_options.py",
72
+ "qpdnd/migrations/0034_anncsutaskhistory.py",
73
+ "qpdnd/migrations/__init__.py",
74
+ "qpdnd/models/__init__.py",
75
+ "qpdnd/models/anncsu.py",
76
+ "qpdnd/models/expose.py",
77
+ "qpdnd/receivers.py",
78
+ "qpdnd/run_celery.sh",
79
+ "qpdnd/server_filters/__init__.py",
80
+ "qpdnd/server_filters/layer.py",
81
+ "qpdnd/settings.py",
82
+ "qpdnd/sitetrees.py",
83
+ "qpdnd/static/qpdnd/js/widget.js",
84
+ "qpdnd/tasks.py",
85
+ "qpdnd/templates/qpdnd/anncsu/include/endpoint_check.html",
86
+ "qpdnd/templates/qpdnd/anncsu/include/task_status.html",
87
+ "qpdnd/templates/qpdnd/anncsu/project.html",
88
+ "qpdnd/templates/qpdnd/anncsu/project_list.html",
89
+ "qpdnd/templates/qpdnd/anncsu/run.html",
90
+ "qpdnd/templates/qpdnd/anncsu/run_conscom.html",
91
+ "qpdnd/templates/qpdnd/client_setting_form.html",
92
+ "qpdnd/templates/qpdnd/client_settings_list.html",
93
+ "qpdnd/templates/qpdnd/messages/check_project_delete.html",
94
+ "qpdnd/templates/qpdnd/messages/check_project_update.html",
95
+ "qpdnd/templates/qpdnd/project_form.html",
96
+ "qpdnd/templates/qpdnd/projects_list.html",
97
+ "qpdnd/tests/__init__.py",
98
+ "qpdnd/tests/base.py",
99
+ "qpdnd/tests/cassettes/TestQPDNDModels.test_auth.yaml",
100
+ "qpdnd/tests/data/openapi/open.api.landingpage.json",
101
+ "qpdnd/tests/data/openapi/open.api.schema.json",
102
+ "qpdnd/tests/data/pdnd/keys/api-pdnd-coll-keypair.rsa.priv",
103
+ "qpdnd/tests/data/pdnd/keys/g3w-coll-keypair.rsa.priv",
104
+ "qpdnd/tests/data/project_data/ogc_api_1.gpkg",
105
+ "qpdnd/tests/data/projectinfo/response.json",
106
+ "qpdnd/tests/data/projects/test_ogc_api.qgs",
107
+ "qpdnd/tests/data/projects/test_ogc_api_no_wfs_actived.qgs",
108
+ "qpdnd/tests/features/access.feature",
109
+ "qpdnd/tests/features/regressions.feature",
110
+ "qpdnd/tests/pdnd_params.py",
111
+ "qpdnd/tests/steps/__init__.py",
112
+ "qpdnd/tests/steps/access.py",
113
+ "qpdnd/tests/steps/cases/__init__.py",
114
+ "qpdnd/tests/steps/cases/api_models.py",
115
+ "qpdnd/tests/steps/cases/forms.py",
116
+ "qpdnd/tests/steps/cases/models.py",
117
+ "qpdnd/tests/steps/cases/pdnd_auth.py",
118
+ "qpdnd/tests/steps/cases/views.py",
119
+ "qpdnd/tests/steps/regressions.py",
120
+ "qpdnd/urls.py",
121
+ "qpdnd/utils/__init__.py",
122
+ "qpdnd/utils/anncsu.py",
123
+ "qpdnd/utils/general.py",
124
+ "qpdnd/utils/pdnd.py",
125
+ "qpdnd/views/__init__.py",
126
+ "qpdnd/views/anncsu_admin.py",
127
+ "qpdnd/views/anncsu_run.py",
128
+ "qpdnd/views/client_settings.py",
129
+ "qpdnd/views/projects.py",
130
+ "requirements.txt",
131
+ "requirements_test.txt",
132
+ "schemas/README.md",
133
+ "schemas/aggiornamento_accessi.yml",
134
+ "schemas/aggiornamento_coordinate.yaml",
135
+ "schemas/aggiornamento_interni.yml",
136
+ "schemas/aggiornamento_odonimi.yml",
137
+ "schemas/consultazione_comuni.yml"
138
+ ]
139
+ }