Python library using LUA script to send for redis a job for Taurus queue
Project description
Python Taurus Queue Publisher
Python library using LUA script to send for redis a job for Taurus queue
Installation
Release 1.0.2 Requires Python 3.6.9
The recommended way to install is through Pip.
pip3 install taurus-publisher
Usage
Publishing
from taurus_publisher.publisher import Publisher
import asyncio
async def test_publish():
publisher = Publisher()
data = '{"python":1}'
job_id = await publisher.add_job(
queue="python",
data=data,
opts={},
name="process"
)
print(f"Job added with ID: {job_id}")
if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(test_publish())
loop.close()
Development
Want to contribute? Great!
The project using a simple code. Make a change in your file and be careful with your updates! Any new code will only be accepted with all validations.
Not Empty Foundation - Free codes, full minds
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
taurus_publisher-1.0.2.tar.gz
(15.9 kB
view hashes)
Built Distribution
Close
Hashes for taurus_publisher-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79866b85d4296622973712192b173e035ae5cd249be2c8d5018058c18fe8ca90 |
|
MD5 | 498cb8f72f5b7c7b4aa49662427ec54f |
|
BLAKE2b-256 | b3f6b7fe5af9116ec920048fb4f48d0c91e8f026b0a0a0ff766aa76ee206ab5e |