Metadata-Version: 2.4
Name: lhs-global-service-fastapi
Version: 0.1.5
Summary: Global Oracle logging and debug management for FastAPI apps.
Home-page: https://github.com/yourusername/your-repo
Author: Rohit Jagtap
Author-email: rohit.jagtap@lighthouseindia.com
License: MIT
Project-URL: Source, https://github.com/yourusername/your-repo
Project-URL: Tracker, https://github.com/yourusername/your-repo/issues
Keywords: oracle,logging,fastapi,debug,global-service
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cx_Oracle
Requires-Dist: requests
Requires-Dist: python-dotenv
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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
```bash
pip install lhs-global-service-fastapi
```

## Usage
Import and configure in your FastAPI app:
```python
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
