Skip to main content

Collection of various useful Python classes and functions.

Project description

Collection of various useful Python classes and functions

Intended advantages:

  • reusable components

  • hide complexity of oft-used patterns

  • focused testing

Installation

pip install git+https://gitlab.diamond.ac.uk/scisoft/dls-utilpack.git

dls-utilpack --version

Summary

callsign functions

Extract and compose object identification used in logging.

datatype functions

Validate strings according to expected data types.

Documentation

See http://www.cs.diamond.ac.uk/reports/gitlab-ci/dls-utilpack/index.html for more detailed documentation.

Building and viewing the documents locally:

git clone git+https://gitlab.diamond.ac.uk/scisoft/dls-utilpack.git
cd dls-utilpack
virtualenv /scratch/$USER/venv/dls-utilpack
source /scratch/$USER/venv/dls-utilpack/bin/activate
pip install -e .[dev]
make -f .dls-utilpack/Makefile validate_docs
browse to file:///scratch/$USER/venvs/dls-utilpack/build/html/index.html

Topics for further documentation:

  • TODO list of improvements

  • change log

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

dls-utilpack-1.3.1.tar.gz (64.5 kB view hashes)

Uploaded Source

Built Distribution

dls_utilpack-1.3.1-py3-none-any.whl (33.1 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