semvec/pypi-packages huggingface dataset:
beaconclient 1.0.3
Client to access to Beacon services
Requires Python: >=3.9

Client to access to Beacon services.

Actually it provides:

- Synchronous sequencial client (`beaconclient.syncio.BeaconClient`)
- Asynchronous sequencial client (`beaconclient.asyncio.BeaconClient`)
- Sans I/O protocol (`beaconclient.protocol`) to create other clients
- Config helper (`beaconclient.config.read-config`) to read ocnfig from file or beacon URIs.

Notice that the [BLISS](https://gitlab.esrf.fr/bliss/bliss) project provides it's own beacon
client supporting the whole API with a non-seqnencial implementation.

## Sync client

Client to access to configuration files, redis addresses, and stored keys.

```python
from beaconclient.syncio import BeaconClient

client = BeaconClient()

redis_address = client.get_redis_db()
```

## Async client

Async client to access to configuration files, redis addresses, and stored keys.

```python
from beaconclient.asyncio import BeaconClient

client = BeaconClient()

redis_address = await client.get_redis_db()
```

## Read configuration

Helper to read yaml configuration file.

```python
from beaconclient.config import read_config

content = read_config("beacon:///path/to/file.yml")

content2 = read_config("file:///my_file.yml')
```