Skip to main content

Common Python tools and utilities for ML work

Project description

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

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

sm_data_ml_utils-1.0.6.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

sm_data_ml_utils-1.0.6-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file sm_data_ml_utils-1.0.6.tar.gz.

File metadata

  • Download URL: sm_data_ml_utils-1.0.6.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.13.5 Darwin/25.3.0

File hashes

Hashes for sm_data_ml_utils-1.0.6.tar.gz
Algorithm Hash digest
SHA256 8b52fea961e4f64ba5ebd266dd95c0de267a640b3b33028925efb756c1ee3ed8
MD5 596f98176f70f4ba8fcef3043d6c3e42
BLAKE2b-256 2cb55c5d664238215bd0d3d4e56ffda757cdd915c0c70e9bae2feb334da5dc2f

See more details on using hashes here.

File details

Details for the file sm_data_ml_utils-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: sm_data_ml_utils-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.13.5 Darwin/25.3.0

File hashes

Hashes for sm_data_ml_utils-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 790618dce71ceb20d8ef3253bc5aba15ea735dfbc164f540069617f5ca3ad883
MD5 405e3afa254ab119dddd44ed85417f0a
BLAKE2b-256 33315e055ba18e9faceaa927a09bb3ee8f4800ec13f4c6a6efc76d32f5f3247c

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