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.7.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for utils_anviks-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97fa48bad1c52bfcdb61a1e773be407dcb2cd1e677159c1ed0261187d2b584e8 |
|
MD5 | ba4633111b2f51743c46385d88b8111f |
|
BLAKE2b-256 | b2eaed6da41c5b496f63f3c15583a5c2fa449a71162201f77054cd2d3ac15fb8 |