# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/yourusername/your-repo",
"name": "lhs-global-service-fastapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "oracle, logging, fastapi, debug, global-service",
"author": "Rohit Jagtap",
"author_email": "rohit.jagtap@lighthouseindia.com",
"download_url": "https://files.pythonhosted.org/packages/90/07/e9318d6c11ef8b42cff17c82f6e20d347d7ab4c55479ef98d2e6072bad42/lhs_global_service_fastapi-0.2.1.tar.gz",
"platform": null,
"description": "# lhs-global-service-fastapi\r\n\r\nGlobal Oracle logging and debug management for FastAPI apps.\r\n\r\n## Features\r\n- Oracle DB logging integration\r\n- Debug log flag management with TTL\r\n- Date formatting for Oracle\r\n- Configurable via environment variables\r\n- Designed for FastAPI and other Python web apps\r\n\r\n## Installation\r\n```bash\r\npip install lhs-global-service-fastapi\r\n```\r\n\r\n## Usage\r\nImport and configure in your FastAPI app:\r\n```python\r\nfrom global_service_fastapi_pkg import debug_log_flag_manager, global_service_pkg, oracle_date_formatter\r\n\r\n# Example: Enable debug logs\r\ndebug_log_flag_manager.enable_debug_logs(\"username\")\r\n\r\n# Example: Format Oracle datetime\r\noracle_date_formatter.format_oracle_datetime(\"08-08-2025 12:34:56\")\r\n\r\n# Configure global service\r\nglobal_service_pkg.config.configure(GLOBAL_LOG_URL=\"...\", ORACLE_USER=\"...\", ORACLE_PASS=\"...\", ...)\r\n```\r\n\r\n## Requirements\r\n- Python >= 3.7\r\n- cx_Oracle\r\n- requests\r\n- python-dotenv\r\n\r\n## License\r\nMIT\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Global Oracle logging and debug management for FastAPI apps.",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/yourusername/your-repo",
"Source": "https://github.com/yourusername/your-repo",
"Tracker": "https://github.com/yourusername/your-repo/issues"
},
"split_keywords": [
"oracle",
" logging",
" fastapi",
" debug",
" global-service"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "2d4383e18e87ac7f2a09f8de7b77cb6b4a693f3ac128af0be96dc85517b5d7c6",
"md5": "89d59b5d7def60b39a417c9a5e5ec6c6",
"sha256": "e52c9465284da10c3bf39987fe4597ad900956b8bd6a95e18c2112dd22a8fd9d"
},
"downloads": -1,
"filename": "lhs_global_service_fastapi-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "89d59b5d7def60b39a417c9a5e5ec6c6",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 11071,
"upload_time": "2025-09-15T06:35:01",
"upload_time_iso_8601": "2025-09-15T06:35:01.311166Z",
"url": "https://files.pythonhosted.org/packages/2d/43/83e18e87ac7f2a09f8de7b77cb6b4a693f3ac128af0be96dc85517b5d7c6/lhs_global_service_fastapi-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9007e9318d6c11ef8b42cff17c82f6e20d347d7ab4c55479ef98d2e6072bad42",
"md5": "c4bf4400c4f536203ca7902ba88cd517",
"sha256": "329728eb02d11570af98a2918fcd8c05414cd4e84ad840f63980754e1ad88fd9"
},
"downloads": -1,
"filename": "lhs_global_service_fastapi-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "c4bf4400c4f536203ca7902ba88cd517",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 9920,
"upload_time": "2025-09-15T06:35:02",
"upload_time_iso_8601": "2025-09-15T06:35:02.781888Z",
"url": "https://files.pythonhosted.org/packages/90/07/e9318d6c11ef8b42cff17c82f6e20d347d7ab4c55479ef98d2e6072bad42/lhs_global_service_fastapi-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-15 06:35:02",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yourusername",
"github_project": "your-repo",
"github_not_found": true,
"lcname": "lhs-global-service-fastapi"
}