Skip to main content

python-intervals-icu-client

A Python client library for the Intervals.icu API.

NOTE: This client is in early development and not published to PyPI yet. You can install it directly from the GitHub repository as described below. Most functionality should work, but most of the endpoints have not been tested yet. Check tests/functional and tests/integration for examples of usage.

Requirements.

Python 3.9+

Installation & Usage

pip install

Install directly from the GitHub repository using pip:

pip install git+https://github.com/LeonardHd/python-intervals-icu-client.git

Then import the package:

import intervals_icu_client

Example usage

Please follow the installation procedure and then run the following:

import intervals_icu_client
from intervals_icu_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://intervals.icu
# See configuration.py for a list of all supported configuration parameters.
configuration = intervals_icu_client.Configuration(
    host = "https://intervals.icu"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure HTTP basic authorization: APIKey
configuration = intervals_icu_client.Configuration(
    username = os.environ["USERNAME"],
    password = os.environ["PASSWORD"]
)

# Configure Bearer authorization: AccessToken
configuration = intervals_icu_client.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with intervals_icu_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = intervals_icu_client.ActivitiesApi(api_client)
    id = 'id_example' # str | 
    activity = intervals_icu_client.Activity() # Activity | 

    try:
        # Create a manual activity
        api_response = api_instance.create_manual_activity(id, activity)
        print("The response of ActivitiesApi->create_manual_activity:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ActivitiesApi->create_manual_activity: %s\n" % e)

Metadata

Release files for intervals-icu-client 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for intervals-icu-client 0.0.1
File Size Uploaded
intervals_icu_client-0.0.1.tar.gz 176.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for intervals-icu-client 0.0.1
File Interpreter ABI Platform
intervals_icu_client-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 462.6 kB

Release files / intervals_icu_client-0.0.1.tar.gz

Download URL intervals_icu_client-0.0.1.tar.gz
Size 176.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e09bcea531af336fb8707858588b5bd55f8f907390e1a6e7377a5cb514882f02
BLAKE2b-256 checksum
How to use checksums
549c3ded84ba82f6977638e3bb69076646d8ec3aa15274f17fd2b9a4211524e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 29, 2025.

Transparency log

Release files / intervals_icu_client-0.0.1-py3-none-any.whl

Download URL intervals_icu_client-0.0.1-py3-none-any.whl
Size 285.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c949856aa062d7a09d3466adeb66089bc3ed620b7b03e740d3729c78e8780b6f
BLAKE2b-256 checksum
How to use checksums
109816a6ae6430183d039c58be6218b72dab8e3939a9c3ce333d1563cc164bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 29, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release 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