should make things more reproducible
Project description
DBIS Pipeline
This pipline can be used to run analyses in a structured way, and stores configurations and results in a database.
Usage
the user writes a minimal plan file which contains only the following information:
- "how do I get the data?", by providing a dataloader
- "what to do with the data?", by providing a scikit pipeline
- "how to process the result?", by providing result handlers.
- "where to additionally store results?" by providing storage handlers.
Please have a look at the examples for more information.
Requirements
- python >= 3.6
- a PostgreSQL database
- an email server if you want to use notification emails
Installation
- Install dbispipeline in your python. We recommend using pipenv to keep your
dependencies clean:
pipenv install dbispipeline
This call will install a virtual environment as well as all dependencies. - Write your plan(s). See the example plan files for guidance.
- call
pipenv run dp <yourplanfile.py>
Enjoy!
Configuration
The framework look in multiple directories for its configuration files.
/usr/local/etc/dbispipeline.ini
used for system wide default.$HOME/.config/dbispipeline.ini
used for user specific configurations../dbispipeline.ini
for project specific configurations.
And example configuration file looks like this:
[database]
# url to your postgres database
host = your.personal.database
# your database user name
user = user
# port of your postgres database, default = 5432
# port = 5432
# password of your database user
password = <secure-password>
# database to use
database = pipelineresults
# table to be used
result_table = my_super_awesome_results
[project]
# this will be stored in the database
name = dbispipeline-test
# this is used to store backups of the execution
# it is possible to override this by setting the DBISPIPELINE_BACKUP_DIR
# environment variable
# the default is the temp dir of the os if this option is not set.
backup_dir = tmp
[mail]
# email address to use as sender
sender = botname@yourserver.com
# recipient. This should probably be set on a home-directory-basis.
recipient = you@yourserver.com
# smtp server address to use
smtp_server = smtp.yourserver.com
# use smtp authentication, default = no
# authenticate = no
# username for smtp authentication, required if authenticate = yes
# username = foo
# password for smtp authentication, required if authenticate = yes
# password = bar
# port to use for smtp server connection, default = 465
# port = 465
Contributing
Please use the pre-commit hooks. Either install it on your system or use the development dependencies.
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
dbispipeline-0.6.5.tar.gz
(27.6 kB
view details)
Built Distribution
File details
Details for the file dbispipeline-0.6.5.tar.gz
.
File metadata
- Download URL: dbispipeline-0.6.5.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f8fd8bd0134f37bae3e8884596613d275c1e82f2402e9a07429c187a3760e90 |
|
MD5 | a619cb942a73fe3a48cc0aef29686bea |
|
BLAKE2b-256 | 9b3b2c7db1b41839a25cd244bf2538c02c14733506d1bb25da58d3f0c409f58f |
File details
Details for the file dbispipeline-0.6.5-py3-none-any.whl
.
File metadata
- Download URL: dbispipeline-0.6.5-py3-none-any.whl
- Upload date:
- Size: 33.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d9bbf87fa1f0dd86700a97329ac7a1a7b0335dc3bfda4c8e82688c6a682f3d2 |
|
MD5 | 6692fdb4e5c5785a2f00ff0f9171f514 |
|
BLAKE2b-256 | dc113acd9a5cdf49ed13af70775c01dbe0cbbb36b72181bb3dd4e9401a0d686e |