Skip to content

samesystem-ds/samesyslib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Common functions for Data Science

Build Status codecov PyPI PyPI - Downloads GitHub

Python 3.7 Python 3.8 Python 3.9 Python 3.10 Python 3.11 Python 3.12

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).

About

Common libs used by SameSystem Data Science team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages