simple library to have some commonly used functions for everyday purpose
Project description
Introduction
simple library to have some commonly used functions for everyday purpose. The functions include some convenience functions for file handling as well as a threadpool class with automatic retry and timeout functionality.
Getting Started
There are the following functionalities in this lib:
- database - some convienience functions for sql handling
- filefunctions - some convienience functions for file handling
- threadpool - a threadpool class with message system
Installing
pip install basefunctions
Usage
Using convenience file functions
import basefunctions as bf
bf.get_current_directory() /Users/neutro2/
Using threadpool class
see example.py file for a concrete usage of the threadpool class
Build and Test
-
Install virtual environment python3 -m venv .venv source .venv/bin/activate pip install build pip install twine pip install pytest
-
Build a package: python3 -m build
-
Run the testcases
pip install -e . cd tests pytest -
Upload the package to pypi.org python3 -m twine upload dist/*
Project Homepage
https://dev.azure.com/neuraldevelopment/basefunctions
Contribute
If you find a defect or suggest a new function, please send an eMail to neutro2@outlook.de
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
Hashes for basefunctions-0.3.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3604d423864eeb570a5a8e63e4b0ee0c4293e7bc0f20663cb715d4ac47e77a00 |
|
MD5 | 986831c4b16de8125962d95c6255b886 |
|
BLAKE2b-256 | 5244fc52f3b4c236c763ecc6fe53e67a562310b83d5d4cbbda670fb77ff5916f |