python List of Dict (Table) Storage library
Project description
pyLoDStorage
python List of Dict (Table) Storage library
| PyPi | |
| GitHub | |
| Code | |
| Docs | |
What it is
pyLoDStorage allows to store table like data (List of Dicts) via
- Sqlite3
- JSON
- SPARQL
Installation
pip install pylodstorage
Get Sources
git clone https://github.com/WolfgangFahl/pyLoDStorage
cd pyLodStorage
scripts/install
Testing
scripts/test
Usage
see test cases
Command Line Interface
sparqlquery
sparqlquery -h
usage: sparqlquery [-h] [-d] [-ep ENDPOINTPATH] [-fp FORMATSPATH] [-li]
[--limit LIMIT] [--params PARAMS] [-le] [-sq]
[-qp QUERIESPATH] [-q QUERY] [-qf QUERYFILE]
[-qn QUERYNAME] [-en ENDPOINTNAME] [--method METHOD]
[-f {csv,json,html,xml,tsv,latex,mediawiki,raw,github}]
[-m MIMETYPE] [-p] [-raw] [-V]
commandline query of endpoints in diverse languages such as SPARQL/SQL
Created by Wolfgang Fahl on 2020-09-10.
Copyright 2020-2025 Wolfgang Fahl. All rights reserved.
Licensed under the Apache License 2.0
http://www.apache.org/licenses/LICENSE-2.0
Distributed on an "AS IS" basis without warranties
or conditions of any kind, either express or implied.
USAGE
options:
-h, --help show this help message and exit
-d, --debug set debug [default: False]
-ep ENDPOINTPATH, --endpointPath ENDPOINTPATH
path to yaml file to configure endpoints to use for
queries
-fp FORMATSPATH, --formatsPath FORMATSPATH
path to yaml file to configure formats to use for
query result documentation
-li, --list show the list of available queries
--limit LIMIT set limit parameter of query
--params PARAMS query parameters as Key-value pairs in the format
key1=value1,key2=value2
-le, --listEndpoints show the list of available endpoints
-sq, --showQuery show the query
-qp QUERIESPATH, --queriesPath QUERIESPATH
path to YAML file with query definitions
-q QUERY, --query QUERY
the query to run
-qf QUERYFILE, --queryFile QUERYFILE
the query file to run
-qn QUERYNAME, --queryName QUERYNAME
run a named query
-en ENDPOINTNAME, --endpointName ENDPOINTNAME
Name of the endpoint to use for queries. Available by
default: ['wikidata', 'wikidata-main', 'wikidata-
scholarly', 'wikidata-legacy-full', 'wikidata-dbis',
'wikidata-qlever', ...]
--method METHOD method to be used for SPARQL queries
-f {csv,json,html,xml,tsv,latex,mediawiki,raw,github}, --format {csv,json,html,xml,tsv,latex,mediawiki,raw,github}
-m MIMETYPE, --mimeType MIMETYPE
MIME-type to use for the raw query
-p, --prefixes add predefined prefixes for endpoint
-raw return the raw query result from the endpoint. (MIME
type defined over -f or -m)
-V, --version show program's version number and exit
Documentation
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pylodstorage-0.19.2.tar.gz.
File metadata
- Download URL: pylodstorage-0.19.2.tar.gz
- Upload date:
- Size: 657.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b36f3ee1e54d251622dc82b511b0bb30f7fe348d720c8b9f8e1cf359215313bb
|
|
| MD5 |
c813c6b62a31330569bf4dedd326b4f0
|
|
| BLAKE2b-256 |
f8821ab8ecaa27468dc6a5e2a71115f64a99159f8f326a42d31d64b2ae6e7c37
|
Provenance
The following attestation bundles were made for pylodstorage-0.19.2.tar.gz:
Publisher:
upload-to-pypi.yml on WolfgangFahl/pyLoDStorage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylodstorage-0.19.2.tar.gz -
Subject digest:
b36f3ee1e54d251622dc82b511b0bb30f7fe348d720c8b9f8e1cf359215313bb - Sigstore transparency entry: 1101136404
- Sigstore integration time:
-
Permalink:
WolfgangFahl/pyLoDStorage@6aa162d0abab6a567e9d9ba74326cc0fcf697f3f -
Branch / Tag:
refs/tags/v0.19.2 - Owner: https://github.com/WolfgangFahl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-to-pypi.yml@6aa162d0abab6a567e9d9ba74326cc0fcf697f3f -
Trigger Event:
release
-
Statement type:
File details
Details for the file pylodstorage-0.19.2-py3-none-any.whl.
File metadata
- Download URL: pylodstorage-0.19.2-py3-none-any.whl
- Upload date:
- Size: 92.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9efb66481273cd1711174992bcd39c615283d95f32a4122c9f7aa335e8a9eab2
|
|
| MD5 |
8301d14538bbeaa774564358172501eb
|
|
| BLAKE2b-256 |
f0f77cc257611802287a7de4743b3da2c44a2f35f75eb02c0162b83c1895eb1f
|
Provenance
The following attestation bundles were made for pylodstorage-0.19.2-py3-none-any.whl:
Publisher:
upload-to-pypi.yml on WolfgangFahl/pyLoDStorage
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pylodstorage-0.19.2-py3-none-any.whl -
Subject digest:
9efb66481273cd1711174992bcd39c615283d95f32a4122c9f7aa335e8a9eab2 - Sigstore transparency entry: 1101136419
- Sigstore integration time:
-
Permalink:
WolfgangFahl/pyLoDStorage@6aa162d0abab6a567e9d9ba74326cc0fcf697f3f -
Branch / Tag:
refs/tags/v0.19.2 - Owner: https://github.com/WolfgangFahl
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
upload-to-pypi.yml@6aa162d0abab6a567e9d9ba74326cc0fcf697f3f -
Trigger Event:
release
-
Statement type: