The most fabulous time measuring object in the world.
Project description
Time Bandit
Timer utilities for Python 3.5+ Development
These are handy automation and informational utilities. Add more, change some, make some additions/corrections...
Please feel free to offer suggestions and changes.
Copyright © 1976-2020 Michael Treanor
Installation
TLDR: clone the repo and run ./setup.sh
WHY?
- comparison of different methods
- profiling features under real world loads with decorators and log readers
- visualize outcomes in unique ways
Prerequisites
- Python version 3.5+
Recommended IDE setup:
- VSCode IDE
- Sarah Drasner's Vue VSCode Extension Pack
- Don Jayamanne's Python Extension Pack
Installed by this setup as needed:
- Homebrew
- GNU coreutils for macOS (brew install coreutils)
- Pre-Commit for automated checks
- Poetry for dependency management, building, publishing, and versioning
Install
pip install timebandit
- or -
if you wish to make modifications or contribute to the open source project:
# clone the repo
git clone https://www.github.com/skeptycal/
# change to the repo directory
cd user_bin_dir_repo
# run the init script
./init
# optional: # use './init --nobrew' to skip install of homebrew and utilities
./init --nobrew
Usage
from timebandit import timeit
# as a decorator
@timeit
def myfunction(x):
... do stuff ...
# - or -
# as a function call
the_result = timeit(myfunction(5))
print(the_result)
Feedback
Suggestions/improvements are welcome!
Author
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
timebandit-0.1.1.tar.gz
(12.0 kB
view details)
Built Distribution
File details
Details for the file timebandit-0.1.1.tar.gz
.
File metadata
- Download URL: timebandit-0.1.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/20.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0b6928475f5db8000de66245f576d3ad585bcf387feafa890f500c632109fbd |
|
MD5 | b84fed5f721577e5799f5fd98ac9ab56 |
|
BLAKE2b-256 | f8cc48d12446543f392e31aa487dbb53cff0e1a2800f51ce79d93c6c56a675ad |
File details
Details for the file timebandit-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: timebandit-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Darwin/20.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b81bbe625185a6c7160fafeac714f4725609973d87fc40c14acd95fab801e5c |
|
MD5 | f0519eff6e7a82e4ff34d5543409c9bd |
|
BLAKE2b-256 | ed204d05d09f4ce316b044c4a3b78fb89f2f8b78a90df7ae66132313c15fb27f |