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.2.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.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: downerhelper-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 0de9d0f5f6d4a39075873784aee837bc5ae79d0f52018b8cbfe12b14bf90ea65
MD5 e4740d3d6b27dd6e235d2005fbe92a5d
BLAKE2b-256 6e561d98544200cec3fe6f34982d9e7de06869e12dd72c32684864f259de7d59

See more details on using hashes here.

File details

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

File metadata

  • Download URL: downerhelper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6023cae72b7d3ce22f4ce4af91f5e06a47380b01bea1c76c8f79e1431b2c6d8
MD5 50f6cc81b6c256bc9b5ef7b3798a42f2
BLAKE2b-256 6994a2b4ffa7519f4f6c7306925b124cfabed8c4300f3d13072d11ade1d00ea3

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