raikou
High-level Spark helpers built on raikou-core.
PyPI: https://pypi.org/project/raikou/
Repository: https://github.com/eddiethedean/raikou
raikou provides:
- SparkSession helpers (
connect) - a small DataFrame-style facade (
RaikouDataFrame) backed byraikou-core's engine - convenience expression helpers (
col,lit)
Requirements
- Python: 3.10+
- Spark:
pyspark>=3.4,<4(a Spark runtime must be available in your environment)
Install
pip install raikou
Quick start
from raikou import RaikouDataFrame, Schema, col, connect
class Row(Schema):
x: int
y: str
spark = connect(master="local[2]")
sdf = spark.createDataFrame([{"x": 1, "y": "a"}, {"x": 2, "y": "b"}])
df = RaikouDataFrame[Row].from_spark_dataframe(sdf)
out = df.filter(col("x") > 1).select("y").to_dict()
What’s in the box?
connect(...): convenience helper for creating/configuring aSparkSessionSchema: typed row schema for aRaikouDataFrameRaikouDataFrame[T]: a small, typed facade backed by theraikou-coreenginecol(...)/lit(...): expression helpers used withfilter,select, etc.
Development (monorepo)
From the repository root:
make install-editable
make test
make lint
make format
Relationship to raikou-core
raikou depends on raikou-core for the
Spark-backed execution engine and planning/expression layer. If you only need the
engine primitives (e.g. for building another library), you can depend on
raikou-core directly.
License
MIT (see repository LICENSE).
Metadata
Release files for raikou 0.1.0
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 |
|---|---|---|---|---|
| raikou-0.1.0.tar.gz | 5.9 kB | Without provenance | Details for raikou-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raikou-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for raikou-0.1.0-py3-none-any.whl |
Total release size: 11.5 kB
Release files / raikou-0.1.0.tar.gz
| Download URL | raikou-0.1.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
632ac1564f7a128fcfaf5c0a6438e54bd5576231be6a07d93b313ab795b16d92
|
|
BLAKE2b-256 checksum How to use checksums |
8ce86a48af35ae080b62153f460af8825c8b909f535f8095fd3a404cc973f3a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Release files / raikou-0.1.0-py3-none-any.whl
| Download URL | raikou-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bf77366ca591f181fee2160774fd589c4c0965c87db189963931df1b1a753eef
|
|
BLAKE2b-256 checksum How to use checksums |
29e889a8812e86bea875b2e4f0b43bad3f5a4ecce3fb3de3a75e857e3e5200e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.11
|
Security for raikou 0.1.0
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.