semvec/pypi-packages huggingface dataset:
pyamlconf 0.0.4
A simple YAML-based configuration loader for Python
License: MIT
Requires Python: >=3.9

# PyamlConf

A simple YAML-based configuration loader for Python

## Mustache 
bala bala..... see demo

## Install

```commandline
pip install pyamlconf
```

## Demo

create yaml file on local path: tests/config.yaml

```yaml
db:
  url: mysql://{{.host}}:3306
  host: 127.0.0.1
  name: dbtest
  pwd: 123456
  pool:
    size: 100
    maxidle: 10
  desc: "db.url = {{ db.url }}; db.name = {{ .name }}; db.pool = {{.pool}} "
```

create tests/test.py, like:

```python
from pyamlconf.config import PyamlConfig

config = PyamlConfig('tests/config.yaml')

print(config.get('db.url'))
print(config.get('db.desc'))
```

run test

```commandline
python tests/test.py
```

output:

```text
mysql://127.0.0.1:3306
db.url = mysql://127.0.0.1:3306; db.name = dbtest; db.pool = {'size': 100, 'maxidle': 10}
```

### update config

update with local config, use for development

create yaml file on local path: tests/config.local.yaml
```yaml
db:
  host: 127.0.0.1
  pwd: 123456
```

modify python tests/test.py, like
```python
from pyamlconf.config import PyamlConfig

config = PyamlConfig('tests/config.yaml')

print(config.get('db.url'))
print(config.get('db.desc'))

config.update(PyamlConfig('tests/config.local.yaml'))

print(config.get('db.url'))
print(config.get('db.desc'))
```

run test

```commandline
python tests/test.py
```

output:

```text
mysql://10.0.22.1:3306
db.url = mysql://10.0.22.1:3306; db.name = dbtest; db.pool = {'size': 100, 'maxidle': 10}
mysql://127.0.0.1:3306
db.url = mysql://127.0.0.1:3306; db.name = dbtest; db.pool = {'size': 100, 'maxidle': 10}
```
federated-learning-clinical-safety-sdk 0.1.3
Python SDK for the Federated Learning Clinical Safety API
License: MIT
Requires Python: <4.0,>=3.10
Keywords: federated-learning, sdk, clinical, safety, django

# 🔧 Federated Learning Clinical Safety Server SDK

This is the documentation for the Federated Learning Clinical Safety Dashboard SDK! This project provides a package for interacting with the [Federated Learning Clinical Safety Dashboard Server](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-server) in a type-safe and easy manner.


[![CI](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/ci.yml)

[![SDK ↔ Server Integration](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/integration.yml/badge.svg)](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/integration.yml)

[![📦 Publish to PyPI](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/publish.yml/badge.svg)](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/actions/workflows/publish.yml)

## Using the SDK

The package is [available from PyPi](https://pypi.org/project/federated-learning-clinical-safety-sdk/).

### Installation

```bash
pip install federated-learning-clinical-safety-sdk
```

### Getting started

Read our [code examples](https://github.com/AlexDobsonPleming/federated-learning-clinical-safety-sdk/wiki/Code-examples) to get an idea of how to use this package.

## Development
### Prerequisites

Before you begin, ensure you have the following installed:

* Python 3.10+
* Poetry

#### Installing poetry

Windows NT
```powershell
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
```

Then add to path:

```
%USERPROFILE%\AppData\Roaming\pypoetry\venv\Scripts
```

Linux/MacOS/Unix-like systems:
```bash
pipx install poetry
```

### Publishing new versions

This repo is set up with Continuous Deployment to automatically deploy new packages to PyPi.

To deploy a new version, do the following.

1. Bump the package version

```bash
poetry version patch
```

2. Create a matching git tag

```bash
git tag v<version number (i.e. 0.1.1)>
```

3. Push the tag to GitHub

```bash
git push origin v<version number from step 2 (i.e. 0.1.1)>
```

### Integration testing

To test the SDK works with the server integration testing with docker has been added.

This will also run as part of the GitHub CI platform.

```bash
export API_BASE_URL="http://localhost:8000/api"

export SDK_TEST_TOKEN=<token from your live instance>

poetry install

poetry run pytest src/tests/test_integration.py -q

```