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

Uploaded Python 3

File details

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

File metadata

  • Download URL: firestart_utils-0.2.6.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for firestart_utils-0.2.6.tar.gz
Algorithm Hash digest
SHA256 d19a9c97cb2a44e8f7f579821da4e7b49bce989764e6e7281591a1bd93be7c7f
MD5 12b7bb593fb1c80d775426f1fcc4fbf5
BLAKE2b-256 73efb11ec72d7e947487a7989547d957127514798c8c96a961d2ff9319e0db46

See more details on using hashes here.

File details

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

File metadata

  • Download URL: firestart_utils-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.3.0

File hashes

Hashes for firestart_utils-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d5c9f713e7a721d7534ac5a08383582127065131c3465c98d7868755bf798917
MD5 7cc4341d972f1f75054f96f887dc143c
BLAKE2b-256 a5fc4421c911bfc729e1c8ec1ce3dcd28b6269770055eb79d7b162b562c89837

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