Skip to main content

Pyspark IOMETE Library

This library is providing a set of utility functions to speed up the development of pyspark applications.

Installation

pip install pyspark-iomete

Utility functions

get_spark_logger

This function is returning a spark logger instance.

As you may know, spark is using log4j as a logging framework. This function is returning a spark logger instance that is using the log4j logger. Standard python logging is not working with pyspark. The following function get the spark logger instance and returns it.

Usage:

from pyspark_iomete.utils import get_spark_logger
from pyspark.sql import SparkSession

spark = SparkSession.builder.getOrCreate()

# spark session and name will be used to create the logger
# both are optional
logger = get_spark_logger(spark=spark, name="my_custom_logger")

# spark session will be retrieved using SparkSession.getActiveSession() and name will be set to the current file name
logger = get_spark_logger()

Test utility functions

table_name_with_random_suffix

This function is returning a table name with a random suffix. This is useful for testing purposes.

Usage:

from pyspark_iomete.test_utils import table_name_with_random_suffix

table_name = table_name_with_random_suffix("my_table")

Metadata

Release files for pyspark-iomete 0.0.3

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

Source distribution (sdist)

Source distribution for pyspark-iomete 0.0.3
File Size Uploaded Provenance
pyspark_iomete-0.0.3.tar.gz 2.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyspark-iomete 0.0.3
File Interpreter ABI Platform
pyspark_iomete-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / pyspark_iomete-0.0.3.tar.gz

Download URL pyspark_iomete-0.0.3.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab58af5d41bea82a97219c0ff8578dd6c84581fd4a8a97a4eff2ab2129a57b00
BLAKE2b-256 checksum
How to use checksums
b8251857521401a105e744100e7417fb79f1d6592b63f7cdfec9c8e06e50f0c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Release files / pyspark_iomete-0.0.3-py3-none-any.whl

Download URL pyspark_iomete-0.0.3-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
410c11953bab712ce696d8f78df80cfedcee048277a4a1769b13c196526d7e14
BLAKE2b-256 checksum
How to use checksums
e00f532da655af96a602449754e6778fc9b72055ca6365894250233696e0a561
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.9

Security for pyspark-iomete 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

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