semvec/pypi-packages huggingface dataset:
yeti-switch-api 1.2.2
Yeti-web Admin API SDK
License: MIT
Requires Python: >=3.7
Keywords: yeti-switch, yeti-web

# Yeti-web Admin API SDK
![tests workflow](https://github.com/yeti-switch/yeti-switch-api-python/actions/workflows/tests.yml/badge.svg)

The documentation for the Yeti-web Admin API can be found [here](https://yeti-switch.org/docs/en/admin-api/index.html).

## Installation

Install from PyPi using [pip](https://pip.pypa.io/en/latest/), a package manager for Python.
```shell
pip3 install yeti-switch-api
```

Or download source code and run:
```shell
python3 setup.py install
```

## Usage

```python

import yeti_switch_api

yeti_switch_api.orm.OrmClient({
    'API_ROOT': 'https://myhost.com/api/rest/admin',
    'AUTH_CREDS': {
        'login': 'mylogin',
        'password': 'mypassword',
    },
    'VALIDATE_SSL': True,
    'TIMEOUT': 10,
})

# refresh auth token in any time
yeti_switch_api.orm.OrmClient.auth.refresh_token()

# use the api
found_contractors = yeti_switch_api.orm.Contractor.get_list()
```

See `examples/` for detailed usage examples.

## Development

### Requirements

[pipenv](https://pipenv.pypa.io/en/latest/) can be installed via `apt install pipenv`

`Python 3.7+`

### Install dependencies

```shell
pipenv install --dev
```

### Lint with flake8
```shell
pipenv run python -m flake8 . --count --show-source --statistics
```

### Fix code format with Black
```shell
pipenv run python -m black .
```

## Release

### Change `__version_info__` in `yeti_switch_api/__init__.py`

### Build package
```shell
pipenv run python setup.py sdist
pipenv run python setup.py bdist_wheel
```
As result you will have files:
```
dist/yeti_switch_api-<VERSION>.tar.gz
dist/yeti_switch_api-<VERSION>-py3-none-any.whl
```

### Check package
```shell
pipenv run python -m twine check dist/*
```

### Upload package to [pypi](https://pypi.org/)

```shell
pipenv run python -m twine upload dist/*
```

**Notes:** see [this guide](https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#create-an-account) how to set up pypi account

### Upload package to test pypi
```shell
pipenv run python -m twine upload -r testpypi dist/*
```
petal-user-journey-coordinator 0.1.12
A petal for the DroneLeaf ecosystem
License: MIT
Requires Python: >=3.10

# petal-user-journey-coordinator

A petal for the DroneLeaf ecosystem.

## Description

This petal provides [describe your petal's functionality here].

## Installation

```bash
# For development
pdm install -G dev

# For production
pdm install
```

## Usage

This petal provides the following endpoints:

- `GET /health` - Health check endpoint that reports proxy requirements and status
- `GET /hello` - Simple hello world endpoint for testing

## Development

### Running Tests

```bash
pdm run pytest
```

### Debugging

Use the provided VS Code launch configuration to debug the petal:

1. Open VS Code in this directory
2. Set breakpoints in your plugin.py file
3. Press F5 to start debugging

### Required Proxies

This petal requires the following proxies (modify in `get_required_proxies()`):
- `redis` - For caching and communication
- `db` - For database operations

### Optional Proxies

This petal can optionally use (modify in `get_optional_proxies()`):
- `ext_mavlink` - For MAVLink communication

## API Documentation

### Health Check

```
GET /health
```

Returns health information including:
- Petal name and version
- Required and optional proxy lists
- Custom petal status information

### Hello World

```
GET /hello
```

Simple endpoint for testing connectivity.

## License

MIT License
csc-essentials 0.4.0
Biblioteca de utilitários essenciais para projetos CSC
License: MIT
Requires Python: >=3.9


# csc-essentials

Pequeno utilitário para integração com Google Cloud (BigQuery, Secret Manager, Cloud Logging, Compute).

## Instalação

```bash
pip install csc-essentials
```

## Quickstart (exemplo rápido)

```python
from google.cloud import bigquery
from csc_essentials.logging import GeradorLog
from csc_essentials.secrets import get_secrets
from csc_essentials.database import inserir_banco_dados

log = GeradorLog("exemplo")
# Ler segredo do Secret Manager (ex.: token Slack)
raw = get_secrets("projects/MEU_PROJ/secrets/SLACK_SECRET/versions/latest")

# Preparar cliente BigQuery
client = bigquery.Client()

# Carregar arquivo NDJSON para uma tabela
inserir_banco_dados(
    arquivo_path="/tmp/dados.ndjson",
    projeto="meu-projeto",
    dataset="meu_dataset",
    tabela="minha_tabela",
    log=log,
    client=client,
    wait_job=True,
)

print("Upload iniciado")
```

## Documentação

- Documentação por módulo em `docs/` (veja `docs/overview.md`).
- Principais módulos: `logging`, `secrets`, `utils`, `database`.

## Contribuindo

- Abra uma issue descrevendo o problema ou feature.
- Envie um Pull Request com testes e descrição clara das mudanças.
- Formato de código: siga o estilo existing do projeto e execute os testes (`pytest`).

## Licença

Este repositório está licenciado conforme o arquivo `LICENSE` na raiz.

## Notas rápidas

- Verifique permissões GCP ao usar `bigquery.Client()` e `secretmanager.SecretManagerServiceClient`.
- Em desenvolvimento local, você pode desativar o envio para Cloud Logging configurando `GCP_LOGGING_ATIVO=false`.