flowwatch-client (Python)
Python client for FlowWatch — connects to a running FlowWatch sidecar over HTTP.
Install
pip install flowwatch-client
Usage
Start the FlowWatch sidecar in your Node.js app:
import { createFlowwatch, startSidecar } from "@pranshulsoni/flowwatch"
const fw = await createFlowwatch({ ... })
startSidecar(fw, { port: 9400, token: process.env.SIDECAR_TOKEN })
Then use the Python client:
from flowwatch import FlowwatchClient
fw = FlowwatchClient(base_url="http://localhost:9400", token="your-token")
# Feature flag
enabled = fw.flag("new-checkout", context={"userId": "u_123", "plan": "pro"})
# Trigger a workflow
result = fw.trigger("send-welcome-email", input={"userId": "u_123"})
# Record a trace span
fw.trace_span(name="db.query", type="db", duration_ms=42)
# Capture an error
fw.capture_error(message="Something broke", source="api", name="ValueError")
# Health check
status = fw.health() # {"status": "ok", "sidecar": "flowwatch"}
fw.close()
Use as a context manager:
with FlowwatchClient("http://localhost:9400", token="your-token") as fw:
enabled = fw.flag("dark-mode")
API
| Method | Description |
|---|---|
flag(key, context?) |
Evaluate a feature flag → bool |
trigger(name, input?) |
Trigger a workflow → dict |
trace_span(name, type, duration_ms, metadata?, status?) |
Record a trace span |
capture_error(message, source, name?, stack?) |
Capture an error |
health() |
Sidecar health check → dict |
close() |
Close the HTTP connection |
Metadata
Release files for pranshulsoni-flowwatch 3.1.4
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 |
|---|---|---|---|---|
| pranshulsoni_flowwatch-3.1.4.tar.gz | 2.6 kB | Without provenance | Details for pranshulsoni_flowwatch-3.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pranshulsoni_flowwatch-3.1.4-py3-none-any.whl | Python 3 | none | any | Details for pranshulsoni_flowwatch-3.1.4-py3-none-any.whl |
Total release size: 5.4 kB
Release files / pranshulsoni_flowwatch-3.1.4.tar.gz
| Download URL | pranshulsoni_flowwatch-3.1.4.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ee1c70528a98c52df991efc0074e5e2fc242284a3eb41967228c65ecc4cc88e
|
|
BLAKE2b-256 checksum How to use checksums |
2da1fe8893a3398cd1658f7655e789074a95daff5a7fc7e20456c5bc98732d3c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Release files / pranshulsoni_flowwatch-3.1.4-py3-none-any.whl
| Download URL | pranshulsoni_flowwatch-3.1.4-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
939cecc45e6ec845bed26abff3259d2adae2bee9d90a64b941722e61b701b410
|
|
BLAKE2b-256 checksum How to use checksums |
b6bb68374c0be9f4361cbdb6c9f2391c13a41223c8906daeaccf5fa8e868e7a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|
Security for pranshulsoni-flowwatch 3.1.4
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.