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.7.tar.gz (9.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.1.7-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.1.7.tar.gz
Algorithm Hash digest
SHA256 0589f28f714ef3b640acaec34707b730306b5e7717bbb2183d58c178529886a0
MD5 b1e7e5069f7fb37a164bfc39d32dae7e
BLAKE2b-256 7f867ed87617b50f339d2446b04aeefc4be5d429bd1df83e19571fcf242a9bfb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lhs_global_service_fastapi-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9ed4fefd27d89372b3e38f8c2ead1cb21044ca94be4a74500483ebae3e5d75ac
MD5 068ad96f77eab036e9df2f8a5ecb4d9d
BLAKE2b-256 e36bf55be1063ce9b1d4b99319d36546e9c37b7bbc9b3329d48a1b0cddce1e6d

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