Skip to main content

No project description provided

Project description

Preemo Worker SDK

PyPi Version License

This subrepo contains the python implementation of the Preemo Worker SDK.

Installation

pip install preemo-worker-sdk

Usage

Register

In order to register a function with Preemo workers, you can decorate your functions as follows:

from preemo.worker import register

@register(name="some_name", namespace="dev")
def do_something():
    ...

Both parameters, name and namespace, are optional. If the name isn't specified, it will default to the name of the function. If the namespace isn't specified, it will default to a global namespace.

@register
def do_something():
    # registers with name do_something in the global namespace
    ...

Contributing

Contribution guidelines for this project

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

preemo_worker_sdk-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

preemo_worker_sdk-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file preemo_worker_sdk-0.1.0.tar.gz.

File metadata

  • Download URL: preemo_worker_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.2

File hashes

Hashes for preemo_worker_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a4935f7624bb4fdfd5cb03ece8be8b40358dca3812ef3eb5193cc825c6695b0c
MD5 a5801566850033589a3525194cd3df40
BLAKE2b-256 f476bd00f2ad8d0e1d802e4057ec2b42d7315af0b5cf3d8e309a2581b30c9bf9

See more details on using hashes here.

File details

Details for the file preemo_worker_sdk-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for preemo_worker_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd143af76fa412a6365e70516164bff1ea8976a9120424a1aa203e993def4283
MD5 e3df3e4f8aaa9126328a804fc1990c40
BLAKE2b-256 9083373edc3adf66163aa40791c0040ee44b0db44623f97aa2b15ac6fb492ba2

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