Simple Get/Put API for the Borium Queue
Project description
Borium provides an API for the borium queue. It exposes simple get/set methods to grab and push jobs.
Borium is a simple queue system written by Kazuyoshi Tlacaelel. To learn more, visit the project repository.
Usage
import borium response = borium.put(job_type, config) # sends the job to the queue job = borium.get(job_type) # fetches a job
In both examples, job_type is a string that specifies the job that is to be enqueued. The config, though dependent on the job itself, is usually a JSON object containing the configuration needed.
All requests to the queue will return an object containing a key called status. In the case of get this can be: nothing, unparseable, error or found. In the case of put this can be: error or stored.
If the job was found, the object will also include the key “job” which includes the config string passed.
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
File details
Details for the file python-borium-0.1.1.tar.gz
.
File metadata
- Download URL: python-borium-0.1.1.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
f1541416228c6078b49271908b28ef3fc41363837b68558c8c6e870d4795fb63
|
|
MD5 |
cca39932a130b06fbdf10576df0466fa
|
|
BLAKE2b-256 |
1b3c1a867aee4ea4160e6044ed776f4bdca26ab8ad49e675a2424ad50df57da7
|