Skip to main content

data-ml-utils

A utility python package that covers the common libraries we use

Installation

This is an open source library hosted on pypi. Run the following command to install the library.

pip install data-ml-utils --upgrade

Documentation

Head over to https://data-ml-utils.readthedocs.io/en/latest/index.html# to read our library documentation

Feature

Pyathena client initialisation

Almost one liner

import os
from data_ml_utils.pyathena_client.client import PyAthenaClient

os.environ["AWS_ACCESS_KEY_ID"] = "xxx"
os.environ["AWS_SECRET_ACCESS_KEY"] = "xxx" # pragma: allowlist secret
os.environ["S3_BUCKET"] = "xxx"

pyathena_client = PyAthenaClient()

Pyathena client initialisation

Pyathena query

Almost one liner

query = """
    SELECT
        *
    FROM
        dev.example_pyathena_client_table
    LIMIT 10
"""

df_raw = pyathena_client.query_as_pandas(final_query=query)

Pyathena query

MLflow utils

Visit link

More to Come

  • You suggest, raise a feature request issue and we will review!

Tutorials

Pyathena

There is a jupyter notebook to show how to use the package utility package for pyathena: notebook

MLflow utils

There is a jupyter notebook to show how to use the package utility package for mlflow_databricks: notebook

Metadata

Release files for sm_data_ml_utils 1.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sm_data_ml_utils 1.0.9
File Size Uploaded
sm_data_ml_utils-1.0.9.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sm_data_ml_utils 1.0.9
File Interpreter ABI Platform
sm_data_ml_utils-1.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 33.2 kB

Release files / sm_data_ml_utils-1.0.9.tar.gz

Download URL sm_data_ml_utils-1.0.9.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e78e6579ca7d6c29e49ad2cc72e6b779132a8d4596bd0d982551f1c68df7ed1d
BLAKE2b-256 checksum
How to use checksums
9001a48a6d8b53a232e2f8bb44039976b0628aa1e62bb1b18c9bf8e6e67bc89c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.13.5 Darwin/25.5.0

Release files / sm_data_ml_utils-1.0.9-py3-none-any.whl

Download URL sm_data_ml_utils-1.0.9-py3-none-any.whl
Size 17.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7056f91e667dfada2748beafcd27d29325cfa9b0f8bdfbe126bc09f57113f66e
BLAKE2b-256 checksum
How to use checksums
202559586f6e0d35c512077999372c40ed2fbe7c954bf91c8435b49785ed4551
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.13.5 Darwin/25.5.0

Release history Release notifications | RSS feed

1.0.11

2 release files

1.0.10

2 release files

This release

1.0.9 This release

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page