skip to navigation
skip to content

Not Logged In

python-borium 0.1.0

Simple Get/Put API for the Borium Queue

Latest Version: 0.1.1

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.

 
File Type Py Version Uploaded on Size
python-borium-0.1.0.tar.gz (md5) Source 2014-04-23 2KB
  • Downloads (All Versions):
  • 5 downloads in the last day
  • 39 downloads in the last week
  • 125 downloads in the last month
  • Author: Ben Beltran
  • Home Page: http://pypi.python.org/pypi/python-borium
  • License:
    The MIT License (MIT)
    
    Copyright (c) 2014 Ben Beltran
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:
    
    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.
    
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
  • Package Index Owner: benbeltran
  • DOAP record: python-borium-0.1.0.xml