Skip to content

Latest commit

 

History

History
192 lines (136 loc) · 10.3 KB

README.rst

File metadata and controls

192 lines (136 loc) · 10.3 KB

formelsammlung

General Maintenance - not intended License Read the Docs - Build Status (latest)
Semantic Versioning - 2.0.0
PyPI PyPI - Package latest release PyPI - Supported Python Versions PyPI - Supported Implementations
PyPI - Stability PyPI - Format PyPI - Monthly downloads
Pipeline GitHub Actions - Test code
GitHub Actions - Code qualitiy
GitHub Actions - Test docs
Github Github - Latest Release GitHub - Commits since latest release GitHub - Last Commit
Github - Stars Github - Forks Github - Contributors Github - Watchers

Collection of different multipurpose functions.

This library is a collection of different functions I developed which I use in different projects so I put them here. New features are added when I need them somewhere.

Functionality

  • getenv_typed(): is a wrapper around os.getenv returning the value of the environment variable in the correct python type.
  • calculate_string(): takes an arithmetic expression as a string and calculates it.
  • SphinxDocServer: is a flask plugin to serve the repository's docs build as HTML (by sphinx). Needs flask extra to be also installed to work.
  • env_exe_runner(): is a function to call a given tool from the first venv/tox/nox environment that has it installed in a list of venv/tox/nox environments.
  • get_venv_path(): is a function to get the path to the current venv.
  • get_venv_bin_dir(): is a function to get the path to the bin/Scripts dir of a given venv.
  • get_venv_tmp_dir(): is a function to get the path to the tmp/temp dir of a given venv.
  • get_venv_site_packages_dir(): is a function to get the path to the site-packages dir of a given venv.
  • where_installed(): is a function to find the installation places in and outside a venv.
  • session_w_poetry: decorator to change nox session class to include poetry_install() method.

Prerequisites

Works only with python version >= 3.6

A new version of pip that supports PEP-517/PEP-518 is required. When the setup fails try updating pip.

Disclaimer

No active maintenance is intended for this project. You may leave an issue if you have a questions, bug report or feature request, but I cannot promise a quick response time.

License

This project is licensed under the GPL-3.0 or later.