Skip to main content

Bitswan is a framework for building automations and pipelines in Jupyter

Project description

Docs

Bitswan: A tool for building Pipelines & Automations in Jupyter

You can find example pipelines in the examples directory.

Installation

This library is part of the bitswan suite which is managed by the bitswan workspace cli. You must first install the bitswan workspaces cli before installing and using the bitswan notebooks cli.

$ git clone git@github.com:bitswan-space/BitSwan.git
$ cd BitSwan
$ curl -LsSf https://astral.sh/uv/install.sh | sh
$ uv venv
$ source .venv/bin/activate
$ uv pip install -e ".[dev]"

Running pipelines

You can run a pipeline with a simple command:

$ bitswan notebook 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 notebook 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 notebook 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-2026.3.25.48.tar.gz (315.2 kB view details)

Uploaded Source

Built Distribution

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

bitswan-2026.3.25.48-py2.py3-none-any.whl (453.4 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: bitswan-2026.3.25.48.tar.gz
  • Upload date:
  • Size: 315.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for bitswan-2026.3.25.48.tar.gz
Algorithm Hash digest
SHA256 68b442e10a51c8ceeb97c4a69638b9c197d43a1b110be84f854307d42755fa01
MD5 1a40f5bd9e2fee202a98e35c6257ad1a
BLAKE2b-256 0994c2c641799a7a574a063025608e227e903287ff8a3d2492962b53ee80188c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bitswan-2026.3.25.48-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7451df43d987146ab1812fe6cc4e78daad0cfa1d626841f5d0e2d174f11feb1
MD5 65d8c4c4b8319fea658d138f276be31b
BLAKE2b-256 f9aed6e5bac9e5fc64b4f935d3a5eaa2c3de7370b32228c5c3cd8c20389a5b04

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