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.2.tar.gz (4.3 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.2-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: firestart_utils-0.2.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 92684805d5d0664f91ca8e08f827d07e045940b64fcda176318a3fd6ab414934
MD5 cd1f5aee199ae88a141ddb53006f30d5
BLAKE2b-256 e71ef7f58d434dbf33d73351de708d5989fbd6faf5c7186c1d471474d9c27652

See more details on using hashes here.

File details

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

File metadata

  • Download URL: firestart_utils-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3e2fbcedde2bddda3444252e041065f9b3e7263985718327257a899f1bf1c71
MD5 8378650f5f2527f117e5f2451d5099b0
BLAKE2b-256 aa04994a01eab9555d6995431b1332709bbd947926fcddc7cf002bda64d74ac0

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