Skip to main content

nocturne-client

Tiny Python client for Nocturne — the bioacoustic species classifier for insects, amphibians, and other non-bird wildlife from Stratus Labs.

Install

pip install nocturne-client

Use

from nocturne_client import Nocturne

n = Nocturne()
r = n.predict("cicada.wav", top_k=5, threshold=0.15)
for p in r.predictions:
    print(f"{p.score:.3f}  {p.species}")

Batch:

results = n.predict_batch(["clip1.wav", "clip2.wav", "clip3.wav"])

CLI:

nocturne-client predict clip.wav --top-k 5
nocturne-client health
nocturne-client vocab

Environment

  • NOCTURNE_URL — override the default endpoint (https://nocturne.runstratus.com) if you're self-hosting.

Rate limits

The public endpoint is capped at 10 requests per minute per IP. The client retries automatically on 429 with linear backoff. For batch work at scale, self-host the model (weights on HuggingFace at stratus-labs/nocturne-v1-teacher) or contact Stratus Labs.

License

Apache-2.0. Model weights are CC-BY-4.0 (see the model card).

Metadata

Release files for nocturne-client 1.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 nocturne-client 1.1.0
File Size Uploaded Provenance Actions
nocturne_client-1.1.0.tar.gz 4.2 kB Without provenance Details for nocturne_client-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nocturne-client 1.1.0
File Interpreter ABI Platform Actions
nocturne_client-1.1.0-py3-none-any.whl Python 3 none any Details for nocturne_client-1.1.0-py3-none-any.whl

Total release size: 8.6 kB

Release files / nocturne_client-1.1.0.tar.gz

Download URL nocturne_client-1.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f859876072f894943de44610a033dc1a0604bd698254e5ee93a2f2068a7fbe81
BLAKE2b-256 checksum
How to use checksums
b0da3ea548516a5e2e6d803fb160313fbb03ef153e298f960713562dffcb1a36
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / nocturne_client-1.1.0-py3-none-any.whl

Download URL nocturne_client-1.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa16f7298daea20da59464ea0748f3b0b2a696e39a4ccbb9a55abccbe80038c4
BLAKE2b-256 checksum
How to use checksums
ba19445f2d3be88386fa497cd4f079999473f2a52fba2fcc07b92cb6f832f5b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for nocturne-client 1.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.

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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

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