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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lhs_global_service_fastapi-0.2.8.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lhs_global_service_fastapi-0.2.8-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file lhs_global_service_fastapi-0.2.8.tar.gz.

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.8.tar.gz
Algorithm Hash digest
SHA256 9fd2db97b0dcbe9fb6538edeb518204e41e28cce7a9e97e9270ad38a4a56bd7e
MD5 9a42069d40de1919fe50ce654cfed9a7
BLAKE2b-256 be3cd2f145a8785c32e0b87854fe6c8bc36cfb4b2ff592c3e3999492c475a4df

See more details on using hashes here.

File details

Details for the file lhs_global_service_fastapi-0.2.8-py3-none-any.whl.

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 21903e6aeec9bbee0fb613c2e40fa727cccf3910bb8d27e3a5209efe63344482
MD5 faf7127229beb6a8c0f5459d5934cf02
BLAKE2b-256 82d14c9a714ec02b5b9858b1258e71055a87271a1cdf9a8fb39a4932e7cbee2f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.8 This release

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 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