Skip to main content

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

  1. Install virtual environment python3 -m venv .venv source .venv/bin/activate pip install build pip install twine pip install pytest

  2. Build a package: python3 -m build

  3. Run the testcases
    pip install -e . cd tests pytest

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

basefunctions-0.3.4.tar.gz (15.0 kB view hashes)

Uploaded Source

Built Distribution

basefunctions-0.3.4-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page