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.secret_helper 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.postgres_log_handler 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.4.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.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: downerhelper-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 e9894b3d2deedee3482acfa803717990293fc1cd7bf0b162e2bef3e6c3d0247f
MD5 5988b7731f06cf30c777788e4f78b12a
BLAKE2b-256 e75695352db77a84d18f9dec337e91c0554b10d5d1145c14552be9cff5f9bba8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: downerhelper-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0a468dab1aa735125d0413c81654f3df72699114fa53da8c3c31f774c7c8cf94
MD5 bdc255f179416cfb64ee98c2ae5a9a0d
BLAKE2b-256 9f2cfb23de12f78e2699e7b900ff34278afb0e5bcd5281ccf842f830d95e4c8d

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