Skip to main content

SKA SDP SIP Processing Block Controller

Library and Celery worker image for executing Processing Block workflows within the SDP SIP prototype code. This is implemented as a set of Celery tasks which can be used to asynchronously execute SIP Processing Block workflows on a Processing Block Controller (Celery Worker) instance.

Library installation

pip install skasip-pbc

Starting a containerised PBC instance

For the Processing Block Controller to function, a Redis Database instance must be created, which provides the role of the Celery Broker and Execution Control Configuration Database. Once this is available, a Processing Block Controller (Celery Worker) can be started.

For the Redis Databasem a standard redis container can be started (eg. using the official redis:5.0.1-alpine image). The Processing Block Controller Celery worker can be started using the image skasip/processing_block_controller.

A Docker Compose file (docker-compose.dev.yml) is provided in this folder for starting a Redis instance and a PBC Celery worker. This can be used with the following command:

docker stack deploy -c docker-compose.dev.yml pbc

Typical usage

Note: Requires a Celery Worker, Celery Broker, and a SKA SIP Execution Control Configuration Database instance are running (see above)!

# coding: utf-8
"""Example SIP PBC usage."""
import sip_pbc

# Get the PBC version.
result = sip_pbc.version.delay()
version = result.get(timeout=1)
print(version)

# Execute a PB workflow.
result = sip_pbc.execute_processing_block.delay(pb_id='...')

Metadata

Release files for skasip-pbc 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skasip-pbc 1.3.0
File Size Uploaded Provenance Actions
skasip-pbc-1.3.0.tar.gz 5.3 kB Without provenance Details for skasip-pbc-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for skasip-pbc 1.3.0
File Interpreter ABI Platform Actions
skasip_pbc-1.3.0-py3-none-any.whl Python 3 none any Details for skasip_pbc-1.3.0-py3-none-any.whl

Total release size: 12.1 kB

Release files / skasip-pbc-1.3.0.tar.gz

Download URL skasip-pbc-1.3.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5f580c9c2bdb38106aa0c64b2ad67742fde18568703279e1bfd14938aa951e36
BLAKE2b-256 checksum
How to use checksums
7ca20ad5efca3ef18d1b589c1ca57944efdef41f648188bb25fa898f417eee9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Release files / skasip_pbc-1.3.0-py3-none-any.whl

Download URL skasip_pbc-1.3.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fe43c5cb5401c62d38e97b8bb566239368be2b445e5d1c533e908d82adf7048
BLAKE2b-256 checksum
How to use checksums
11a0d30aacf68082dde767b229391aff12a17d0cc7adc915d8ab2951f915113a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

Security for skasip-pbc 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page