Skip to main content

netsware-sdk

Official Python SDK for the Netsware API — Business Hours, Scheduled Jobs, and Webhooks. Pure standard library, no dependencies.

Install

pip install netsware-sdk

Quickstart

from netsware import Netsware, verify_webhook

client = Netsware("nw_live_xxx")

# Is a business open right now?
status = client.hours.check(timezone="Asia/Kolkata", country="IN")
print(status["open"])

# Create a business-hours schedule
sched = client.hours.create_schedule(
    name="Mumbai office",
    days=["MON", "TUE", "WED", "THU", "FRI"],
    open_time="09:00",
    close_time="18:00",
    timezone="Asia/Kolkata",
    country="IN",
)

# Schedule a one-time job
job = client.jobs.schedule(
    name="Send reminder",
    url="https://example.com/webhook",
    run_at="2026-07-01T09:00:00",
    timezone="Asia/Kolkata",
    payload={"user_id": "123"},
)

# Register a webhook (one event per registration)
hook = client.webhooks.register(
    product="scheduled_jobs",
    event="job.completed",
    url="https://example.com/events",
)

Verifying webhook signatures

Pass the raw request body string for a byte-exact check:

ok = verify_webhook(
    payload=raw_body,                       # raw request body (string)
    signature=headers["X-Netsware-Signature"],
    timestamp=headers["X-Netsware-Timestamp"],
    secret="whsec_...",
)
if not ok:
    ...  # reject

Groups, variables, runs & metrics

# Organize jobs into groups
g = client.groups.create("Nightly")
client.groups.rename(g["id"], "Nightly batch")

# Reusable values + secrets (secret values are WRITE-ONLY: list() returns value=None)
client.variables.set("API_BASE_URL", "https://api.acme.io")
client.variables.set("API_TOKEN", "t0ken", is_secret=True)

# What's broken everywhere? (status is required; success has no account-wide feed)
failing = client.runs.list(status="failed", since="24h")

# Per-job history filtered by outcome (retention-clamped)
errs = client.jobs.logs(job["id"], status="failed")

# Daily monitoring rollups for your own NOC/monitor (default 30d, plan-clamped)
m = client.metrics.get(window="30d")
print(m["totals"]["runs"], m["current"]["active_jobs"])

Configuration

client = Netsware("nw_live_xxx", base_url="https://app.netsware.com", timeout=30.0)

Full API reference: https://netsware.com/dashboard/docs.

MIT © Netsware Systems LLP

Metadata

Release files for netsware-sdk 2.1.0

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

Source distribution (sdist)

Source distribution for netsware-sdk 2.1.0
File Size Uploaded Provenance Actions
netsware_sdk-2.1.0.tar.gz 6.7 kB With provenance Details for netsware_sdk-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for netsware-sdk 2.1.0
File Interpreter ABI Platform Actions
netsware_sdk-2.1.0-py3-none-any.whl Python 3 none any Details for netsware_sdk-2.1.0-py3-none-any.whl

Total release size: 14.0 kB

Release files / netsware_sdk-2.1.0.tar.gz

Download URL netsware_sdk-2.1.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8f93b44838b9be5eba93ef9ea2898278e37d218868243b4e072856cd150a8e65
BLAKE2b-256 checksum
How to use checksums
9715ad101f45a60618aa00a7ed59b416b76c4865678be70b5bfa5888815f563c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Release files / netsware_sdk-2.1.0-py3-none-any.whl

Download URL netsware_sdk-2.1.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2921e536e1bb39b8a50aac4bda00aca3cc4d60c7bf66300556449d7a99f68a9d
BLAKE2b-256 checksum
How to use checksums
723b3a603e9181d043405b4f25e61541b06096132b71e0f7ea5142037ed87483
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

Security for netsware-sdk 2.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for netsware_sdk-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 3, 2026.

Transparency log

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.

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