Official Python SDK for StressZero Intelligence API — Burnout risk scoring for entrepreneurs
Project description
StressZero Python SDK
Official Python SDK for StressZero Intelligence API — Burnout risk scoring for entrepreneurs.
Installation
pip install stresszero
Quick Start
from stresszero import StressZero, ResponseItem, AnalysisContext
sz = StressZero("sz_live_your_key_here")
# Quick 3-score check
result = sz.quick_check(physical=65, emotional=70, effectiveness=55)
if result.ok:
print(f"Score: {result.data['score']['total']}/100")
print(f"Risk: {result.data['risk']['level']}")
# Full analysis
result = sz.analyze_burnout(
responses=[
ResponseItem("physical", "sleep_quality", 65, weight=3),
ResponseItem("emotional", "motivation", 70, weight=2),
ResponseItem("effectiveness", "productivity", 55, weight=2),
],
context=AnalysisContext(profession="entrepreneur", hours_per_week=55),
)
# Predictive scoring (J+30)
from stresszero.types import PredictiveContext
result = sz.analyze_burnout_with_prediction(
responses=[
ResponseItem("physical", "sleep", 65, weight=3),
ResponseItem("emotional", "stress", 70, weight=2),
ResponseItem("effectiveness", "focus", 55, weight=2),
],
predictive_context=PredictiveContext(
sleep_hours=6,
exercise_days_per_week=1,
has_support_network=False,
),
)
if result.ok:
pred = result.data["prediction"]
print(f"Score J+30: {pred['prediction']['score_j30']}")
print(f"Trajectory: {pred['prediction']['trajectory']}")
Sandbox Testing
Use sz_test_ prefixed keys for sandbox mode (no DB, no quota):
sz = StressZero("sz_test_free") # Free tier sandbox
sz = StressZero("sz_test_pro") # Pro tier sandbox
API Reference
| Method | Tier | Description |
|---|---|---|
analyze_burnout() |
Free+ | Individual burnout scoring |
analyze_burnout_with_prediction() |
Free+ | Scoring + J+30 prediction |
analyze_team() |
Starter+ | Team analysis |
generate_report() |
Starter+ | Detailed report |
quick_check() |
Free+ | Quick 3-score check |
health() |
Public | API health status |
License
MIT — StressZero Entrepreneur
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stresszero-1.0.0.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stresszero-1.0.0.tar.gz.
File metadata
- Download URL: stresszero-1.0.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a81f8aeed14b6490e2ca007cb3fdcd1b2cfa415feb9024276658e862f29b94f9
|
|
| MD5 |
99bb600c750ec683d5755b693c67b7d3
|
|
| BLAKE2b-256 |
3c087df1ea044debb05fdec205d4e7dd50e8af90a9d30ba790f6ebb6971adeff
|
File details
Details for the file stresszero-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stresszero-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34185251f6a36cbf9a0bd681cf18204532366fe704d0997481cb703d1bb690c0
|
|
| MD5 |
68f9caf88d9a119f54d626bd68b53b6f
|
|
| BLAKE2b-256 |
9022c5f4556d538f24db22b9db00c6e69016d86c0347a78dceb6a073a03f25e1
|