semvec/pypi-packages huggingface dataset:
structlog-telemetry 2.0.0
A Structured Logger For Telemetry
Requires Python: >=3.9
Keywords: log, logging, observability, structlog, telemetry

# StructLog-Telemetry
Structlog-Telemetry is a very simple custom Python structured logger library.

[![unittests](https://github.com/cyber-francis/structlog_telemetry/actions/workflows/pytest.yaml/badge.svg)](https://github.com/cyber-francis/structlog_telemetry/actions/workflows/pytest.yaml)[![release](https://github.com/cyber-francis/structlog_telemetry/actions/workflows/release.yaml/badge.svg)](https://github.com/cyber-francis/structlog_telemetry/actions/workflows/release.yaml)

## Installation
```bash
python3 -m pip install structlog-telemetry
```

## Usage

```python
from structlog_telemetry.structlog_telemetry import StructLogTelemetry

APP_NAME = "APP_X"
APP_VERSION = "v0.0.1"
logger = StructLogTelemetry(APP_NAME, APP_VERSION)


logger.info("hello world")
logger.warning("Hello world")
logger.error("hello world")
```
<img src="https://raw.githubusercontent.com/cyber-francis/structlog_telemetry/main/docs/log.png">

## Contributing

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.

Please make sure to update tests as appropriate.
firezone-client 0.1.1
Client for firezone
Requires Python: <4.0,>=3.11

# Firezone Client

Manage your Firezone with its api.

## Installation

```bash
pip install firezone-client
```

## Init client & List users

```python
from firezone_client import FZclient, User

endpoint = "http://localhost:13000/v0"
token = "0123456789abcdef"
client = FZClient(endpoint, token)

users = client.list(User)

for user in users:
    print(user.email)
```

Read more for how to use the client in the [docs](https://msterhuj.github.io/firezone-client/)
openapi-cli-test 0.2.1.11
Use OpenAPI schema to generate command line client
Requires Python: <4,>=3.11

# OpenAPI CLI

OpenAPI CLI is a command-line interface (CLI) tool designed to interact with APIs generated by `openapi-python-client`. This tool allows you to configure and use API clients with ease.

## Features

- Configure API client modules
- Validate client modules
- Generate API client instances

## Installation

To install OpenAPI CLI, use `poetry`:

```sh
poetry add openapi-cli[full]
```

To install the CLI globally, use `pip`:

```sh
pip install openapi-cli[full]
```

## Optional
If you want to just use separator for your operation ids use:

```bash
poetry add openapi-cli
```

This will not have a cli, but you can use the separator in your code.
If you want to still have ability to generate clients use the following:

```bash
poetry add openapi-cli[full] --group dev
```

This will keep your project build clean and will not install the cli in your production environment.

## Usage

To use OpenAPI CLI in your project add the following to your `pyproject.toml`:

```toml

    [tool.poetry.scripts]
    your-api-cli = "openapi_cli:cli"

```

Then, you can run the CLI using in venv activated shell:

```sh

    your-api-cli --help

```

### Configure the CLI

Before using the CLI, you need to configure it with your client module, base URL, and token.

Install the client module using downloaded module using `openapi-python-client`:
```sh
your-api-cli client install --module <name_of_your_module> 
```

Set the base URL and token for the client module:

```sh
openapi client api-config --base-url <url_of_your_api>
openapi client auth --token <your_token>
```

Patch the client to support nesting:

```sh
openapi client patch --separator <your_operation_id_separator>  # default is '_oaps_'
```

You can import separator to integrate it with your code:

```python
from openapi_cli.separator import CLI_SEPARATOR
```

### Requirements

- Python 3.12+
- Poetry

### Setup

1. Clone the repository.
2. Install dependencies using `poetry install`.

### Code Formatting

This project uses `black` and `isort` for code formatting. To format the code, run:

```sh
poetry run black .
poetry run isort .
```

## License

This project is licensed under the MIT License. See the `LICENSE` file for more details.