pyLodStorage 0.0.52__tar.gz → 0.0.53__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.
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/PKG-INFO +1 -1
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/jsonable.py +5 -4
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/pylodstorage.egg-info/PKG-INFO +1 -1
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/setup.py +1 -1
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/LICENSE +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/README.md +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/__init__.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/csv.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/entity.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/jsonpicklemixin.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/lod.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/mwTable.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/plot.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/query.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/sample.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/schema.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/sparql.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/sql.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/storageconfig.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/tabulateCounter.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/uml.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/lodstorage/yamlablemixin.py +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/pylodstorage.egg-info/SOURCES.txt +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/pylodstorage.egg-info/dependency_links.txt +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/pylodstorage.egg-info/requires.txt +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/pylodstorage.egg-info/top_level.txt +0 -0
- {pylodstorage-0.0.52 → pylodstorage-0.0.53}/setup.cfg +0 -0
|
@@ -489,14 +489,15 @@ class JSONAbleList(JSONAble):
|
|
|
489
489
|
jsonData=self.getJsonData()
|
|
490
490
|
return super().asJSON(asString, data=jsonData)
|
|
491
491
|
|
|
492
|
-
def restoreFromJsonFile(self,jsonFile:str):
|
|
492
|
+
def restoreFromJsonFile(self,jsonFile:str)->list:
|
|
493
493
|
'''
|
|
494
494
|
read my list of dicts and restore it
|
|
495
495
|
'''
|
|
496
496
|
lod=self.readLodFromJsonFile(jsonFile)
|
|
497
|
-
self.setListFromLoD(lod)
|
|
497
|
+
return self.setListFromLoD(lod)
|
|
498
498
|
|
|
499
|
-
|
|
499
|
+
|
|
500
|
+
def restoreFromJsonStr(self,jsonStr:str)->list:
|
|
500
501
|
'''
|
|
501
502
|
restore me from the given jsonStr
|
|
502
503
|
|
|
@@ -504,7 +505,7 @@ class JSONAbleList(JSONAble):
|
|
|
504
505
|
jsonStr(str): the json string to restore me from
|
|
505
506
|
'''
|
|
506
507
|
lod=self.readLodFromJsonStr(jsonStr)
|
|
507
|
-
self.setListFromLoD(lod)
|
|
508
|
+
return self.setListFromLoD(lod)
|
|
508
509
|
|
|
509
510
|
|
|
510
511
|
def readLodFromJsonFile(self,jsonFile:str,extension:str=".json"):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|