Skip to main content

The most fabulous time measuring object in the world.

Project description

Time Bandit

header_image

netlify badge Build Status

Timer utilities for Python 3.5+ Development

macOS Version GitHub Pipenv locked Python version nuxt.js

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

License

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

CII Best Practices test coverage


Prerequisites

  • Python version 3.5+

Recommended IDE setup:

Installed by this setup as needed:

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

Contributor Covenant

Suggestions/improvements are welcome!


Author

twitter/skeptycal

Michael Treanor

Twitter Follow GitHub followers

Project details


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)

Uploaded Source

Built Distribution

timebandit-0.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

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

Hashes for timebandit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e0b6928475f5db8000de66245f576d3ad585bcf387feafa890f500c632109fbd
MD5 b84fed5f721577e5799f5fd98ac9ab56
BLAKE2b-256 f8cc48d12446543f392e31aa487dbb53cff0e1a2800f51ce79d93c6c56a675ad

See more details on using hashes here.

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

Hashes for timebandit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1b81bbe625185a6c7160fafeac714f4725609973d87fc40c14acd95fab801e5c
MD5 f0519eff6e7a82e4ff34d5543409c9bd
BLAKE2b-256 ed204d05d09f4ce316b044c4a3b78fb89f2f8b78a90df7ae66132313c15fb27f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page