pyLodStorage 0.0.40__tar.gz → 0.0.41__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 (23) hide show
  1. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/PKG-INFO +1 -1
  2. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/lod.py +12 -0
  3. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/PKG-INFO +1 -1
  4. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/setup.py +1 -1
  5. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/LICENSE +0 -0
  6. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/README.md +0 -0
  7. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/__init__.py +0 -0
  8. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/csv.py +0 -0
  9. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/jsonable.py +0 -0
  10. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/mwTable.py +0 -0
  11. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/plot.py +0 -0
  12. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/query.py +0 -0
  13. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sample.py +0 -0
  14. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/schema.py +0 -0
  15. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sparql.py +0 -0
  16. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/sql.py +0 -0
  17. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/tabulateCounter.py +0 -0
  18. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/lodstorage/uml.py +0 -0
  19. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/SOURCES.txt +0 -0
  20. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/dependency_links.txt +0 -0
  21. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/requires.txt +0 -0
  22. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/pylodstorage.egg-info/top_level.txt +0 -0
  23. {pylodstorage-0.0.40 → pylodstorage-0.0.41}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -94,12 +94,24 @@ class LOD(object):
94
94
 
95
95
  @staticmethod
96
96
  def addLookup(lookup,duplicates,record,value,withDuplicates:bool):
97
+ '''
98
+ add a single lookup result
99
+
100
+ Args:
101
+ lookup(dict): the lookup map
102
+ duplicates(list): the list of duplicates
103
+ record(dict): the current record
104
+ value(object): the current value to lookup
105
+ withDuplicates(bool): if True duplicates should be allowed and lists returned if False a separate duplicates
106
+ list is created
107
+ '''
97
108
  if value in lookup:
98
109
  if withDuplicates:
99
110
  lookupResult=lookup[value]
100
111
  lookupResult.append(record)
101
112
  else:
102
113
  duplicates.append(record)
114
+ return
103
115
  else:
104
116
  if withDuplicates:
105
117
  lookupResult=[record]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.0.40
3
+ Version: 0.0.41
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -11,7 +11,7 @@ with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
11
11
 
12
12
  setup(
13
13
  name='pylodstorage',
14
- version='0.0.40',
14
+ version='0.0.41',
15
15
 
16
16
  packages=['lodstorage',],
17
17
  author='Wolfgang Fahl',
File without changes
File without changes
File without changes