Swiss army knife for functional data-science projects.
Project description
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 ways to configure your project (command-line arguments,
environment variables, and config files) with the
cli
andtext
packages, 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
funcflow
to compose them into arbitrarily complex workflows, that are still easy to maintain and to expand. - Quickly set up projects on Google BigQuery and Google Cloud Storage, and
efficiently download lots of data in parallel with
cloud.gcp
. - Build powerful neural-network architectures from the elements in
pt
and 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
swak
is 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[cloud]
- 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 usingpipenv
for dependency management, you can also have a look at the Pipfile in the root of theswak
repository 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file swak-0.2.8.tar.gz
.
File metadata
- Download URL: swak-0.2.8.tar.gz
- Upload date:
- Size: 83.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 117e85df852383872ec9170c2e727fdbfc19a3e765e326bf84d2a2010d4ca61a |
|
MD5 | ded744d454d4d3d17c967973a09fca4a |
|
BLAKE2b-256 | 4ee9b5971fcbc305c52c4469b94c5c7830d0de36cb2349f3a6a4b4520a50c739 |
Provenance
The following attestation bundles were made for swak-0.2.8.tar.gz
:
Publisher:
publish-package.yml
on yedivanseven/swak
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
swak-0.2.8.tar.gz
- Subject digest:
117e85df852383872ec9170c2e727fdbfc19a3e765e326bf84d2a2010d4ca61a
- Sigstore transparency entry: 149357217
- Sigstore integration time:
- Predicate type:
File details
Details for the file swak-0.2.8-py3-none-any.whl
.
File metadata
- Download URL: swak-0.2.8-py3-none-any.whl
- Upload date:
- Size: 137.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f228c945347fd21fb3df715dc8b4f351a2ed261022b7f33f01544c6489eea46 |
|
MD5 | 3ca9da115b4a7efb7b86104eb0f1d8bf |
|
BLAKE2b-256 | 77db95de65a92a91e4bab2dd27211e26f70f5cb0d6464a7c05b9dfe1f669b9df |
Provenance
The following attestation bundles were made for swak-0.2.8-py3-none-any.whl
:
Publisher:
publish-package.yml
on yedivanseven/swak
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
swak-0.2.8-py3-none-any.whl
- Subject digest:
5f228c945347fd21fb3df715dc8b4f351a2ed261022b7f33f01544c6489eea46
- Sigstore transparency entry: 149357218
- Sigstore integration time:
- Predicate type: