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.7.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.7-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.7.tar.gz
Algorithm Hash digest
SHA256 a5c72ae762332fd96cb18a36de3c92291960672e4bc8c0cb984af66e50ae98a1
MD5 f9eef2dc9715afd620f9213b365f4142
BLAKE2b-256 5c27a4ea3b8e170a2fd894327fac7750c1507f9b42a5b106db31c6a985efa1b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c4fcab086e2079c5e265ab62edb62a59abb1cc6639c336f8fbe3196e0657c416
MD5 485e734937be69fc5ee9b2c9f2ffa363
BLAKE2b-256 f653905c7ef304e8b83f9acec2e0cd633275d986d576438280e1c20c990e1af4

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.8

2 files

This release

0.2.7 This release

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