Skip to main content

Global Oracle logging and debug management for FastAPI apps.

Project description

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

Project details


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.1.3.tar.gz (9.0 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.1.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d5c4d6fa883064f82f371bedec128e794979d802f1542e9a15fa0345d65626f2
MD5 1517b652fc1bc9d0df9451953f410040
BLAKE2b-256 453f2623710e8b74c1bc77035cf5096cd2acecc6d9c39d9359cfaf6017316543

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aefc1221fed475190b0f8eb21c58f70f624f66e1c79c8f326b7aad58906da421
MD5 fa44a99b259f6ce163abc7488dba332a
BLAKE2b-256 aaf9a45639fabe6661bbf576498da1128aca2e3336450b91bf09c4a4a04bc562

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page