Origin
This is a fork of the original [sqjobs](https://github.com/igalarzab/sqjobs/)
Installation
Simply use pip to install the last version of sqjobstf
pip install --upgrade sqjobstf
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.
Releasing a new version
See https://packaging.python.org/tutorials/packaging-projects/
In a virtualenv, run pip install ` pip install -r requirements/base.txt `
Create a new build: ` python -m build `
Metadata
Release files for sqjobstf 0.8.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sqjobstf-0.8.6.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sqjobstf-0.8.6-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 44.7 kB
Release files / sqjobstf-0.8.6.tar.gz
| Download URL | sqjobstf-0.8.6.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2a6e66569a9a008d7d505cc7577cdb16b03fd812ca0e2a495a663ab604fd7fd
|
|
BLAKE2b-256 checksum How to use checksums |
3a099a54bc1cfdc985e0d48621c3016d18b21df76b83952b6dcf7dd0e37920a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.17
|
Release files / sqjobstf-0.8.6-py2-none-any.whl
| Download URL | sqjobstf-0.8.6-py2-none-any.whl |
|---|---|
| Size | 27.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
f4932803a1e220b3f806d46d669caf74e30a916c73bcec8197d45b58def8f9a0
|
|
BLAKE2b-256 checksum How to use checksums |
21705f75f6ba0609e9ab2aa0aa0bb6e862298e1323862f8e9f50b44cf1b03d1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/2.7.17
|