yizhang7210/liang
Liang - Non functional requirements should be part of function interfaces observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1801
- days_rel: n/a
- days_push: 1759
- n_releases_24m: 0
Adoption not part of the score
1010 stars · 89 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Liang is a Python library for specifying non-functional requirements like latency thresholds directly in function interfaces via decorators. It enforces or monitors latency budgets, raising timeouts or logging warnings through configurable handlers and measurers.
Use cases
- enforce a function completes within a time threshold
- log warnings when a function exceeds its latency budget
- track percentile latency across repeated function runs
- attach custom failure handlers to performance violations
- make performance requirements part of the code interface
When to choose
- you want latency SLAs enforced or monitored at the function level in Python
- you need timeout guarantees for potentially slow functions
- you want percentile-based latency tracking with custom handlers
When to avoid
- you need full application performance monitoring or distributed tracing
- your project is not in Python
- you need actively maintained tooling - the last release was 2021
Facets
library · maturity maintenance
monitoring logging testing benchmarking developer-tools performance python cross-platform non-functional-requirements decorators latency-enforcement sla python3 python
1 source
- readme: https://github.com/yizhang7210/liang · fetched 2026-08-28 · 74a2c6b41d3b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| yizhang7210/liang | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="yizhang7210/liang")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem