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.1.tar.gz (7.2 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.1-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preemo_worker_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 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.1.tar.gz
Algorithm Hash digest
SHA256 8286a843b613e79a344aab0f570d7fcd71ca8b27b1df92e2697cf72e7d9353a3
MD5 ccbdf124d8cb58d74aa1e39a14e84a4c
BLAKE2b-256 884acbcea28c1c91911fda23c823c368a76d1164eaa914b52227fe7de21adfb5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for preemo_worker_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66d44cbcfe252a44e1da1f59191cc926d3e189282733418760c9ae328304473a
MD5 39912f239201aaa0d7a2771967381f26
BLAKE2b-256 373ed5a2905174e0fc1762d4c93b8f3d582330c8747f7f183a87475c70c52919

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