|
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | +# 🔧 easySSP Utils |
| 5 | + |
| 6 | +This module provides shared utilities for the easySSP Python clients. It contains essential functionality such as HTTP |
| 7 | +request handling, custom exceptions, logging support, and reusable helpers that streamline the integration with the |
| 8 | +easySSP APIs. |
| 9 | + |
| 10 | +## ✨ Features |
| 11 | + |
| 12 | +- 📦 Shared core functions for easySSP Python clients |
| 13 | +- ✅ Centralized request handling with retry and error management |
| 14 | +- 🧰 Utilities for common API-related tasks (e.g., headers, parsing) |
| 15 | +- 🚨Exception classes for consistent and transparent error reporting |
| 16 | + |
| 17 | +## 📦 Installation |
| 18 | + |
| 19 | +```bash |
| 20 | +pip install easyssp-utils |
| 21 | +``` |
| 22 | + |
| 23 | +Or clone and install from source: |
| 24 | + |
| 25 | +```bash |
| 26 | +git clone https://github.com/exxcellent/easyssp-python-clients-util.git |
| 27 | +cd easyssp-python-clients-util |
| 28 | +pip install -e . |
| 29 | +``` |
| 30 | + |
| 31 | +## 📁 Project Structure |
| 32 | + |
| 33 | +```bash |
| 34 | +easyssp_utils/ |
| 35 | +├── __init__.py |
| 36 | +├── client/ |
| 37 | +│ ├── __init__.py |
| 38 | +│ ├── api_client.py # Generic API client for OpenAPI client library builds |
| 39 | +│ ├── api_response.py # API response object |
| 40 | +│ ├── configuration.py # Settings of the API client |
| 41 | +│ ├── exceptions.py # Exceptions for the API client |
| 42 | +│ └── rest.py # Performing the HTTP requests |
| 43 | +│ |
| 44 | +├── models/ |
| 45 | +│ ├── __init__.py |
| 46 | +│ ├── client_localized_message.py |
| 47 | +│ ├── error_message.py |
| 48 | +│ ├── localized_error_message.py |
| 49 | +│ └── localized_message_key.py |
| 50 | +``` |
| 51 | + |
| 52 | +## 📚 Documentation |
| 53 | + |
| 54 | +Each utility module is documented inline with docstrings. For detailed usage and integration patterns, refer to the |
| 55 | +respective client documentation. |
| 56 | + |
| 57 | +### Documentation for models |
| 58 | + |
| 59 | +- [ClientLocalizedMessage](/docs/ClientLocalizedMessage.md) |
| 60 | +- [ErrorMessage](/docs/ErrorMessage.md) |
| 61 | +- [LocalizedErrorMessage](/docs/LocalizedErrorMessage.md) |
| 62 | +- [LocalizedMessageKey](/docs/LocalizedMessageKey.md) |
| 63 | + |
| 64 | +## 🛠️ Requirements |
| 65 | + |
| 66 | +- Python 3.11+ |
| 67 | + |
| 68 | +Install dependencies using uv: |
| 69 | + |
| 70 | +```bash |
| 71 | +pip install uv |
| 72 | +uv sync |
| 73 | +``` |
| 74 | + |
| 75 | +## 🤝 Contributing |
| 76 | + |
| 77 | +This module is maintained as part of the easySSP ecosystem. If you find issues or want to suggest improvements, please |
| 78 | +open an issue or submit a pull request. |
| 79 | + |
| 80 | +## 📄 License |
| 81 | + |
| 82 | +This project is licensed under the MIT License. |
0 commit comments