Skip to main content

Collection of functions to wrap the Azure SDK

Project description

Downer Azure Helper

Collection of functions to wrap the Azure SDK.

Get Secret Value

Retrieve the value of a keyvault secret.

Example Usage

from downerhelper.secrets import get_secret_value

value = get_secret_value(secret_name, keyvault_url)

Postgres Log Handler

Simple handler to enter logs directly to postgres databases, uses psycopg2 for connection. Creates a new table if does not already exist, and groups logs by job_id.

Example Usage

from downerhelper.logs import PostgresLogHandler

db_config = {
    'dbname': <dbname>,
    'user': <user>,
    'password': <password>,
    'host': <host>,
}
logger_name = 'logger name'
job_id = 'test_id'
table = 'table name'

logger = PostgresLogHandler(logger_name, job_id, table, db_config)
logger.info("this is a test info message")

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

downerhelper-0.0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

downerhelper-0.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file downerhelper-0.0.5.tar.gz.

File metadata

  • Download URL: downerhelper-0.0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for downerhelper-0.0.5.tar.gz
Algorithm Hash digest
SHA256 da54d5a0e1820e8381237f0f415d67c644f8b108bbb6313b0740f8f9fe2d5712
MD5 eb1fc0bfc0e45b9c7f0b9ea00a553699
BLAKE2b-256 7d1a743a7d7c2217a2ac4e137801ac6fcf126f701b589f9005eedcfaaa365703

See more details on using hashes here.

File details

Details for the file downerhelper-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: downerhelper-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for downerhelper-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b84835b9d9bcca7b7ec42b7baf0f6ba4d1eb64a76a49aa68f3dd8cc3e25da28
MD5 15d5a771fd2e6bcaff852c8799f37988
BLAKE2b-256 7f2ad79b6a903b1ce7ee999639cb1725f654cf46b7d77555cf408d6740271b54

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