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 ways to configure your project (command-line arguments, environment variables, and config files) with the cli and text 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 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[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 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-0.2.3.tar.gz (81.9 kB view details)

Uploaded Source

Built Distribution

swak-0.2.3-py3-none-any.whl (135.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swak-0.2.3.tar.gz
  • Upload date:
  • Size: 81.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for swak-0.2.3.tar.gz
Algorithm Hash digest
SHA256 38f3cdfc71ed62d776f7967b29c03ec4d15c0807a31fe44e09e203ec3d09459a
MD5 43fee71b97f4398492fdddce4b59a6eb
BLAKE2b-256 85b0fd14d26e612ef854edc96fac4cedda2545d443fe5c4e39817be52b407d6a

See more details on using hashes here.

Provenance

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

Publisher: publish-package.yml on yedivanseven/swak

Attestations:

File details

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

File metadata

  • Download URL: swak-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 135.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for swak-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4543d8b4ec1b16e70b55799993f47b848b6edb9999d528dae39a1a01652b17a
MD5 d6bee5544ff15506f72c6019695ff5c9
BLAKE2b-256 f2f918ad9885a4bcf0ff09fe21409332202e7d658bb27bb12e28e207eab8632f

See more details on using hashes here.

Provenance

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

Publisher: publish-package.yml on yedivanseven/swak

Attestations:

Supported by

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