Installation
Simply use pip to install the last version of sqjobs
pip install --upgrade sqjobs
Getting started
First you have to create jobs. A job is simply a class that inherits from Job.
from sqjobs import Job
class Adder(Job):
default_queue_name = 'queue_name'
def run(self, num1, num2):
return num1 + num2
Then, you can launch the job creating a new broker.
from sqjobs import create_sqs_broker
broker = create_sqs_broker(access_key='ak', secret_key='sk')
broker.add_job(AdderJob, 1, 2, queue_name='other_queue_name')
Documentation
Check out sqjobs’s documentation for further information.
Metadata
Release files for sqjobs 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sqjobs-0.7.1.tar.gz | 16.9 kB | Without provenance | Details |
Release files / sqjobs-0.7.1.tar.gz
| Download URL | sqjobs-0.7.1.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
637605e028e953cc31dd2e3dd64388bf213305b491c4128457543a35da6a346b
|
|
BLAKE2b-256 checksum How to use checksums |
020f5212d33822911470e61c6b755e42e1d259d83b4cd8eeee499c3c5c2a8b1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sqjobs 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.