Skip to main content

Helpers for developing solution on Databricks and PySpark

Project description

PyPI Latest Release Python package

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brixy-0.2.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

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

Hashes for brixy-0.2.1.tar.gz
Algorithm Hash digest
SHA256 f370386e5bd6814fba63a89b339071a608193be43734f4417e4505354af6a294
MD5 1f5b5e174535f0fdf44cd45c152b51f0
BLAKE2b-256 d64b8e1861d42cb786ad3e6064e1be95ac9fa9d5a1796e9c3df9dc249d199126

See more details on using hashes here.

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

Hashes for brixy-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7237e8c7ea6569e44a5e863da56060a5acc92b0c0c7999a309dad939a8e75bae
MD5 d2a3040d66d5c539e3602f6a8df2cec7
BLAKE2b-256 da73d08ee90a3ccef98ba67764f8d1b9af6f28dd0d6489a26cf042a884e0730f

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