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.2.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.2-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: preemo_worker_sdk-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 9f6df805e1375faa36c2a87e449cfd57c6dba28be11c44bd5422a3f0cdf009f8
MD5 fc7789e51852f04a01d8eba6f78bf2f0
BLAKE2b-256 5be1d48c699870b2ac333c149884363639a757d08afaab3672decc418bed5627

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for preemo_worker_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 52f6e4ce0d01bf170ad774f8e26195caaeda550a894d33cdce018f34110e7bd5
MD5 3a243a42914469d6c09ad8679274a17a
BLAKE2b-256 c98f9ba93be764b11a63f4bffecc954daa33d0966553653cbdf94ff09cfa879b

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