semvec/pypi-packages huggingface dataset:
ribasim-api 2026.1.0rc1
Python bindings for libribasim
License: MIT
Requires Python: >=3.12

# Ribasim API

`ribasim_api` is an extension to [xmipy](https://pypi.org/project/xmipy/) for the Ribasim API.

The `ribasim_api` can be used to access functionality in the eXtended Model Interface (XMI) wrapper (XmiWrapper)
and additional functionality specific to the Ribasim API.


`ribasim_api` can be installed by running

```
pip install ribasim-api
```

or

```
conda install -c conda-forge ribasim-api
```

# Contributing

For the developer docs please have a look at https://ribasim.org/dev/.
ribasim 2026.1.0rc1
Pre- and post-process Ribasim
License: MIT
Requires Python: >=3.12

# Ribasim Python

The Ribasim Python package (named `ribasim`) aims to make it easy to build, update and analyze Ribasim models
programmatically.

The Ribasim QGIS plugin allows users to construct a model from scratch without programming.
For specific tasks, like adding observed rainfall timeseries, it can be faster to use
Python instead.

One can also use Ribasim Python to build entire models from base data, such that your model
setup is fully reproducible.

The package is [registered in PyPI](https://pypi.org/project/ribasim/) and can therefore
be installed with `pip install ribasim`.

For documentation please see the https://ribasim.org/ and [API reference](https://ribasim.org/reference/python/)

# Contributing

For the developer docs please have a look at https://ribasim.org/dev/.
msgspec-settings 0.1.0
Type-safe settings from environment variables and Docker secrets using msgspec
License: MIT
Requires Python: >=3.13
Keywords: config, configuration, docker-secrets, environment-variables, msgspec, settings, type-safe, validation

# msgspec-settings

Type-safe settings from environment variables and Docker secrets using msgspec.

## Description

msgspec-settings is a lightweight library for loading application settings from environment variables and Docker secrets with automatic type validation using msgspec.Struct. It provides a schema-first approach where you define your configuration structure using msgspec's typed structs, and the library handles parsing, type conversion, and validation.

The library supports nested structures of arbitrary depth, automatic type casting for common Python types (str, int, float, bool), and follows a predictable environment variable naming convention with customizable prefixes. Values are loaded with priority: environment variables override Docker secrets.

## Installation

```bash
uv add msgspec-settings
```

or with pip:

```bash
pip install msgspec-settings
```

## Quick Start

```python
import msgspec
from msgspec_settings import BaseSettings

class PostgresConfig(msgspec.Struct, frozen=True):
    host: str
    port: int = 5432
    password: str
    
class DatabaseConfig(msgspec.Struct, frozen=True):
    postgres: PostgresConfig
    pool_size: int = 10
    
class AppSettings(BaseSettings):
    database: DatabaseConfig
    debug: bool = False

# Environment variables:
# APP__DATABASE__POSTGRES__HOST=localhost
# APP__DATABASE__POSTGRES__PORT=3306
# APP__DATABASE__POOL_SIZE=20

# Docker secret file:
# /run/secrets/app__database__postgres__password
# Contents: "super_secret_password"

settings = AppSettings(env_prefix="app", secrets_dir="/run/secrets")
print(settings.database.postgres.host)      # localhost
print(settings.database.postgres.port)      # 3306
print(settings.database.postgres.password)  # super_secret_password (from secret file)
print(settings.database.pool_size)          # 20
```

## License

MIT License - see LICENSE file for details.