Skip to main content

Bitswan is a framework for building automations and pipelines in Jupyter

Project description

Bitswan: A tool for building Pipelines & Automations in Jupyter

You can find example pipelines in the examples directory.

Installation

$ git clone git@github.com:bitswan-space/BitSwan.git
$ cd BitSwan
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -e ".[dev]"

Running pipelines

You can run a pipeline with a simple command:

$ bitswan-cli examples/WebForms/main.ipynb

When developing web endpoints it can be helpful to instruct the pipeline to automatically restart if the source code changes.

$ bitswan-cli examples/WebForms/main.ipynb --watch

Running Tests

You can find examples for automatically testing pipelines in the testing examples directory.

Run tests with the --test flag.

$ bitswan-cli examples/Testing/InspectError/main.ipynb --test

Running tests for pipeline Kafka2KafkaPipeline.

    ┌ Testing event:        b'foo'
    └ Outputs:              [b'FOO'] ✔

All tests passed for Kafka2KafkaPipeline.


Running tests for pipeline auto_pipeline_1.

    ┌ Testing event:        b'{"foo":"aaa"}'
    └ Outputs:              [b'{"foo": "A   A   A"}'] ✔

    ┌ Testing event:        b'{"foo":"aab"}'
    │ Probing after-upper.
    └ Outputs:              [b'{"foo": "B   A   A"}'] ✔

    ┌ Testing event:        b'{"foo":"cab"}'
    └ Outputs:              [b'{"foo": "B   A   C"}'] ✘

You can combine --test with --watch to automatically rerun tests whenever the source files change.

Licence

Bitswan is open-source software, available under BSD 3-Clause License.

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

bitswan-2024.4.1.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

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

bitswan-2024.4.1-py2.py3-none-any.whl (419.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file bitswan-2024.4.1.tar.gz.

File metadata

  • Download URL: bitswan-2024.4.1.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.20

File hashes

Hashes for bitswan-2024.4.1.tar.gz
Algorithm Hash digest
SHA256 34c0171fdfc7e5604bd51b83259e1b7673343391e2229f4c9055f02019c4cd6c
MD5 269115852d08e2cae290b31604a97b1f
BLAKE2b-256 fd688a7c176f4a7af0d615ec284c22da731c1d54c569c34b45a47ad7b8cd1c86

See more details on using hashes here.

File details

Details for the file bitswan-2024.4.1-py2.py3-none-any.whl.

File metadata

  • Download URL: bitswan-2024.4.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 419.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.20

File hashes

Hashes for bitswan-2024.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6235aef68ae0a5ccdb214b07846e01a8881767c224210e524c175c7c984a8958
MD5 3974a443463061a2a22a39df7a2a994d
BLAKE2b-256 eb252a50f501101ecd063335c06f2a6e8baf664b545717490c87d3441145df25

See more details on using hashes here.

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