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
Features in memory_profiler.py
:
display_tm_snapshot
displays the top memory allocations from a tracemalloc snapshot.
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.9.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for utils_anviks-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8e3fc738424b5c3aafd6ee94aa5c73c847d9eb9aa981d8b055f5c07c8ba6fd2 |
|
MD5 | d56c38556e6bd06c2b4b7f9a071f0b75 |
|
BLAKE2b-256 | f4990c8c7aeb758de350a076d3f5c58d0ad84c53608660eb9d1f28504299bfb7 |