Skip to main content

wijisqs

Codacy Badge CircleCI codecov Code style: black

wiji is an asyncio distributed task processor/queue.

wijisqs on the other hand, is an AWS SQS broker for wiji

Installation

pip install wijisqs

Usage

1. As a library

import os
import wiji
import wijisqs
import asyncio

broker = wijisqs.SqsBroker(
                aws_region_name="aws_region_name",
                aws_access_key_id=os.environ.get("aws_access_key_id"),
                aws_secret_access_key=os.environ.get("aws_secret_access_key"),
            )

class AdderTask(wiji.task.Task):
    the_broker = broker
    queue_name = "AdderTaskQueue1"

    async def run(self, a, b):
        result = a + b
        print("\nresult: {0}\n".format(result))
        return result

# queue some tasks
myAdderTask = AdderTask()
myAdderTask.synchronous_delay(a=4, b=37)
myAdderTask.synchronous_delay(a=67, b=847)

# run the workers
worker = wiji.Worker(the_task=myAdderTask)
asyncio.run(worker.consume_tasks())

For extended documentation, see the wiji documentation

Metadata

Release files for wijisqs 0.4.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wijisqs 0.4.3
File Size Uploaded
wijisqs-0.4.3.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wijisqs 0.4.3
File Interpreter ABI Platform
wijisqs-0.4.3-py3-none-any.whl Python 3 none any Details

Total release size: 27.2 kB

Release files / wijisqs-0.4.3.tar.gz

Download URL wijisqs-0.4.3.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ee67b8278e81a19e6f4871331df336429dc07b46158648caae8f84cc95a4d29b
BLAKE2b-256 checksum
How to use checksums
d1f2a3460c724d1f30630ca969904323d1d04f1b2429f72a1aa00efb3614146a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / wijisqs-0.4.3-py3-none-any.whl

Download URL wijisqs-0.4.3-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4e2aff6f33af58b99aaec7aa0de43115bd3df9fa613ae14d12d499fbeb42b9d0
BLAKE2b-256 checksum
How to use checksums
285d75ffacc0a2c54935300eaa6f8d3fbf2f92a6b6e36375021d9791eba0cff9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page