Skip to main content

oura-toolkit (Python)

Python SDK for the Oura Ring API v2, part of oura-toolkit.

pip install oura-toolkit

One distribution, two submodules:

  • oura_toolkit.api — the data-plane client, generated from Oura's own OpenAPI spec (do not hand-edit — regenerated by just gen-py). Auth-agnostic: bring a Bearer token.
  • oura_toolkit.auth — hand-written OAuth companion: token store, refresh with rotation, spec-pinned OAuth metadata. It shares the oura CLI's on-disk token store (~/.config/oura-toolkit/ on Unix/macOS, %LOCALAPPDATA%\oura-toolkit\ on Windows) and its cross-process refresh protocol, so the CLI, its MCP server, and your Python code can all rotate the same tokens safely.

With a token you manage yourself:

from oura_toolkit.api import ApiClient, Configuration

config = Configuration(access_token="<your Oura access token>")
with ApiClient(config) as client:
    ...

Or let the companion keep the token fresh (run oura auth setup / oura auth login once — interactive OAuth deliberately lives in the CLI, never in this package):

from oura_toolkit.api import ApiClient
from oura_toolkit.auth import TokenManager

manager = TokenManager.load()  # reads the shared token store
with ApiClient(manager.configuration()) as client:
    ...  # every request carries a proactively refreshed Bearer token

On a 401, call manager.force_refresh() and retry the request once.

Oura uses OAuth2 with your own registered application (personal access tokens were deprecated in Dec 2025) — see the toolkit README for the registration walkthrough and the oura auth setup flow.

Metadata

Release files for oura-toolkit 0.5.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 oura-toolkit 0.5.0
File Size Uploaded Provenance Actions
oura_toolkit-0.5.0.tar.gz 149.4 kB With provenance Details for oura_toolkit-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oura-toolkit 0.5.0
File Interpreter ABI Platform Actions
oura_toolkit-0.5.0-py3-none-any.whl Python 3 none any Details for oura_toolkit-0.5.0-py3-none-any.whl

Total release size: 580.5 kB

Release files / oura_toolkit-0.5.0.tar.gz

Download URL oura_toolkit-0.5.0.tar.gz
Size 149.4 kB
Tags Source
SHA-256 checksum
How to use checksums
1bff4d772d125749706589a7a271c2accd90aa1cbb39b8a475a14c1a40ee5805
BLAKE2b-256 checksum
How to use checksums
0ec646452e5e8f1ab09cb784b847005a2eb22db3489619645a17a002c09d4242
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / oura_toolkit-0.5.0-py3-none-any.whl

Download URL oura_toolkit-0.5.0-py3-none-any.whl
Size 431.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
915747ab0c4abd6dfcc3c0c6c660ab217d952d77dbfbfa8896ac44a81f33bc92
BLAKE2b-256 checksum
How to use checksums
2707d4ae70fb5fa6b408d75709d8d268751f354f09c453dd6535eec4c38323e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for oura-toolkit 0.5.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oura_toolkit-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

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