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

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 1.0.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 1.0.0
File Size Uploaded Provenance Actions
netsware_sdk-1.0.0.tar.gz 5.2 kB With provenance Details for netsware_sdk-1.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / netsware_sdk-1.0.0.tar.gz

Download URL netsware_sdk-1.0.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ee9195fd2f2449892a7fb0bcd0484fc63727ff5a707e04a0dce3f188f640c348
BLAKE2b-256 checksum
How to use checksums
58767c606e972ccab0e7d7f2cdd983d4e0bb9fba4abcc50b52e0f0a47ace6395
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 Aug 19, 2026.

Transparency log

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

Download URL netsware_sdk-1.0.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8df0b5253057d3860ec1017114d17055f17cf012049fd104016af491fd938ae
BLAKE2b-256 checksum
How to use checksums
bcdce19e8030766991d59d59a9afb19ae69174c2072618c8be69408347fe4b39
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 Aug 19, 2026.

Transparency log

Security for netsware-sdk 1.0.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-1.0.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 Aug 19, 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