sloth
The python speedtesting library and command line tool
sloth is a Python package for speedtesting python code and functions with as little code as necessary.
It's easy to use and, unlike many projects, has decent documentation.
The idea behind this API is:
>>> from sloth import compare_sloth
>>> import timeit
>>> compare_sloth(timeit)
'sloth is loads better than timeit!'
See? described in 3 lines. Everything that timeit can do, sloth can do better - or will soon. And alot of things
timeit can't do sloth can do anyway.
A Quick Example
>>> from sloth.simple import time_callable
>>> import time
>>> def my_func(a, b, c):
... time.sleep(1)
... print(a, b, c)
>>> time_callable(my_func, 2, 'a', 'b', 'c')
a b c
1.000063419342041
Installation
You can install sloth with pip:
pip install sloth-speedtest
Please see the docs for more info.
Links
Note that this library is unrelated and mutually exclusive to the one at https://sloth.readthedocs.io
Metadata
Release files for sloth-speedtest 0.2.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sloth-speedtest-0.2.post1.tar.gz | 7.1 kB | Without provenance | Details for sloth-speedtest-0.2.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sloth_speedtest-0.2.post1-py3-none-any.whl | Python 3 | none | any | Details for sloth_speedtest-0.2.post1-py3-none-any.whl |
Total release size: 18.4 kB
Release files / sloth-speedtest-0.2.post1.tar.gz
| Download URL | sloth-speedtest-0.2.post1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e59a6ed3d5075c8609339ef84522e9117b123babd7e11da3c2bacb0f8860e143
|
|
BLAKE2b-256 checksum How to use checksums |
5712e96dc4cf472f26c71cb806d79affac176871c34ed74e16eecf397a7d2d63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
|
Release files / sloth_speedtest-0.2.post1-py3-none-any.whl
| Download URL | sloth_speedtest-0.2.post1-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e479d996bbb97fd2c963b1332b364ddc0f45d07cb6cbd131a352ae548ac15b4
|
|
BLAKE2b-256 checksum How to use checksums |
f8ad8b2cd19cb4013e97dfeadd1b8af657b64c9527b339a46cdabca209773c87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.7.6
|
Security for sloth-speedtest 0.2.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.