Common functions for Data Science


Common libs used by SameSystem Data Science team.
Example Usage
database:
user: 'root'
from pathlib import Path
from samesyslib.utils import load_config
config_path = Path("/opt/settings/config.yml")
conf = load_config(config_path)
conf['database']['user']
from samesyslib.db import DB
from samesyslib.db_config import DBConfig
db = DB(DBConfig().get_config())
Install
The latest stable version can always be installed or updated via pip:
pip install samesyslib
Test Coverage
pip install pytest-cov
python -m pytest --cov=samesyslib tests
Updating
After editing the functions, increment package version number in setup.py
before pushing to master, so that pypi package can be automatically build. To update installed package:
pip install samesyslib --upgrade
Development Version
The latest development version can be installed directly from GitHub:
pip install git+https://github.com/samesystem-ds/samesyslib.git
License
Code and documentation are available according to the MIT License
(see LICENSE).