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 query
Almost one liner
query = """
SELECT
*
FROM
dev.example_pyathena_client_table
LIMIT 10
"""
df_raw = pyathena_client.query_as_pandas(final_query=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.13
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sm_data_ml_utils-1.0.13.tar.gz | 15.5 kB | Without provenance | Details for sm_data_ml_utils-1.0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sm_data_ml_utils-1.0.13-py3-none-any.whl | Python 3 | none | any | Details for sm_data_ml_utils-1.0.13-py3-none-any.whl |
Total release size: 33.2 kB
Release files / sm_data_ml_utils-1.0.13.tar.gz
| Download URL | sm_data_ml_utils-1.0.13.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9333fa158dbaac108c7f32a04d4cde113f3c9ebf41efbd1aa3e56bf8785d200
|
|
BLAKE2b-256 checksum How to use checksums |
7d73a4ed4bfafdbe319ead71be7679ebd7483d8ff582871745cc5998b4bfc6fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.13.5 Darwin/25.6.0
|
Release files / sm_data_ml_utils-1.0.13-py3-none-any.whl
| Download URL | sm_data_ml_utils-1.0.13-py3-none-any.whl |
|---|---|
| Size | 17.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e17c7fcc3ed2732778ae0ef6e99b883fda747d6fe73a5843e36d95c51ff6c25a
|
|
BLAKE2b-256 checksum How to use checksums |
ff40c8ea85084caf97bfcc6630fd73a675f102082c0bde99bc367c7e0e4abd72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.13.5 Darwin/25.6.0
|
Security for sm_data_ml_utils 1.0.13
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.