Skip to main content

Storage and database adapters available in project Thoth

Project description

This library provides a library called thoth-storages used in project Thoth. The library exposes core queries and methods for Dgraph database as well as adapters for manipulating with Ceph via its S3 compatible API.

Installation and Usage

The library can be installed via pip or Pipenv from PyPI:

pipenv install thoth-storages

The library does not provide any CLI, it is rather a low level library supporting other parts of Thoth.

You can run prepared testsuite via the following command:

pipenv install --dev
pipenv run python3 setup.py test

# To generate docs:
pipenv run python3 setup.py build_sphinx

Automatically generate schema for Graph database

To automatically generate schema for the graph database from models defined in this module, run:

PYTHONPATH=. pipenv run python3 ./create_schema.py --output thoth/storages/graph/schema.rdf

After running this command, the RDF file describing schema will be updated based on changes in model.

from thoth.storages import GraphDatabase

# Also provide configuration if needed.
graph = GraphDatabase()
graph.connect()
graph.initialize_schema()

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

thoth-storages-0.14.2.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

thoth_storages-0.14.2-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

Details for the file thoth-storages-0.14.2.tar.gz.

File metadata

  • Download URL: thoth-storages-0.14.2.tar.gz
  • Upload date:
  • Size: 34.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for thoth-storages-0.14.2.tar.gz
Algorithm Hash digest
SHA256 9c37f53cbf988cefaa1ba78e4a9e9abf97f98e029054dcbe812c3d8b0ce3d359
MD5 ec8ba17ade7b303c0d0a93f91deec989
BLAKE2b-256 a594de6b4a770b6ae343b22f1ddf50fc76a5b6257593a27c2defca787580c489

See more details on using hashes here.

File details

Details for the file thoth_storages-0.14.2-py3-none-any.whl.

File metadata

  • Download URL: thoth_storages-0.14.2-py3-none-any.whl
  • Upload date:
  • Size: 53.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/36.5.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.3

File hashes

Hashes for thoth_storages-0.14.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fbf0ecfc6d6ad65be8da1937088053203c7f455172d9b6ad3be86b90213f05c
MD5 76a7347747d6e2522a84acc411ee4e17
BLAKE2b-256 a3cf11df0196e2d5369f7fb9dd60934e8bd7ad161bd8d8782ada6be94229e62f

See more details on using hashes here.

Supported by

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