Skip to main content

Somnio

Python library and CLI for sleep and physiological data workflows.

Install

pip install somnio

Optional extras (install as somnio[extra] or somnio[a,b]):

  • somnio[cli] — command-line tools
  • somnio[nsrr] — NSRR download helpers (pair with cli for the download-nsrr command)
  • somnio[schemas] — YAML schemas (pydantic, pyyaml)
  • somnio[signal] — SciPy-based signal processing utilities
  • somnio[eeg-usability] — EEG usability scoring (somnio.tasks.eeg_usability; requests, scipy, platformdirs, lightgbm)
  • somnio[mne] — MNE-based processing utilities
  • somnio[edf] — EDF I/O (edfio, plus mne)
  • somnio[hdf5] — somnio.io.hdf5 layouts (requires h5py)
  • somnio[onnx] — ONNX Runtime sleep scoring (onnxruntime)
  • somnio[tensorflow] — TensorFlow SavedModel sleep scoring (tensorflow)

With uv: uv add somnio, uv add somnio --extra cli, or uv add somnio --extra hdf5.

Documentation

Documentation

Contributing

See Contributing.

Changelog

See CHANGELOG.md.

Credits

The somnio.tasks.eeg_usability module implements the eegUsability pipeline from eegFloss (MIT License, © 2025 Niloy Sikder). See NOTICE for the full third-party notice and citation details.

License

MIT

Metadata

Release files for somnio 0.2.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 somnio 0.2.0
File Size Uploaded Provenance Actions
somnio-0.2.0.tar.gz 64.7 kB Without provenance Details for somnio-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for somnio 0.2.0
File Interpreter ABI Platform Actions
somnio-0.2.0-py3-none-any.whl Python 3 none any Details for somnio-0.2.0-py3-none-any.whl

Total release size: 152.5 kB

Release files / somnio-0.2.0.tar.gz

Download URL somnio-0.2.0.tar.gz
Size 64.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ea0b4c4dc8cafe9e8023ba00cd42d59482b752c95801cb1a3559ff7487c1c42e
BLAKE2b-256 checksum
How to use checksums
39371b79faae191fecdb571a7a6ac1a44fb128e2f87e2bcbc633a0ad0962a3b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / somnio-0.2.0-py3-none-any.whl

Download URL somnio-0.2.0-py3-none-any.whl
Size 87.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
86518fa45798564ff6ac61cedb4886d94d8c97ba3b2a2263616fd082299cd01c
BLAKE2b-256 checksum
How to use checksums
06fc0cac80f9465faff8923468efdca9d3ce0a3daadf7ff4a5514e8b26db4241
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for somnio 0.2.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.

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