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

Uploaded Python 3

File details

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

File metadata

  • Download URL: firestart_utils-0.2.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1023-oem

File hashes

Hashes for firestart_utils-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fbb2a3bacaa16c8f5ec2081022b730dde697a57dc9df53298ebbd8d7205557eb
MD5 7f02bff853996ade9472f4478451ecf0
BLAKE2b-256 e8c05d55c008bca4cca6d3a8e8778008f760f6f48b5491c372b2e11a7b799cc0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: firestart_utils-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.5.0-1023-oem

File hashes

Hashes for firestart_utils-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 158630adf310e9eddf44d0de414fe87112cfd6f84075395e214aa26ca83381d7
MD5 9393a99ec327c51f2ccb3d1a9e562aff
BLAKE2b-256 5c054641ea39b7a03ee44b658de311fa32bd4ad03174ae2c4a4a937d7d55129f

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