A collection of utility functions
Project description
Utilities by anviks
This package contains some useful functions and decorators.
Features in decorators.py
:
@stopwatch
decorator to measure execution time of a function@read_data
decorator to read data from file and pass it to a function@catch
decorator to catch exceptions, that can be raised by a function@memoize
decorator to cache function results@enforce_types
decorator to check types of function arguments and return value (raises TypeError if types don't match)
Features in b64coder.py
:
encode
function to encode a string to base64decode
function to decode a base64 string to a readable string
Installation
pip install -i https://test.pypi.org/simple/ utils-anviks
Usage
from utils_anviks import *
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
utils_anviks-0.0.5.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for utils_anviks-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f170c6d488e61b520944ed2e9652b92af2fefd40f760c799ab1b7139372a26bc |
|
MD5 | e50020c97e3a2b6f8d095bee3cf55953 |
|
BLAKE2b-256 | a264d55c65c482339f8c7cfc4afb8617e7c9120316514cbc2335b3c54c792514 |