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.0.0.tar.gz (4.1 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.0.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nocturne_client-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 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.0.0.tar.gz
Algorithm Hash digest
SHA256 bfefb9a05f45215f2c567c0ed84f1b8455784603cb3811bc40e51e78fa06152f
MD5 64e7a1cbe6a064c407601931e5ccea80
BLAKE2b-256 4f05a177339185bd2aa3e45a89d877a307963692d41eecf05b104d92e7a2ded5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nocturne_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 744fd85f3b95c464488ccf3093d61908b9c4a684264b7921e1ce7a776a8c29b8
MD5 2aabc2d175e76e5822c875515e4bb98f
BLAKE2b-256 67bf1581a11c16c495b218dc123e035f12a93ceca59557039587d0db453e99c9

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.0 This release

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