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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file firestart_utils-0.2.1.tar.gz
.
File metadata
- Download URL: firestart_utils-0.2.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53f5a23d1a474bb5bc5c521b1c466703dd7072b56402035547086a0af7e49803 |
|
MD5 | 59b9d0bb87d66b5e960eebe287ed0d16 |
|
BLAKE2b-256 | 654825143019c9d6c033e5384c6bca137e45d9cb89dd417f70f0d7145cb5179b |
File details
Details for the file firestart_utils-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: firestart_utils-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4aa4dfc449d9df46483a5aa0ba07dfe539cd75e6cf8cc9b788982318e70592e3 |
|
MD5 | ca8c7419639e40642a00729ff4ede595 |
|
BLAKE2b-256 | 6c7aa29b4d569dacab25b39a85f392709bf2e8ea772e7e345c6b167a3af6e737 |