Skip to main content

No project description provided

Project description

Install

For Microsoft Fabric usage add it to your environments Public Libraries

firestart-utils

Local install:

pip install firestart-utils

Examples:

LOGGING

Import the logger in a notebook

from firestart_utils.logger import get_logger

Import lake house logger in a notebook

from firestart_utils.logger import get_lakehouse_logger

Create a logger object or lake house logger object

!IMPORTANT logging towards datadog is only available when log_level_threshold is met

logger = get_logger("{DATADOG_API_KEY}", "{CUSTOMER}", "{ENVIROMENT}", "{WORKSPACE_NAME}", "{LOG_LEVEL_TRESHOLD}")

lakehouse_logger = get_lakehouse_logger("ENV", "location")

Default logging

logger.info("Hello World")
logger.debug("Hello World")
logger.warning("Hello World")
logger.error("Hello World")
logger.critical("Hello World")

Logging pipeline metrics DataDog

logger.failed()
logger.success()

UTILS

Utils library has functions which uses the notebook utils library of Microsoft Fabric.

Import the utils in a notebook

from firestart_utils.utils import get_lakehouse, get_dump, get_secret_from_keyvault, get_runtime

Example:

Get the lakehouse object by name for accessing the lakehouse details like uid or abfsPath

get_lakehouse.by_name("lakehouse_name")

Get runtime object for accessing the current workspace/notebook id or name

get_runtime().current_workspace_id()
get_runtime().current_workspace_name()
get_runtime().current_notebook_name()
get_runtime().current_notebook_id()

Get dump of an atrribute of a object

get_dump.by_name(Object)

get secret from keyvault

get_secret_from_keyvault("keyvault_name", "secret_name")

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

firestart_utils-0.2.3.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

firestart_utils-0.2.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file firestart_utils-0.2.3.tar.gz.

File metadata

  • Download URL: firestart_utils-0.2.3.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for firestart_utils-0.2.3.tar.gz
Algorithm Hash digest
SHA256 9f53305916d5cba4ebeb7e5b7a0ac9b9190164fb71d9d72dd1c02c263b3d0a9f
MD5 1eb60ea2fcaccc2f1e8613d78ed797f8
BLAKE2b-256 287f01051418413fba50d6ad8f05425dadb25f3a0dba1035d4ad7d3376c2814e

See more details on using hashes here.

File details

Details for the file firestart_utils-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: firestart_utils-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/23.6.0

File hashes

Hashes for firestart_utils-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e061701febf8a1826fbabc0b9a4a34c0d4b71c206a25ffbc992b17dfb946d627
MD5 adda15acb87d9fe9d1b94af9259350e5
BLAKE2b-256 94e34707b365c63ab5bc6457cf0350b7b3d2dbf4960bbf5a4f634321f498add9

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