Skip to main content

A very simple Python tool for process inspection and timer. (alpha)

Project description

Alpha

Deftimer is now alpha stage.
Throw me issues!

Environments

Python: >=3.6, <4

Requirements

pip install pathlib

Try deftimer with docker

$ cd <parent dir of deftimer>
$ docker build -t deftimer .
$ docker run --rm deftimer

deftimer

(TBD)

English:
It allows you to calculate run time of each functions. See USAGE.md for (more information)[https://github.com/hakumizuki/deftimer/blob/main/USAGE.md]

timer = Timer()
@timer.use_timer
def do_something():
    ...

do_something() # this prints the results

Other functions:
You can divide process into blocks and name them.
Coming soon --> File exporting (JSON, CSV)

Japanese:
Python3の関数内の処理時間を計算します。

timer = Timer()
@timer.use_timer
def do_something():
    ...

として関数を呼ぶだけで計測できます。

他にも、、、
Blockで処理を分割したり、処理に名前をつけたりできます。
今後ファイル化(JSON、CSV)も考えています。

Test deftimer

$ docker run --rm deftimer python -m unittest

Note: It might fail depending on your pc spec.

Author

I always welcome your ideas!
Thanks for visiting my repo :)

License

"deftimer" is under MIT license

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

deftimer-0.0.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

deftimer-0.0.1-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

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