{"id":21455354,"url":"https://github.com/bmwant/spoor","last_synced_at":"2025-10-15T22:49:03.893Z","repository":{"id":67578731,"uuid":"581498790","full_name":"bmwant/spoor","owner":"bmwant","description":"Track invocations of methods and functions","archived":false,"fork":false,"pushed_at":"2023-01-24T11:16:48.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-06T21:41:32.045Z","etag":null,"topics":["ab-testing","apm","data-collection","debugging","library-tools","metrics","metrics-gathering","performance","profiling","python","statistics","summary","tools","tracing","tracking","utility"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmwant.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-23T11:14:40.000Z","updated_at":"2022-12-27T16:07:29.000Z","dependencies_parsed_at":"2023-02-20T22:46:24.065Z","dependency_job_id":null,"html_url":"https://github.com/bmwant/spoor","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bmwant/spoor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmwant%2Fspoor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmwant%2Fspoor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmwant%2Fspoor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmwant%2Fspoor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmwant","download_url":"https://codeload.github.com/bmwant/spoor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmwant%2Fspoor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279123855,"owners_count":26108781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ab-testing","apm","data-collection","debugging","library-tools","metrics","metrics-gathering","performance","profiling","python","statistics","summary","tools","tracing","tracking","utility"],"created_at":"2024-11-23T05:11:46.964Z","updated_at":"2025-10-15T22:49:03.849Z","avatar_url":"https://github.com/bmwant.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## spoor\n\n![Tests](https://github.com/bmwant/spoor/actions/workflows/tests.yml/badge.svg)\n[![PyPI](https://img.shields.io/pypi/v/spoor)](https://pypi.org/project/spoor/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/spoor)\n\n\n[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit\u0026logoColor=white)](https://github.com/pre-commit/pre-commit)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![EditorConfig](https://img.shields.io/badge/-EditorConfig-grey?logo=editorconfig)](https://editorconfig.org/)\n[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)\n\n\nTrack invocation of your functions and methods; display collected statistics for the invocations; export data gathered to external services.\n\n```bash\n$ pip install spoor\n```\n\n### Usage\n\n```python\nfrom spoor import Spoor\n\ns = Spoor()\n\n@s.track\ndef func(a: int, b: int) -\u003e int:\n  return a + b\n\nfunc(5, 10)\nfunc(23, 42)\n\nassert s.called(func)\nassert s.call_count(func) == 2\n```\n\n### Configuration\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `attach` | `bool` | `False` | Expose `called`/`call_count` attributes directly on a function/method object. |\n|`distinct_instances` | `bool` | `False` | Separate metrics collection for each instance of a class. Has no effect if tracking only functions. |\n|`skip_dunder` | `bool` | `True` | Do not track double underscore method calls (like `__str__`) for class instances. Has no effect if tracking only functions. |\n| `disabled` | `bool` | `False` | Initialize as inactive and ignore metrics collection until enabled explicitly. Can be controlled via `enable()`/`disable()` methods later. |\n\n\n### Exporters\n\n* [statsd](#)\n* [DataDog](#)\n\n### Limitations\n\n* No support for `staticmethod` tracking yet\n* No support for `classmethod` tracking yet\n\n### See also\n\n* 🍒 [podmena](https://github.com/bmwant/podmena) for nice commits emoji\n* 🌈 [rich](https://github.com/Textualize/rich) for beautiful terminal output\n* 🇺🇦 [United 24](https://u24.gov.ua/) to support Ukraine in the war\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmwant%2Fspoor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmwant%2Fspoor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmwant%2Fspoor/lists"}