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.1.tar.gz (4.0 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.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: downerhelper-0.0.1.tar.gz
  • Upload date:
  • Size: 4.0 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.1.tar.gz
Algorithm Hash digest
SHA256 4a93c0ce879308a7c5b2055673eafb311a11491296552b62e350a356b57d5227
MD5 2abff0623173c8c2f4771e6eefd3a3e9
BLAKE2b-256 33497fdca45d91197be9a67515b376264aa1e197d0bef2029c28d6c9bf9ed9c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: downerhelper-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 acbeb6d3490ebeba65e44deabb6f9ae8cbb84088dff50300ada346b75fd1fe05
MD5 6deb2ee4af96480d1d7d9205045248e4
BLAKE2b-256 495993eafc57c6c22fda74013a1af48004bd61f931dde10d9085f4116d13e37b

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