Universal functions and decorators and some packages extras
Project description
shuff-utils
General-purpose classes and functions.
Installation
pip install -i shuff-utils
DottedDict
dict
that allows you to call its keys with the dot.
d = {'a': 'test'}
d.a
# 'test'
Timer
Class for measuring an execution time.
# Init and set name of the whole period
timer = Timer('whole_period')
# Start custom measurement
timer.add_point('first block')
...
timer.add_point('second block')
...
# Stop custom measurement
timer.stop('first block')
timer.add_point('third block')
...
# Stop all the intervals and print summary details
timer.stop().print_summary()
# [2017-10-09 17:06:10 INFO] PROFILING: whole_period: 5000, first block: 3000, second block: 2000, third block: 2000
Other functions
Other functions is not described yet. You can see them in the corresponding modules. Some of them have descriptions in their docstrings.
Naming
The package is named after Slipknot's song. Thanks to the band, it helps a lot.
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
snuff-utils-1.0.0.tar.gz
(26.9 kB
view hashes)
Built Distribution
Close
Hashes for snuff_utils-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f04f0a9a309887eb665f35f3bfd2b0a41edee955154f8182a70839e037737893 |
|
MD5 | 21f8639404c161d506b76139f7906aab |
|
BLAKE2b-256 | 49320c295b71c4b461baa91df6a54f824052382839c24b532947922785dd9457 |