Skip to main content

pyLoDStorage

python List of Dict (Table) Storage library

PyPi PyPI Status License pypi format downloads
GitHub Github Actions Build Release Contributors Last Commit GitHub issues GitHub closed issues
Code style-black imports-isort
Docs API Docs formatter-docformatter style-google
Cite DOI

Cite as

If you use pyLoDStorage in your research, please cite it via its Zenodo concept DOI (which always resolves to the latest version):

Fahl, W., & Holzheim, T. pyLoDStorage — python List of Dict (Table) Storage library. Zenodo. https://doi.org/10.5281/zenodo.17805335

Machine-readable metadata is available in CITATION.cff; GitHub's "Cite this repository" button and Zenodo pick it up automatically. For a specific release, use the version DOI shown on the corresponding Zenodo record.

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

Wiki

Authors

Metadata

Release files for pyLodStorage 0.19.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyLodStorage 0.19.10
File Size Uploaded Provenance Actions
pylodstorage-0.19.10.tar.gz 686.1 kB With provenance Details for pylodstorage-0.19.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyLodStorage 0.19.10
File Interpreter ABI Platform Actions
pylodstorage-0.19.10-py3-none-any.whl Python 3 none any Details for pylodstorage-0.19.10-py3-none-any.whl

Total release size: 787.9 kB

Release files / pylodstorage-0.19.10.tar.gz

Download URL pylodstorage-0.19.10.tar.gz
Size 686.1 kB
Tags Source
SHA-256 checksum
How to use checksums
cd919c2eba9a99d672029ff65edff1411403308a8e99653d61905e40b7265f57
BLAKE2b-256 checksum
How to use checksums
605a092d17b67ac6d872b1acd7adae504c9df0aeda01f3a4955ef7c2bba4d150
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / pylodstorage-0.19.10-py3-none-any.whl

Download URL pylodstorage-0.19.10-py3-none-any.whl
Size 101.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
175d0076da64f9612b0df5557e73a5bfd2d052ad74a58d4bc503f44772016026
BLAKE2b-256 checksum
How to use checksums
f68b0a9bb1299759ade406060de0f18fd10a00f70c14ce5959f561033ca04d7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for pyLodStorage 0.19.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pylodstorage-0.19.10.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.19.10 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page