swak
Swiss army knife for functional data-science projects.
Introduction
This package is a collection of small, modular, and composable building blocks implementing frequently occurring operations in typical data-science applications. In abstracting away boiler-plate code, it thus saves time and effort.
- Consolidate all the ways to configure your project (command-line arguments,
environment variables, and config files) with the
cliandiopackages, respectively. - Wrap the project config into a versatile
jsonobject. - Focus on writing small, configurable, modular, reusable, and testable
building blocks. Then use the flow controls in
funcflowto compose them into arbitrarily complex workflows, that are still easy to maintain and to expand. - Use the provided
pandasandpolarsbuilding blocks to get you started. - Quickly set up projects on Google BigQuery and Google Cloud as well as AWS object Storage, and
efficiently download lots of data in parallel with the
cloudsub-package. - Build powerful neural-network architectures from the elements in
ptand train your deep-learning models with early stopping and checkpointing. From feature embedding, over feature importance, to repeated residual blocks, a broad variety of options is available. - And much more ...
Installation
- Create a new virtual environment running at least
python 3.12. - The easiest way of installing
swakis from the python package index PyPI, where it is hosted. Simply typepip install swak
or treat it like any other python package in your dependency management. - If you need support for interacting with the Google Cloud Project,
in particular Google BigQuery and Google Cloud Storage, install
extra dependencies with:
pip install swak[gcp]
- Likewise, If you need support for interacting with Amazon AWS,
in particular with S3, install extra dependencies with:
pip install swak[aws]
- In order to use the subpackage
swak.pt, you need to have PyTorch installed. Because there is no way of knowing whether you want to run it on CPU only or also on GPU and, if so, which version of CUDA (or ROC) you have installed on your machine and how, it is not an explicit dependency ofswak. You will have to install it yourself, e.g., following these instructions. If you are usingpipenvfor dependency management, you can also have a look at the Pipfile in the root of theswakrepository and taylor it to your needs. Personally, I gopipenv sync --categories=cpu
for a CPU-only installation of PyTorch andpipenv sync --categories=cuda
if I want GPU support.
Usage
Try making a new repository using the swak-template as a, well, template.
Documentation
The API documentation to swak is hosted on GitHub Pages.
Metadata
Release files for swak 1.2.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 | |
|---|---|---|---|---|
| swak-1.2.0.tar.gz | 153.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swak-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 421.3 kB
Release files / swak-1.2.0.tar.gz
| Download URL | swak-1.2.0.tar.gz |
|---|---|
| Size | 153.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
afcb19c48f4e14d31346cfb0ecf93d6bb71a2ce78b4ab5923ff2fea24f813e18
|
|
BLAKE2b-256 checksum How to use checksums |
97cd09dd449a328f7e213827aee6bb0433a3555dc8a516ec6a7c5943c4c4b98d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logRelease files / swak-1.2.0-py3-none-any.whl
| Download URL | swak-1.2.0-py3-none-any.whl |
|---|---|
| Size | 267.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ed4a1f905433e9bac0e1574f91733686486f6b47ee8e77523b049e622bbc8a2
|
|
BLAKE2b-256 checksum How to use checksums |
ae61e4f0c036c2a580a3c2141b6834ba62da3adb8ce77a49a2b0747412ddb1d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logSecurity for swak 1.2.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for swak-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 13, 2026.
Transparency logA 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.