Skip to main content

The official SDK for developing scystream compute blocks

Project description

scystream-sdk

Installation

You can install the package via pip once it's published:

pip install scystream-sdk

Introduction

One of the central concepts of scystream are the so-called Compute Blocks.

A Compute Block describes an independent programm, that acts as some kind of worker which will be scheduled using the scystream-core application. This worker executes a task (e.g. a NLP task, a crawling task).

This SDK aims to provide helper functions and all other requirements you need to implement a custom Compute Block on your own.

Each worker can have multiple entrypoints, each aiming to solve one task. These entrypoints can be configured from the outside using the Settings. These are basically ENV-Variables, which will be parsed & validated using pydantic.

Find the whole Documentation here!

Development of the SDK

Installation

  1. Create a venv and use it
python3 -m venv .venv
source .venv/bin/activate
  1. Install the package within the venv

[!NOTE] This will also install all the install_requirements from the setup.py

pip install -e .
  1. Install the dev dependencies
pip install -e ".[dev]"
  1. Develop!

Tests

To run all the tests run the following command:

python3 -m unittest discover -s tests

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

scystream_sdk-1.2.2.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

scystream_sdk-1.2.2-py3-none-any.whl (1.0 MB view details)

Uploaded Python 3

File details

Details for the file scystream_sdk-1.2.2.tar.gz.

File metadata

  • Download URL: scystream_sdk-1.2.2.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for scystream_sdk-1.2.2.tar.gz
Algorithm Hash digest
SHA256 ef514b26c4a0c01e69b02fe813010b6e27c93909e3e4901f9fe1dbddff97f79f
MD5 11b44640f91b700276b8e3e49d6e5300
BLAKE2b-256 3f48a6546d0e307c8562a614685e5f91717566cb9aba7b8d50253e705375c4bb

See more details on using hashes here.

File details

Details for the file scystream_sdk-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: scystream_sdk-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 1.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.6

File hashes

Hashes for scystream_sdk-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f9cb9c6014897c7c734f33869f74d276b78d9c13d1f335b618d20cd3a397b716
MD5 4080aeb36b9636f5ccec1e9c40170426
BLAKE2b-256 6f6ef9f81057fd3f7451f8026de637aec153157f5494356d00f55b404c9dcd6a

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