goodmap 0.4.4__py3-none-any.whl → 0.5.1__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.
- goodmap/core_api.py +212 -25
- goodmap/data_models/location.py +2 -1
- goodmap/data_validator.py +1 -1
- goodmap/db.py +448 -0
- goodmap/goodmap.py +27 -1
- goodmap/templates/goodmap-admin.html +743 -0
- {goodmap-0.4.4.dist-info → goodmap-0.5.1.dist-info}/METADATA +11 -3
- goodmap-0.5.1.dist-info/RECORD +14 -0
- {goodmap-0.4.4.dist-info → goodmap-0.5.1.dist-info}/WHEEL +1 -1
- goodmap/templates/admin.html +0 -0
- goodmap-0.4.4.dist-info/RECORD +0 -14
- {goodmap-0.4.4.dist-info → goodmap-0.5.1.dist-info}/LICENSE.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: goodmap
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.5.1
|
|
4
4
|
Summary: Map engine to serve all the people :)
|
|
5
5
|
Author: Krzysztof Kolodzinski
|
|
6
6
|
Author-email: krzysztof.kolodzinski@problematy.pl
|
|
@@ -22,7 +22,7 @@ Requires-Dist: google-cloud-storage (>=2.7.0,<3.0.0)
|
|
|
22
22
|
Requires-Dist: gql (>=3.4.0,<4.0.0)
|
|
23
23
|
Requires-Dist: gunicorn (>=20.1.0,<21.0.0)
|
|
24
24
|
Requires-Dist: humanize (>=4.6.0,<5.0.0)
|
|
25
|
-
Requires-Dist: platzky (>=0.
|
|
25
|
+
Requires-Dist: platzky (>=0.3.6,<0.4.0)
|
|
26
26
|
Requires-Dist: pydantic (>=2.7.1,<3.0.0)
|
|
27
27
|
Description-Content-Type: text/markdown
|
|
28
28
|
|
|
@@ -82,11 +82,17 @@ you can simply run app with test dataset provided in `tests/e2e_tests` directory
|
|
|
82
82
|
### Configuration
|
|
83
83
|
|
|
84
84
|
If you want to serve app with your configuration rename config-template.yml to config.yml and change its contents according to your needs.
|
|
85
|
-
Values descriptions you can find inside config-template.yml.
|
|
86
85
|
|
|
87
86
|
Afterwards run it with:
|
|
88
87
|
> poetry run flask --app 'goodmap.goodmap:create_app(config_path="/PATH/TO/YOUR/CONFIG")' --debug run
|
|
89
88
|
|
|
89
|
+
|
|
90
|
+
| Option | Description |
|
|
91
|
+
|--------------------------|------------------------------------------------------------------------------------------------------------------------------------|
|
|
92
|
+
| USE_LAZY_LOADING | Loads point data only after the user clicks a point. If set to false, point data is loaded together with the initial map. |
|
|
93
|
+
| FAKE_LOGIN | If set to true, allows access to the admin panel by simply selecting the role instead of logging in. **DO NOT USE IN PRODUCTION!** |
|
|
94
|
+
| SHOW_ACCESSIBILITY_TABLE | If set as true it shows special view to help with accessing application. |
|
|
95
|
+
|
|
90
96
|
## Database
|
|
91
97
|
|
|
92
98
|
The database is stored in JSON, in the `map` section. For an example database see `tests/e2e_tests/e2e_test_data.json`. The first subsection `data` consists of the actual datapoints, representing points on a map.
|
|
@@ -121,3 +127,5 @@ You can find examples of working configuration and database in `tests/e2e_tests`
|
|
|
121
127
|
- `e2e_test_config.yml`
|
|
122
128
|
- `e2e_test_data.json`
|
|
123
129
|
|
|
130
|
+
|
|
131
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
goodmap/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
+
goodmap/core.py,sha256=rzMhOIYnR1jxTX6uHQJKIPLYxdUm4_v2d6LrtHtJpHU,1465
|
|
3
|
+
goodmap/core_api.py,sha256=pxR14Hiaotu_7GCGB4bNmntyroFV7aBamYzNnwytCW8,13985
|
|
4
|
+
goodmap/data_models/location.py,sha256=nvieHMobqLETSiC4GBAGVvHFOVMpf48sn6GntXi-6lY,1108
|
|
5
|
+
goodmap/data_validator.py,sha256=lBmVAPxvSmEOdUGeVYSjUvVVmKfPyq4CWoHfczTtEMM,4090
|
|
6
|
+
goodmap/db.py,sha256=fB9B0nzNuTsMBak7iV4bGxAxGF5NSTGikht9keDOTGA,17518
|
|
7
|
+
goodmap/formatter.py,sha256=VlUHcK1HtM_IEU0VE3S5TOkZLVheMdakvUeW2tCKdq0,783
|
|
8
|
+
goodmap/goodmap.py,sha256=Nx_s9JfEBbICNiPykiaMr7vepynZ6LcT0sb_pndL4D4,2654
|
|
9
|
+
goodmap/templates/goodmap-admin.html,sha256=zGuau239BXyBerV21mDXcHy34ke8cLmZcMngcX1xhAs,35598
|
|
10
|
+
goodmap/templates/map.html,sha256=llzzfWGHM0Xtr4Io05QJLCLajySHNBzKejR0Km5nGMw,3926
|
|
11
|
+
goodmap-0.5.1.dist-info/LICENSE.md,sha256=nkCQOR7uheLRvHRfXmwx9LhBnMcPeBU9d4ebLojDiQU,1067
|
|
12
|
+
goodmap-0.5.1.dist-info/METADATA,sha256=olBm-u5npCAhJAE4nu385pdnRc34HWQa_ZX0uIBSS9A,5278
|
|
13
|
+
goodmap-0.5.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
14
|
+
goodmap-0.5.1.dist-info/RECORD,,
|
goodmap/templates/admin.html
DELETED
|
File without changes
|
goodmap-0.4.4.dist-info/RECORD
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
goodmap/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
2
|
-
goodmap/core.py,sha256=rzMhOIYnR1jxTX6uHQJKIPLYxdUm4_v2d6LrtHtJpHU,1465
|
|
3
|
-
goodmap/core_api.py,sha256=wy861bym-OtJV_y65TNJNr_hxUW45bUK0j2Vt96HG1s,6544
|
|
4
|
-
goodmap/data_models/location.py,sha256=ESR4Z_zINIjldJKhlXImMaQrdtUPJBQc6SatpPPJyNQ,1054
|
|
5
|
-
goodmap/data_validator.py,sha256=e_PCc2CTgiEBK6inF_HDX5mb5R8poh3KkcbhyrLrFVA,4086
|
|
6
|
-
goodmap/db.py,sha256=AJHUP3n29BRjgt6GoGnPtxLNg5TL-KSJhtSZtsZKmGM,3665
|
|
7
|
-
goodmap/formatter.py,sha256=VlUHcK1HtM_IEU0VE3S5TOkZLVheMdakvUeW2tCKdq0,783
|
|
8
|
-
goodmap/goodmap.py,sha256=cPTTyGqajuza3RDlfFuCl8idxy7TFo6LPuANP8hmg7U,1806
|
|
9
|
-
goodmap/templates/admin.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
|
-
goodmap/templates/map.html,sha256=llzzfWGHM0Xtr4Io05QJLCLajySHNBzKejR0Km5nGMw,3926
|
|
11
|
-
goodmap-0.4.4.dist-info/LICENSE.md,sha256=nkCQOR7uheLRvHRfXmwx9LhBnMcPeBU9d4ebLojDiQU,1067
|
|
12
|
-
goodmap-0.4.4.dist-info/METADATA,sha256=9efllxXa6i44w0t6sXK5ok5mNsNDtmcxh_OolIBfdSg,4525
|
|
13
|
-
goodmap-0.4.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
|
14
|
-
goodmap-0.4.4.dist-info/RECORD,,
|
|
File without changes
|