No project description provided
Project description
Preemo Worker SDK
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8286a843b613e79a344aab0f570d7fcd71ca8b27b1df92e2697cf72e7d9353a3
|
|
| MD5 |
ccbdf124d8cb58d74aa1e39a14e84a4c
|
|
| BLAKE2b-256 |
884acbcea28c1c91911fda23c823c368a76d1164eaa914b52227fe7de21adfb5
|
File details
Details for the file preemo_worker_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: preemo_worker_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66d44cbcfe252a44e1da1f59191cc926d3e189282733418760c9ae328304473a
|
|
| MD5 |
39912f239201aaa0d7a2771967381f26
|
|
| BLAKE2b-256 |
373ed5a2905174e0fc1762d4c93b8f3d582330c8747f7f183a87475c70c52919
|