pyhouse
This is a port of Lighthouse, a library written in Scala, that facilitates the creation of data pipelines that are based on Apache Spark. It also comes with some related convenience functions, like integrations to the AWS parameter store.
This port is targeted at Python and PySpark. It is not an exact port of the Scala code: we add what we need as we go along.
Usage
One of this library’s main usages is to build a class-based data catalog, that supports chaining of sources. For example, if you had a dataset in a text file that needed to be transformed (clean, derive some statistic, …) then you could write this as such:
from pyhouse.datalake.file_system_data_link import FileSystemDataLink
link = FileSystemDataLink(
environment="dev",
session = get_spark(),
path = "s3://bucket-foo/file-bar.csv",
format="csv",
savemode="errorifexists",
partitioned_by=("some-key", "another-key"),
options={"header": True, "sep": "\t"}
)
link.read().groupBy("client").count().show()
The advantage of such data links becomes clear when there are multiple of them that are combined in a module (the “catalog”): there would be one source of truth that many scripts can refer to. Hardcoded paths scattered across scripts would be a thing of the past.
Metadata
Release files for pyhouse 0.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 | |
|---|---|---|---|---|
| pyhouse-0.0.13.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyhouse-0.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.0 kB
Release files / pyhouse-0.0.13.tar.gz
| Download URL | pyhouse-0.0.13.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b7d420353dc2877624f924b1deed8786404a84de2abfcf0cb2962cc357b4cbaa
|
|
BLAKE2b-256 checksum How to use checksums |
884656dce04820a12aa99c68caf6e2ede6b8c02995b33e512f6c962ea12b2eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
|
Release files / pyhouse-0.0.13-py3-none-any.whl
| Download URL | pyhouse-0.0.13-py3-none-any.whl |
|---|---|
| Size | 14.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad737c1809ba38f0eb4fec92c04ef7bd7f7045bd0df541dc7246fe3873d64a8f
|
|
BLAKE2b-256 checksum How to use checksums |
c54acaebc293d14f38a5f6b6d8e1802f154defb483a5c1cc5a587db885859206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6
|
Security for pyhouse 0.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.