semvec/pypi-packages huggingface dataset:
various-api-tools 1.1.1
A lightweight utility package for common API-related tasks in Python, including JSON and Pydantic error translators that provide user-friendly Russian messages.
License: MIT
Requires Python: >=3.10

# Various_api_tools

**A lightweight utility package for common API-related tasks in Python, including JSON and Pydantic error translators that provide user-friendly Russian messages.**

### Basic Usage

```python
import json
from various_api_tools.translators.json import JSONDecodeErrorTranslator

try:
    json.loads('{"name": "Alice",}')
except json.JSONDecodeError as e:
    print(JSONDecodeErrorTranslator.translate(e))

# Output:
# Ошибка конвертации в формате JSON.
# Позиция: 16.
# Описание: не правильно используются двойные кавычки.
```

```python
from pydantic import BaseModel, ValidationError
from various_api_tools.translators.pydantic import PydanticValidationErrorTranslator

class User(BaseModel):
    email: str

try:
    User(email=123)
except ValidationError as e:
    print(PydanticValidationErrorTranslator.translate(e.errors()))

# Output:
# Поле: "email". Ошибка: "Невалидное строковое значение(str)";
```


### Installation
```bash
pip install various_api_tools
```

### License

MIT License — feel free to use it in any project! 🎉

### Documentation

[https://various-api-tools.dkurchigin.ru/](https://various-api-tools.dkurchigin.ru/)

### Author

Made with ❤️ by [@dkurchigin](https://gitverse.ru/dkurchigin)

### Gitverse

[https://gitverse.ru/dkurchigin/various-api-tools](https://gitverse.ru/dkurchigin/various-api-tools)
iplotLogging 1.2.0.post1
General logging support for IDV components
License: MIT
Requires Python: >=3.9
Keywords: ITER logging, logs

# Logging library

General logging support for IDV components.

## Requirements

1. Python <= 3.11
2. Dependencies: Managed via [pyproject.toml](https://github.com/iplot-viz/iplotlogging/blob/IDV-732-add-pyqtgraph-as-backend-to-iplotlib/pyproject.toml)

## Installation

Install the package from PyPi:

  ```bash
  pip install iplotLogging
  ```

### Contributing

1. Fork it!
2. Create your feature branch: ```git checkout -b my-new-feature ```
3. Commit your changes: ```git commit -am 'Add some feature' ```
4. Push to the branch:```git push origin my-new-feature ```
5. Submit a pull request