Helpers for developing solution on Databricks and PySpark
Project description
brixy
brixy is a package with many utilities for developing on Databricks and PySpark.
Features
Logging
log the steps of a workflow using the decorator @log_step.
from brixy import log_step
@log_step()
def step1():
return 1+2
This will log:
2024-08-17 20:58:50.f | INFO | RUNNING | test_logstep.<l | 🏃♀️ Running step1
2024-08-17 20:58:50.f | INFO | COMPLETED | test_logstep.<l | ✅ Completed running step1
Logs are indented to show nested calls nicely:
2024-08-17 20:59:55.f | INFO | RUNNING | test_logstep_in | 🏃♀️ Running step_a
2024-08-17 20:59:55.f | INFO | RUNNING | test_logstep_in | 🏃♀️ Running step1
2024-08-17 20:59:55.f | INFO | RUNNING | step2 | 🏃♀️ Running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | step2 | ✅ Completed running step2
2024-08-17 20:59:55.f | INFO | RUNNING | step2 | 🏃♀️ Running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | step2 | ✅ Completed running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | test_logstep_in | ✅ Completed running step1
2024-08-17 20:59:55.f | INFO | RUNNING | test_logstep_in | 🏃♀️ Running step1
2024-08-17 20:59:55.f | INFO | RUNNING | step2 | 🏃♀️ Running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | step2 | ✅ Completed running step2
2024-08-17 20:59:55.f | INFO | RUNNING | step2 | 🏃♀️ Running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | step2 | ✅ Completed running step2
2024-08-17 20:59:55.f | INFO | COMPLETED | test_logstep_in | ✅ Completed running step1
2024-08-17 20:59:55.f | INFO | COMPLETED | test_logstep_in | ✅ Completed running step_a
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
brixy-0.2.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
brixy-0.2.1-py3-none-any.whl
(3.6 kB
view details)
File details
Details for the file brixy-0.2.1.tar.gz.
File metadata
- Download URL: brixy-0.2.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f370386e5bd6814fba63a89b339071a608193be43734f4417e4505354af6a294
|
|
| MD5 |
1f5b5e174535f0fdf44cd45c152b51f0
|
|
| BLAKE2b-256 |
d64b8e1861d42cb786ad3e6064e1be95ac9fa9d5a1796e9c3df9dc249d199126
|
File details
Details for the file brixy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: brixy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7237e8c7ea6569e44a5e863da56060a5acc92b0c0c7999a309dad939a8e75bae
|
|
| MD5 |
d2a3040d66d5c539e3602f6a8df2cec7
|
|
| BLAKE2b-256 |
da73d08ee90a3ccef98ba67764f8d1b9af6f28dd0d6489a26cf042a884e0730f
|