Common libs used by SameSystem Data Science team.
Project description
Common functions for Data Science
Common libs used by SameSystem Data Science team.
Example Usage
# /opt/settings/config.yml
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']
# or
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).
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file samesyslib-0.0.42.tar.gz.
File metadata
- Download URL: samesyslib-0.0.42.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ceac9664c58a9638dd6aca8a61b20a42ae88305ba5cbb13c41a3a525542412c9
|
|
| MD5 |
f4ac00f8ef2f59f54bba3a391c139bfe
|
|
| BLAKE2b-256 |
11e41a0ef2068fe6a9fbb3661086a51943ef73f7c52847236f29015974787681
|
File details
Details for the file samesyslib-0.0.42-py3-none-any.whl.
File metadata
- Download URL: samesyslib-0.0.42-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be006df4ea1de9ac780d03f1e8b71128b2edaf0da2230adef0618450b8981ae
|
|
| MD5 |
05ab994ee536e7dff4e7f6c32b3660d4
|
|
| BLAKE2b-256 |
e2b3145607e40b6437e822afc65528e642a9c3b6b1164aa86bce6b871c848803
|