Skip to main content

statshouse

StatsHouse client library for Python. Requires Python 3.7+.

Installation

$ python -m pip install statshouse

Usage

import statshouse

statshouse.value("processing_time", {"subsystem": "foo", "protocol": "bar"}, 0.239)  # using named tags
statshouse.value("processing_time", ["foo", "bar"], 0.239)  # same, assuming `subsystem` and `protocol` are tags #1 and #2

statshouse exposes top-level functions which work with a local StatsHouse agent. Address of the agent is configured with --statshouse-addr command-line flag or STATSHOUSE_ADDR environment variable, and defaults to 127.0.0.1:13337. Additionally, --statshouse-env command-line flag or STATSHOUSE_ENV environment variable can be used to specify the env tag value for all metrics (empty by default).

Development

Install PDM, then:

$ pdm sync
$ pdm run fmt
$ pdm run lint
$ pdm run test

Metadata

Release files for statshouse 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for statshouse 0.2.4
File Interpreter ABI Platform
statshouse-0.2.4-py3-none-any.whl Python 3 none any Details

Release files / statshouse-0.2.4-py3-none-any.whl

Download URL statshouse-0.2.4-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4504b8cecdadbcdc3b295c2d691248c026ce63b9268e85efe1ee57c6c916e6a7
BLAKE2b-256 checksum
How to use checksums
d9fe18e524f86f69fc230d19bb6b131b3a5484772b08ad236119dd239c53ecd0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.2.4 This release

1 release file

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page