pyLodStorage 0.1.2__tar.gz → 0.1.4__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 (29) hide show
  1. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/PKG-INFO +1 -1
  2. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/querymain.py +7 -2
  3. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/PKG-INFO +1 -1
  4. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/setup.py +1 -1
  5. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/LICENSE +0 -0
  6. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/README.md +0 -0
  7. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/__init__.py +0 -0
  8. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/csv.py +0 -0
  9. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/entity.py +0 -0
  10. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/jsonable.py +0 -0
  11. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/jsonpicklemixin.py +0 -0
  12. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/lod.py +0 -0
  13. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/mwTable.py +0 -0
  14. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/plot.py +0 -0
  15. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/query.py +0 -0
  16. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sample.py +0 -0
  17. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/schema.py +0 -0
  18. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sparql.py +0 -0
  19. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/sql.py +0 -0
  20. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/storageconfig.py +0 -0
  21. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/tabulateCounter.py +0 -0
  22. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/uml.py +0 -0
  23. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/lodstorage/yamlablemixin.py +0 -0
  24. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/SOURCES.txt +0 -0
  25. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/dependency_links.txt +0 -0
  26. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/entry_points.txt +0 -0
  27. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/requires.txt +0 -0
  28. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/pylodstorage.egg-info/top_level.txt +0 -0
  29. {pylodstorage-0.1.2 → pylodstorage-0.1.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: python List of Dict (Table) Storage library
5
5
  Home-page: https://github.com/WolfgangFahl/pyLodStorage
6
6
  Author: Wolfgang Fahl
@@ -3,7 +3,7 @@ Created on 2022-02-13
3
3
 
4
4
  @author: wf
5
5
  '''
6
- __version__ = "0.1.2"
6
+ __version__ = "0.1.4"
7
7
  __date__ = '2020-09-10'
8
8
  __updated__ = '2022-02-13'
9
9
  DEBUG = 0
@@ -39,7 +39,11 @@ class QueryMain:
39
39
  command line activation with parsed args
40
40
  '''
41
41
  debug=args.debug
42
- if args.queryName is not None:
42
+ if args.list:
43
+ qm=QueryManager(lang=args.language,debug=debug,queriesPath=args.queriesPath)
44
+ for name,query in qm.queriesByName.items():
45
+ print(f"{name}:{query.title}")
46
+ elif args.queryName is not None:
43
47
  if debug:
44
48
  print(f"named query {args.queryName}:")
45
49
  qm=QueryManager(lang=args.language,debug=debug,queriesPath=args.queriesPath)
@@ -99,6 +103,7 @@ USAGE
99
103
  parser.add_argument("-d", "--debug", dest="debug", action="store_true", help="set debug [default: %(default)s]")
100
104
  parser.add_argument('-e', '--endpoint', default="https://query.wikidata.org/sparql", help="SPARQL endpoint to use for queries")
101
105
  parser.add_argument('-f','--format', type=Format, choices=list(Format))
106
+ parser.add_argument('-l','--list',help="show the list of available queries")
102
107
  parser.add_argument('-qp', '--queriesPath',help="path to YAML file with query definitions")
103
108
  parser.add_argument("-q", "--query",help="the query to run")
104
109
  parser.add_argument("-qn","--queryName",help="run a named query")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pylodstorage
3
- Version: 0.1.2
3
+ Version: 0.1.4
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.1.2',
14
+ version='0.1.4',
15
15
 
16
16
  packages=['lodstorage',],
17
17
  author='Wolfgang Fahl',
File without changes
File without changes
File without changes