jsonstat-validator 0.1.6__py3-none-any.whl → 0.2.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.
- jsonstat_validator/__init__.py +4 -11
- jsonstat_validator/models.py +775 -0
- jsonstat_validator/validator.py +38 -737
- {jsonstat_validator-0.1.6.dist-info → jsonstat_validator-0.2.1.dist-info}/METADATA +5 -5
- jsonstat_validator-0.2.1.dist-info/RECORD +8 -0
- {jsonstat_validator-0.1.6.dist-info → jsonstat_validator-0.2.1.dist-info}/WHEEL +1 -1
- jsonstat_validator-0.1.6.dist-info/RECORD +0 -7
- {jsonstat_validator-0.1.6.dist-info → jsonstat_validator-0.2.1.dist-info}/licenses/LICENSE +0 -0
- {jsonstat_validator-0.1.6.dist-info → jsonstat_validator-0.2.1.dist-info}/top_level.txt +0 -0
jsonstat_validator/__init__.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
"""
|
2
|
-
JSON-stat validator.
|
1
|
+
"""JSON-stat validator.
|
3
2
|
|
4
3
|
A validator for the JSON-stat 2.0 format, a simple lightweight JSON format
|
5
4
|
for data dissemination. It is based in a cube model that arises from the
|
@@ -10,27 +9,21 @@ dimensions are organized in categories.
|
|
10
9
|
For more information on JSON-stat, see: https://json-stat.org/
|
11
10
|
"""
|
12
11
|
|
13
|
-
from jsonstat_validator.
|
12
|
+
from jsonstat_validator.models import (
|
14
13
|
Category,
|
15
14
|
Collection,
|
16
15
|
Dataset,
|
17
|
-
DatasetRole,
|
18
16
|
Dimension,
|
19
17
|
JSONStatSchema,
|
20
|
-
Link,
|
21
|
-
Unit,
|
22
|
-
validate_jsonstat,
|
23
18
|
)
|
19
|
+
from jsonstat_validator.validator import validate_jsonstat
|
24
20
|
|
25
|
-
__version__ = "0.1
|
21
|
+
__version__ = "0.2.1"
|
26
22
|
__all__ = [
|
27
23
|
"Dataset",
|
28
24
|
"Dimension",
|
29
25
|
"Collection",
|
30
|
-
"Link",
|
31
|
-
"Unit",
|
32
26
|
"Category",
|
33
|
-
"DatasetRole",
|
34
27
|
"JSONStatSchema",
|
35
28
|
"validate_jsonstat",
|
36
29
|
]
|