Global Oracle logging and debug management for FastAPI apps.
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lhs_global_service_fastapi-0.2.2.tar.gz.
File metadata
- Download URL: lhs_global_service_fastapi-0.2.2.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67eeb9c93503b7a8f0b8e1ba352f08569923c43af8f49620d7554d30db01da9a
|
|
| MD5 |
a8dd4c5c3559e540d133ada4b9cb2de9
|
|
| BLAKE2b-256 |
11c29354ac7303c6b08e9227a7af32cc03cedb9909077c0887ff89ecfb40411f
|
File details
Details for the file lhs_global_service_fastapi-0.2.2-py3-none-any.whl.
File metadata
- Download URL: lhs_global_service_fastapi-0.2.2-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72840a2822ca3a6b27cbeb860bd8f94349a2229bb6611cd09f1298010c90b1d8
|
|
| MD5 |
63f7f8786319e7e3e3f343ea730b5fc2
|
|
| BLAKE2b-256 |
e3478892e6d01ebc9b562f0db3706c591839af9e8c2776ec970410654aae953a
|