semvec/pypi-packages huggingface dataset:
compose-micromanager 0.3.4
CLI application to manage microservices with docker-compose
Requires Python: >=3.10

# micromanager

CLI application to manage microservices with docker-compose

Built with [Typer](https://typer.tiangolo.com/)

`micromanager` is a wrapper around compose, it allows you to define and manage multiple
systems, each with a multitude of compose projects.

## Documentation

The documentation for `micromanager` is hosted on [maxcode123.github.io/micromanager/](https://maxcode123.github.io/micromanager/)

## Installation

```bash
pip install compose-micromanager
```

Run `micromanager --help` to make sure you've successfully installed micromanager.

## Quick start

After you've installed `micromanager` you'd want to create a configuration file at
`$HOME/.config/micromanager/config.json`:

```bash
mkdir -p $HOME/.config/micromanager/
touch $HOME/.config/micromanager/config.json
```

Edit the `config.json` file as per your needs.  
You can consult the [config.json.example](config.json.example) file to understand the format.

Once you're done with the configuration you can run `micromanager --help` to
see all the available commands.
TechTrash-s3file 0.1.0
A package to upload files to OVH S3
Requires Python: >=3.9

# NEXTProtocol S3File

Petit client OVH S3 pensé pour des uploads publics simples.

## Installation

```bash
pip install NEXTProtocol-s3file
# mettre à jour si besoin
pip install --upgrade NEXTProtocol-s3file
```

## Démarrage rapide

```python
from s3file import OvhS3

s3 = OvhS3(
    endpoint="https://s3.gra.io.cloud.ovh.net",
    bucket="your-bucket-name",
    region="gra",
    key_id="YOUR_ACCESS_KEY",
    secret="YOUR_SECRET_KEY",
)

url = s3.upload_file_public("local/path/to/file.jpg")
# -> https://your-bucket.s3.gra.io.cloud.ovh.net/default_path/file.jpg

url = s3.upload_file_public(
    "photo.jpg",
    "images/2024/photo.jpg",
)
# -> https://your-bucket.s3.gra.io.cloud.ovh.net/images/2024/photo.jpg
```

## API

### `OvhS3(endpoint, bucket, gra, key_id, secret)`
- prépare un client boto3 configuré pour OVH
- garde l'endpoint public dans `virtual_endpoint`

### `upload_file_public(file_path, bucket_file_path=None)`
- crée la clé distante `default_path/<nom>` si aucun chemin n'est donné
- passe l'ACL `public-read`
- renvoie l'URL publique complète

## Bonnes pratiques
- vérifie tes identifiants OVH avant l'appel
- pilote les erreurs via un try/except si tu veux une gestion custom
- lance `pip install --upgrade NEXTProtocol-s3file` pour récupérer la dernière version

## Prérequis
- Python >= 3.9
- boto3 >= 1.26.0

## Licence
MIT