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 azurehelper import PostgresLogHandler

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 azurehelper 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.3.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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: downerhelper-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 6c30682cf0cfe83972610831dfd1754b857b577b8f5ca3cc146c2f7d383b7d26
MD5 27fe91e1e0bfbb446446ff13e59da0cb
BLAKE2b-256 a3ef4cde6e4da0b43bcab13f2a9a69e2e3c43f45f51a000fb3b6eba17df8811b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: downerhelper-0.0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0e15f3a811b7d0603de9af8f4885891e2d0d76b984b9b6b89a9cdf97827746fc
MD5 0ae5eec87cf489a1b9e290ae0fef76e9
BLAKE2b-256 6ca0da3d5ae5c3ba762954f1051b7333a5363c4b4a16ea2b4bcc27a0e405d9bc

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