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.2.5.tar.gz (12.3 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.5-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.5.tar.gz
Algorithm Hash digest
SHA256 1c4e9416d786a264ec4f3f8acc547dee5a63bf513a36aead98c21875d147356b
MD5 4ba52b193dea6d0ab75adc4a5ec96cb7
BLAKE2b-256 2a75c165706c21b5c8a6215d244555e95a71768acc989bb57a1a6c0bf19b2ce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 63809666c2646a63493836c07f2c474db8f2ff5a2155c1892b21e66ca9d59aad
MD5 c618622a2b4f760cd4d15f6b3acdac78
BLAKE2b-256 7cf108529ab676da8c7b361dd5f2fcef0ca2d00b88e36881b68c799a23540374

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