Skip to main content

Simple Queue Jobs TF Fork

Project description

Build Status Coverage Status

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 pip install twine `

Create a new build: ` python -m build `

Publish the new release - you will need the credentials for accessing pypi.org ` twine upload dist/* `

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

sqjobstf-0.8.7.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqjobstf-0.8.7-py2-none-any.whl (27.8 kB view details)

Uploaded Python 2

File details

Details for the file sqjobstf-0.8.7.tar.gz.

File metadata

  • Download URL: sqjobstf-0.8.7.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for sqjobstf-0.8.7.tar.gz
Algorithm Hash digest
SHA256 3765dbc5ad15adc8fd423fc44542f6febaabe1b4bf35e0cf18578b36c2b8d1ec
MD5 066bcd37e65c99b869689330dfe1afc1
BLAKE2b-256 1b36e32b37f98715ebdf2294fee5f795abede5219bb1566438fc3d0ce6914804

See more details on using hashes here.

File details

Details for the file sqjobstf-0.8.7-py2-none-any.whl.

File metadata

  • Download URL: sqjobstf-0.8.7-py2-none-any.whl
  • Upload date:
  • Size: 27.8 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.6.9

File hashes

Hashes for sqjobstf-0.8.7-py2-none-any.whl
Algorithm Hash digest
SHA256 7e63ad7000b50f7e3986c36e625629a6d6d35861a7ca8581897b06fc5b7eb91a
MD5 d04f06943b895c8c9082915bf922f970
BLAKE2b-256 d9ca2edc8851815ba0dc1b9b55040a1dd822145287b21a65a7bb36ceec380c7e

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