Skip to main content

Database Connection for OpenSTF

Project description

Python Build REUSE Compliance Check Quality Gate Status

# Openstf-dbc - Database connector for openstf (reference)

This repository houses the python package [openstf-dbc](https://pypi.org/project/openstf-dbc/), which provides an interface to openstf (reference) databases.

Related projects:
- [openstf-reference](https://github.com/alliander-opensource/openstf-reference)
- [openstf](https://github.com/alliander-opensource/short-term-forecasting)


## Install

1. Install by running `pip install openstf-dbc`
2. Enjoy!

## Usage

This is a package with functionality to support the openstf workflow. Most important is the DataBase class.
This class give access to the data used by openstf-reference via a convenient interface. You can use it, for example, to retrieve a prediction job by running the following lines of code:

```python
from openstf_dbc.config.config import ConfigManager
from openstf_dbc.database import DataBase

config = ConfigManager.load_project_config(PROJECT_ROOT)

db = DataBase(config)

pj = db.get_prediction_job(307)

License

This project is licensed under the Mozilla Public License, version 2.0 - see LICENSE for details.

Licenses third-party libraries

This project includes third-party libraries, which are licensed under their own respective Open-Source licenses. SPDX-License-Identifier headers are used to show which license is applicable. The concerning license files can be found in the LICENSES directory.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Contact

korte.termijn.prognoses@alliander.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstf_dbc-2.0.2.tar.gz (45.3 kB view details)

Uploaded Source

Built Distribution

openstf_dbc-2.0.2-py3-none-any.whl (56.4 kB view details)

Uploaded Python 3

File details

Details for the file openstf_dbc-2.0.2.tar.gz.

File metadata

  • Download URL: openstf_dbc-2.0.2.tar.gz
  • Upload date:
  • Size: 45.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for openstf_dbc-2.0.2.tar.gz
Algorithm Hash digest
SHA256 c992e4d1698ceb3faa4e19b6a8a0701d903a2d01c2430f7babe9aea0485b0b18
MD5 0b1953f7791d81b590c6fdfdff417400
BLAKE2b-256 55ab341ddb075b70daa67287645e5b601280ecd51d4c7abefaaf11fbabb7ce6f

See more details on using hashes here.

File details

Details for the file openstf_dbc-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: openstf_dbc-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 56.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for openstf_dbc-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 acabaae3c367e06ad47e3dddb7df1f49ad9a43620be66de02b208f23d30ce24d
MD5 d9d36a0d02828b70c44ef786c1a9ddea
BLAKE2b-256 737f84d7109565bb246ad60d1f834615066e4b2a6c4ecdfff2d8f48c1e761951

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