dalia_dif 0.0.18__py3-none-any.whl → 0.0.19__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.
- dalia_dif/dif13/community/__init__.py +12 -2
- dalia_dif/dif13/community/dalia_communities.csv +1 -1
- dalia_dif/version.py +1 -1
- {dalia_dif-0.0.18.dist-info → dalia_dif-0.0.19.dist-info}/METADATA +1 -1
- {dalia_dif-0.0.18.dist-info → dalia_dif-0.0.19.dist-info}/RECORD +8 -8
- {dalia_dif-0.0.18.dist-info → dalia_dif-0.0.19.dist-info}/WHEEL +0 -0
- {dalia_dif-0.0.18.dist-info → dalia_dif-0.0.19.dist-info}/entry_points.txt +0 -0
- {dalia_dif-0.0.18.dist-info → dalia_dif-0.0.19.dist-info}/licenses/LICENSE +0 -0
|
@@ -21,10 +21,20 @@ class Community(BaseModel):
|
|
|
21
21
|
synonyms: list[str] = Field(default_factory=list)
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
RENAMES = {
|
|
25
|
+
"ID": "uuid",
|
|
26
|
+
"ROR": "ror",
|
|
27
|
+
"Website": "website",
|
|
28
|
+
"Synonyms": "synonyms",
|
|
29
|
+
"Title": "title",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
24
33
|
def _process(row: dict[str, Any]) -> Community:
|
|
25
|
-
|
|
34
|
+
row = {RENAMES[k]: v for k, v in row.items() if v}
|
|
35
|
+
if synonyms_raw := row.pop("synonyms", None):
|
|
26
36
|
row["synonyms"] = [s.strip() for s in synonyms_raw.split("|")]
|
|
27
|
-
return Community.model_validate(
|
|
37
|
+
return Community.model_validate(row)
|
|
28
38
|
|
|
29
39
|
|
|
30
40
|
def read_communities(path: Path) -> list[Community]:
|
dalia_dif/version.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dalia_dif
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.19
|
|
4
4
|
Summary: Tools for DALIA's data model for open educational resources
|
|
5
5
|
Keywords: snekpack,cookiecutter,open educational resources,educational resources,training
|
|
6
6
|
Author: Charles Tapley Hoyt
|
|
@@ -3,8 +3,8 @@ dalia_dif/__init__.py,sha256=uyO7jo0cu-99M2a87I7XeOH6c9ZPqRH46YgTdfXLOWg,66
|
|
|
3
3
|
dalia_dif/__main__.py,sha256=dlPNI11KSS49DY4SoTA1l8gQZr6iR9N1JJsySTjicUg,126
|
|
4
4
|
dalia_dif/cli.py,sha256=yvV0YeBSJ9cGlmcsuTaVqGw6-zokjLvoQ8xYHjPzoq8,3504
|
|
5
5
|
dalia_dif/dif13/__init__.py,sha256=tMaSW0hhnuO_Mt8CM_d0cTT6j_FSTGFY99crUawWa4w,457
|
|
6
|
-
dalia_dif/dif13/community/__init__.py,sha256=
|
|
7
|
-
dalia_dif/dif13/community/dalia_communities.csv,sha256=
|
|
6
|
+
dalia_dif/dif13/community/__init__.py,sha256=DvRb4_zuCKjfYJNPCZqG7iksvq0mUv9xURvIWM7Pbp8,2264
|
|
7
|
+
dalia_dif/dif13/community/dalia_communities.csv,sha256=Tcpo310kOtn1zNMKu183GjqcM8XlsubGrLSvbvotJxI,6191
|
|
8
8
|
dalia_dif/dif13/constants.py,sha256=NLNutj5AYok_WY1t1iE01dOCKK2eCnkezzN4TUgT-SA,6797
|
|
9
9
|
dalia_dif/dif13/export/__init__.py,sha256=-HXO3x8soeYPFg5vIggJcZihGbyeVn_DO42cqWwNAuA,28
|
|
10
10
|
dalia_dif/dif13/export/charts.py,sha256=8cXrq2UMnQUFi_Bda5L5sbZJRu2DnfUftj8zPe5c8ik,13695
|
|
@@ -31,9 +31,9 @@ dalia_dif/namespace/modalia.py,sha256=pSL-G9ib0E--Jwrbu9PvMMRjMe2FzzxoSjEv-0ank2
|
|
|
31
31
|
dalia_dif/namespace/rec.py,sha256=c2Ce5IEhnM_BcZJUCXiMQEZ2GLFcC_76hfkKE16-zLc,241
|
|
32
32
|
dalia_dif/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
33
33
|
dalia_dif/utils.py,sha256=AA19Bw0vv8-ODZzDy_VR57WwndRccaQIepVS8tvodDo,761
|
|
34
|
-
dalia_dif/version.py,sha256=
|
|
35
|
-
dalia_dif-0.0.
|
|
36
|
-
dalia_dif-0.0.
|
|
37
|
-
dalia_dif-0.0.
|
|
38
|
-
dalia_dif-0.0.
|
|
39
|
-
dalia_dif-0.0.
|
|
34
|
+
dalia_dif/version.py,sha256=JgVhjEt3ylQ4lm8iBE_45vP-IBTOL5sgAbkPUPD2Jng,962
|
|
35
|
+
dalia_dif-0.0.19.dist-info/licenses/LICENSE,sha256=S-DsND478R_VQyGmtXbVYW67fRiJj3QfY8UXIJ4zvLI,1076
|
|
36
|
+
dalia_dif-0.0.19.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
|
|
37
|
+
dalia_dif-0.0.19.dist-info/entry_points.txt,sha256=GmBz8JVyUD6m4v2QIxa7gm3sHIVNjTl5KTPP7L3FCGI,50
|
|
38
|
+
dalia_dif-0.0.19.dist-info/METADATA,sha256=b9rRxjsm2wZqpNKd7wP5noeSlDQ5UxfOagIj4KXY-mg,17760
|
|
39
|
+
dalia_dif-0.0.19.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|