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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f859876072f894943de44610a033dc1a0604bd698254e5ee93a2f2068a7fbe81
|
|
| MD5 |
24efc6810f83962427c40e345d4673f8
|
|
| BLAKE2b-256 |
b0da3ea548516a5e2e6d803fb160313fbb03ef153e298f960713562dffcb1a36
|
File details
Details for the file nocturne_client-1.1.0-py3-none-any.whl.
File metadata
- Download URL: nocturne_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa16f7298daea20da59464ea0748f3b0b2a696e39a4ccbb9a55abccbe80038c4
|
|
| MD5 |
0560744aa66422dbf2751a47c4352793
|
|
| BLAKE2b-256 |
ba19445f2d3be88386fa497cd4f079999473f2a52fba2fcc07b92cb6f832f5b1
|