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.11.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for utils_anviks-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90bd9c9afd3ee89d7feeb8a02d36bd17e2671e5f79778e3b4c75ca3904e9cc26 |
|
MD5 | b0cc151c13539fe46dbc3d6dacea1008 |
|
BLAKE2b-256 | 10bd34f36ff463f3305e908dd4f6c83460784d72009d865de4b989ceb7ebbed6 |