Track functions invocations
Project description
spoor
Track invocation of your functions and methods; display collected statistics for the invocations; export data gathered to external services.
$ pip install spoor
Usage
from spoor import Spoor
s = Spoor()
@s.track
def function(a: int, b: int):
return a + b
func(5, 10)
func(23, 42)
assert s.called(func)
assert s.call_count(func) == 2
Configuration
Option | Type | Default | Description |
---|---|---|---|
attach | bool |
False |
tbd. |
distinct_instances |
bool |
False |
tbd |
disabled | bool |
False |
tbd. |
Exporters
See also
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
spoor-0.3.3.tar.gz
(4.7 kB
view details)
Built Distribution
spoor-0.3.3-py3-none-any.whl
(5.2 kB
view details)
File details
Details for the file spoor-0.3.3.tar.gz
.
File metadata
- Download URL: spoor-0.3.3.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.14.0-1054-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc65056ead1609585fe41bd239b2f75b6be5e868b71b95cab57bd2c8243b5437 |
|
MD5 | e4428c7ad73f97197f627e3d561b7003 |
|
BLAKE2b-256 | 94a6e1a819df457f32dab58f1f9abc357d353362d4cf923e58c8b038c36d8aef |
File details
Details for the file spoor-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: spoor-0.3.3-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.6 Linux/5.14.0-1054-oem
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0927c588699eb1d8f62c87c5e9da08ee32520b2d84382153ed85f49566e25cf2 |
|
MD5 | d15514a607b507b70b1bf11cc72fc16f |
|
BLAKE2b-256 | deed2f89914d9631518168344a3a50c44a52ad45b771411d07c96d9d6c331b84 |