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).

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nocturne_client-1.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nocturne_client-1.1.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file nocturne_client-1.1.0.tar.gz.

File metadata

  • Download URL: nocturne_client-1.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.5

File hashes

Hashes for nocturne_client-1.1.0.tar.gz
Algorithm Hash digest
SHA256 f859876072f894943de44610a033dc1a0604bd698254e5ee93a2f2068a7fbe81
MD5 24efc6810f83962427c40e345d4673f8
BLAKE2b-256 b0da3ea548516a5e2e6d803fb160313fbb03ef153e298f960713562dffcb1a36

See more details on using hashes here.

File details

Details for the file nocturne_client-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nocturne_client-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa16f7298daea20da59464ea0748f3b0b2a696e39a4ccbb9a55abccbe80038c4
MD5 0560744aa66422dbf2751a47c4352793
BLAKE2b-256 ba19445f2d3be88386fa497cd4f079999473f2a52fba2fcc07b92cb6f832f5b1

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.0

2 files

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