Skip to main content

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)

Source distribution for lhs-global-service-fastapi 0.2.8
File Size Uploaded
lhs_global_service_fastapi-0.2.8.tar.gz 13.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lhs-global-service-fastapi 0.2.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page