Socket
Socket
Sign inDemoInstall

taurus-publisher

Package Overview
Dependencies
0
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    taurus-publisher

Python library using LUA script to send for redis a job for Taurus queue


Maintainers
1

Readme

Python Taurus Queue Publisher

Latest Version PRs Welcome

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

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc