tio_spark
tio_spark is the Spark family for Tiozin: a set of Tiozin plugins that run data jobs on Apache Spark, in batch or streaming mode. See The Family Model for how families fit into Tiozin.
One-Minute Example
pip install "tio_spark[pyspark35]"
This job loads the text of Hamlet into a data lake. SparkRunner runs it, SparkFileInput reads the text, and SparkFileOutput writes it.
kind: LinearJob
name: ingestion_hamlet_job
owner: literature@tiozin.com
maintainer: tiozin
cost_center: tio_scrooge
org: tiozin
region: latam
domain: literature
subdomain: classics
product: shakespeare
model: hamlet
layer: raw
runner:
kind: SparkRunner
inputs:
- kind: SparkFileInput
name: load_hamlet
path: examples/data/{{product}}/{{model}}.txt
format: text
outputs:
- kind: SparkFileOutput
name: save_hamlet
path: .output/lake-{{domain}}-{{layer}}/{{product}}/{{model}}/date={{today}}
Run it:
tiozin run examples/jobs/oneminute.yaml
For more details, see the Installation guide or the Getting Started guide.
Plugins
- SparkRunner: runs a job on a
SparkSessionthat it creates during setup and stops during teardown. - SparkIcebergRunner: a SparkRunner pre-configured for Apache Iceberg.
- SparkFileInput: reads files into a Spark
DataFrame. - SparkTableInput: reads a catalog table, or the result of a SQL query, into a Spark
DataFrame. - SparkDeduplicateTransform: removes duplicate rows, keeping one row per key.
- SparkSchemaInferenceTransform: infers the schema of fields that hold JSON strings and converts them to Spark types.
- SparkSqlTransform: runs a Spark SQL query against the views registered by previous steps.
- SparkWordCountTransform: counts word occurrences in a text column. The Shakespeare example jobs use it.
- SparkFileOutput: writes a Spark
DataFrameto files. - SparkTableOutput: writes a Spark
DataFrameto an Apache Iceberg or Delta Lake table registered in a catalog.
Documentation
Getting Started
Plugins
Examples
Writing Custom Steps
Learn More
License
This project is licensed under the Mozilla Public License 2.0.
Metadata
Release files for tio_spark 0.1.3
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 |
|---|---|---|---|---|
| tio_spark-0.1.3.tar.gz | 31.4 kB | Without provenance | Details for tio_spark-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tio_spark-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for tio_spark-0.1.3-py3-none-any.whl |
Total release size: 72.2 kB
Release files / tio_spark-0.1.3.tar.gz
| Download URL | tio_spark-0.1.3.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4e67659afef4e86820cd881e09d617914c5449c912522af87c1a6217c8b3fe47
|
|
BLAKE2b-256 checksum How to use checksums |
48b1840b12caaddf958dcccc629ef2c23062098e367e4b915098d4602ef2c66b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tio_spark-0.1.3-py3-none-any.whl
| Download URL | tio_spark-0.1.3-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
81c16081fa1330ef9b9f273eacadbc5fc4c823c42c212846db42caf0e2726cce
|
|
BLAKE2b-256 checksum How to use checksums |
3a66fed20314efe4405f29ad567c282ea31da2b2b88394e1d22150ab507242b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tio_spark 0.1.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.