Skip to main content

Swiss army knife for functional data-science projects.

Project description

GitHub Pages PyPI

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 cli and io 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.
  • Use the provided pandas and polars building 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 cloud sub-package.
  • 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 type
    pip 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 of swak. You will have to install it yourself, e.g., following these instructions. If you are using pipenv for dependency management, you can also have a look at the Pipfile in the root of the swak repository and taylor it to your needs. Personally, I go
    pipenv sync --categories=cpu
    
    for a CPU-only installation of PyTorch and
    pipenv 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

swak-1.1.2.tar.gz (154.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

swak-1.1.2-py3-none-any.whl (268.1 kB view details)

Uploaded Python 3

File details

Details for the file swak-1.1.2.tar.gz.

File metadata

  • Download URL: swak-1.1.2.tar.gz
  • Upload date:
  • Size: 154.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for swak-1.1.2.tar.gz
Algorithm Hash digest
SHA256 346f6eeb0a8dd997585b77538f1f2d21a543d3edbc2a8341dade1dd07fa0a5c7
MD5 fe645f947ca9e3899294db482ab11ad5
BLAKE2b-256 a634bf3d6116862147ac1006a2612a9a04e932a6358fb1e4b20439baaaf3a389

See more details on using hashes here.

Provenance

The following attestation bundles were made for swak-1.1.2.tar.gz:

Publisher: publish-package.yml on yedivanseven/swak

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file swak-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: swak-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 268.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for swak-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 55c2b2d95577c925f74a7ee9029c9d9669483281adfb78ca7e3fab7e12b13e57
MD5 9aa09e3e0d20fb99168f649a1468be5e
BLAKE2b-256 c95f21d8538eb3394df49e9031dc905dc6103bf12b0e67da7a735fc726bbf117

See more details on using hashes here.

Provenance

The following attestation bundles were made for swak-1.1.2-py3-none-any.whl:

Publisher: publish-package.yml on yedivanseven/swak

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page