This release is a pre-release and may not be stable for production use.
impulsare/distributer
Overview
A queue manager based on rq and made for impulsare. It helps to : - add items to a queue - listen for a queue via a cli listener
See tests/static/ for examples of configuration.
Installation / Usage
To install use pip:
$ pip install --upgrade impulsare-distributer
Configuration
You need to create/add to your configuration file:
distributer:
# Required, redis address
host: 192.168.108.3
# Optional
port: 6379
# If a component needs to send data to a queue,
# define here where what is the queue's name (next one)
# used by impulsare-ruler to send to writer for example (ruler: {queue: writer})
testqueue:
queue: my_test_queue
Listener
This is a simple implementation of rq's worker. If you need to listen for a queue, no need to have a config file, run in cli:
$ queue-listener --host redis --queue my_test_queue
To be able to see the next example working, keep that opened in a separate window.
Queue Usage
To use the queue manager, and send jobs to be processed:
from impulsare_distributer import QueueManager
from mymodule import my_method
queue = QueueManager(config_file='tests/static/config_valid.yml', listener='testqueue')
queue.add(method=my_method, item='Hello World', job='test')
Development & Tests
$ pip install -r requirements.txt
$ pip install -r requirements-dev.txt
$ py.test
If you run your tests with a different redis server than localhost:
$ REDIS=redis py.test
Metadata
Release files for impulsare-distributer 1.0b4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| impulsare-distributer-1.0b4.tar.gz | 4.0 kB | Without provenance | Details for impulsare-distributer-1.0b4.tar.gz |
Release files / impulsare-distributer-1.0b4.tar.gz
| Download URL | impulsare-distributer-1.0b4.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5b8d70de8c992c6f3aca17132f69d3d42a59b825bc86fdb59d8462a9f3b8416
|
|
BLAKE2b-256 checksum How to use checksums |
24f1d3110c61d789d4686a61e7d27aae173c5dbbda020616318ad52aebaadfbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for impulsare-distributer 1.0b4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.