semvec/pypi-packages huggingface dataset:
intervals-icu-client 0.0.1
Intervals.icu API
Requires Python: >=3.9
Keywords: Intervals.icu API

# 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`:

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

Then import the package:
```python
import intervals_icu_client
```

### Example usage

Please follow the [installation procedure](#installation--usage) and then run the following:

```python

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)

```
kanne 2.1.0
affine transformations with units support
Requires Python: >=3.11

# kanne

[![codecov](https://codecov.io/gh/jhnnsrs/kanne/branch/master/graph/badge.svg?token=UGXEA2THBV)](https://codecov.io/gh/jhnnsrs/kanne)
[![PyPI version](https://badge.fury.io/py/kanne.svg)](https://pypi.org/project/kanne/)
![Maintainer](https://img.shields.io/badge/maintainer-jhnnsrs-blue)
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/kanne.svg)](https://pypi.python.org/pypi/kanne/)
[![PyPI status](https://img.shields.io/pypi/status/kanne.svg)](https://pypi.python.org/pypi/kanne/)
[![PyPI download day](https://img.shields.io/pypi/dm/kanne.svg)](https://pypi.python.org/pypi/kanne/)


# kanne



Kanne is a small utility package to help manage unit-aware quantities and a simple registry/context pattern for parsing and validating units using Pint. It provides convenience helpers, validators, and a minimal context manager (`Kanne`) to make working with Pint registries explicit and testable.

Key ideas:
- Keep unit parsing and validation ergonomic.
- Provide a lightweight context aware registry (`Kanne`) for libraries.
- Export commonly-used units and small helpers for convenience.
## 📦 Installation


```bash
uv add kanne
```

## ⚡ Quick Start

Kanne provides a context manager to manage Pint registries easily.



```python

# Global Pattern
from kanne import Kanne, Millisecond, Millimeter, define_unit
from pydantic import BaseModel


class Event(BaseModel):
    duration: Millisecond

class OtherEvent(BaseModel):
    length: Millimeter


Event(duration="1500 ms")  # works fine
OtherEvent(length="1500 mm")  # raises a validation error
event = Event(duration="1500 ms")  # works fine
other = OtherEvent(length="1500 mm")  # raises a validation error


event.duration + other.length  # raises an error since they are not compatible

```
toisto 0.41.0
Toisto is a command-line terminal app to practice languages.
Requires Python: <=3.14,>=3.13
Keywords: dutch, english, finnish, language learning

# Toisto

Toisto is an app to practice languages that runs in the [terminal](https://en.wikipedia.org/wiki/Terminal_emulator). It is developed in Python and available for Windows, Linux, macOS, iOS, and iPadOS.

It uses [spaced repetition](https://en.wikipedia.org/wiki/Spaced_repetition) to help you memorize vocabulary and phrases. It comes with a limited set of words and phrases in Dutch, English, and Finnish.

*Toisto* is Finnish and means *reiteration, playback, repetition, reproduction*.

> [!WARNING]
> Toisto is currently in beta. The progress file format may change occasionally, causing your progress to be lost.

## See it in action

Here's what a typical practice session looks like:

<video src="https://github.com/fniessink/toisto/assets/3530545/8598dc4d-09ad-4057-9793-cee2fe54e420" controls="controls" style="max-width: 730px;">
</video>

## Installation

### Prerequisites

On **Linux, Windows, and macOS**, install [uv](https://docs.astral.sh/uv/#getting-started):

```console
$ curl -LsSf https://astral.sh/uv/install.sh | sh
```

With uv you can install tools developed in Python, such as Toisto. Advantage of uv is that it also installs Python, if needed.

On **Linux** and **Windows**, you must have an mp3 player installed so Toisto can speak. By default, Toisto expects `mpg123` to be available. If you want to use a different mp3 player, you can configure Toisto to do so, see [configure a different mp3 player](docs/userguide.md#Configure-a-different-mp3-player) below.

On **macOS**, Toisto works best in a more modern terminal than the default macOS terminal. We test with [iTerm2](https://iterm2.com). Toisto should work mostly fine with the default macOS terminal app though, so installing iTerm2 or another terminal is optional.

On **iOS and iPadOS**, install the free [a-Shell app](https://holzschu.github.io/a-Shell_iOS/). a-Shell provides a Unix-like terminal for Toisto to run in. It has Python and pip (Python package manager) pre-installed.

### Install Toisto

On **Linux, Windows, and macOS**:

```console
$ uv tool install toisto
```

On **iOS and iPadOS**:

```console
$ pip install toisto
```

## Quick start

To practice:

```console
$ toisto practice --target fi --source en
```

Supported languages at the moment are English (`en`), Finnish (`fi`), and Dutch (`nl`).

To stop practicing: type `Ctrl-C` or `Ctrl-D`.

To prevent having to specify your target and source language every practice session, configure them as follows:

```console
$ toisto configure --target fi --source en
```

## Further documentation

- [User guide](docs/userguide.md).
- [Background information](docs/background.md) on why Toisto exists and what the future plans are.
- [Concept files](docs/concept_files.md) describes the format of the concept files.
- [Software documentation](docs/software.md) describes how Toisto works.
- [Developer documentation](docs/developer.md) provides information on how to develop, test, and release Toisto. This is aimed at people who (want to help) develop Toisto.