Skip to main content

python List of Dict (Table) Storage library

Project description

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
DOI

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

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

pylodstorage-0.19.0.tar.gz (657.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylodstorage-0.19.0-py3-none-any.whl (92.6 kB view details)

Uploaded Python 3

File details

Details for the file pylodstorage-0.19.0.tar.gz.

File metadata

  • Download URL: pylodstorage-0.19.0.tar.gz
  • Upload date:
  • Size: 657.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylodstorage-0.19.0.tar.gz
Algorithm Hash digest
SHA256 88b842bac5d2ea25e37268d288ddfb4f9ed1ce3e6c6ac4016e6f87eb542e6c0d
MD5 b7bb49b03223c2d5babe48105c54e04c
BLAKE2b-256 9ef154f3cdb468f969ee63e48ee1994c1be13050c073dbaa4166ddefe2dc8626

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylodstorage-0.19.0.tar.gz:

Publisher: upload-to-pypi.yml on WolfgangFahl/pyLoDStorage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pylodstorage-0.19.0-py3-none-any.whl.

File metadata

  • Download URL: pylodstorage-0.19.0-py3-none-any.whl
  • Upload date:
  • Size: 92.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pylodstorage-0.19.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ddd403efc370e4f7b3d8ec8815e2d4cc4ea8e79fa5d4ef31e1d622a71cc3d7e0
MD5 d3cb3fe6faf4ed01291f13e7dcf4a4fb
BLAKE2b-256 2467920e5b697b1d0ad9cfd2614f2c229f7bfcad57684cd671ecae6908787be5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pylodstorage-0.19.0-py3-none-any.whl:

Publisher: upload-to-pypi.yml on WolfgangFahl/pyLoDStorage

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page