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.
CLI
We provide a dbispipeline-link
tool that can be used to link datasets to
the data directory. To use this feature provide a data/links.yaml
file.
An example could look like this:
---
datasets:
- music/acousticbrainz
- music/billboard
- music/millionsongdataset
To set the root path where the datasets are linked from either set the CLI parameter or configure the dbispipeline acordingly (See the sample config below).
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
# this is used to linke the used datasets spcified in data/links.yaml
# it is possible to override this by setting the DBISPIPELINE_DATASET_DIR
# environment variable
dataset_dir = /storage/nas/datasets
[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
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
Built Distribution
File details
Details for the file dbispipeline-0.8.10.tar.gz
.
File metadata
- Download URL: dbispipeline-0.8.10.tar.gz
- Upload date:
- Size: 31.2 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.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b896a4aa02ce3520687eac088f6c88a06f97996a562714b7e90dae5e8896ad9 |
|
MD5 | 5017008921bebea0a6acc0373d6f1945 |
|
BLAKE2b-256 | 842b17e5608cd1921435d63b5459989dd98e4bfd6cee58305a4ae33874f8a7d4 |
File details
Details for the file dbispipeline-0.8.10-py3-none-any.whl
.
File metadata
- Download URL: dbispipeline-0.8.10-py3-none-any.whl
- Upload date:
- Size: 37.8 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.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88008fa320a7acf959db44d72ea92d92a7c9faad0f2a7f8233848fae842fd805 |
|
MD5 | 916c8614b869ef86bd6f2ffa773fdc78 |
|
BLAKE2b-256 | 82b24817448f14ddf06c2fbfbe4708cfc519610737f519ff0f5a7a5dc68d7a5b |