lhs-global-service-fastapi
Global Oracle logging and debug management for FastAPI apps.
Features
- Oracle DB logging integration
- Debug log flag management with TTL
- Date formatting for Oracle
- Configurable via environment variables
- Designed for FastAPI and other Python web apps
Installation
pip install lhs-global-service-fastapi
Usage
Import and configure in your FastAPI app:
from global_service_fastapi_pkg import debug_log_flag_manager, global_service_pkg, oracle_date_formatter
# Example: Enable debug logs
debug_log_flag_manager.enable_debug_logs("username")
# Example: Format Oracle datetime
oracle_date_formatter.format_oracle_datetime("08-08-2025 12:34:56")
# Configure global service
global_service_pkg.config.configure(GLOBAL_LOG_URL="...", ORACLE_USER="...", ORACLE_PASS="...", ...)
Requirements
- Python >= 3.7
- cx_Oracle
- requests
- python-dotenv
License
MIT
Metadata
Release files for lhs-global-service-fastapi 0.2.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lhs_global_service_fastapi-0.2.8.tar.gz | 13.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lhs_global_service_fastapi-0.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.0 kB
Release files / lhs_global_service_fastapi-0.2.8.tar.gz
| Download URL | lhs_global_service_fastapi-0.2.8.tar.gz |
|---|---|
| Size | 13.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fd2db97b0dcbe9fb6538edeb518204e41e28cce7a9e97e9270ad38a4a56bd7e
|
|
BLAKE2b-256 checksum How to use checksums |
be3cd2f145a8785c32e0b87854fe6c8bc36cfb4b2ff592c3e3999492c475a4df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|
Release files / lhs_global_service_fastapi-0.2.8-py3-none-any.whl
| Download URL | lhs_global_service_fastapi-0.2.8-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21903e6aeec9bbee0fb613c2e40fa727cccf3910bb8d27e3a5209efe63344482
|
|
BLAKE2b-256 checksum How to use checksums |
82d14c9a714ec02b5b9858b1258e71055a87271a1cdf9a8fb39a4932e7cbee2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.11
|