This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

This small library provide an easy way to run some tasks in batch and track progress on the CLI.

An example of output you can get is the following:

[ 1/7 ] Put oil in the pan
[ ... ] ...
[ 2/7 ] Turn fire on
[ ... ] ...
[ 3/7 ] Break the egg
[ ... ] ...
[ 4/7 ] Put the egg in the pan
[ ... ] ...
[ 5/7 ] Wait the egg is cooked
[ ... ] ...
[ 6/7 ] Put the egg in the dish
[ ... ] ...
[ 7/7 ] Add salt to the egg and eat it!
[ ... ] ...

The module provide an api to define tasks and add them to a task engine:

cli = SimpleCli()
engine = TaskEngine(cli)

engine.addTask(Print("Put oil in the pan"))
engine.addTask(Print("Turn fire on"))
engine.addTask(Print("Break the egg"))
engine.addTask(Print("Put the egg in the pan"))
engine.addTask(Print("Wait the egg is cooked"))
engine.addTask(Print("Put the egg in the dish"))
engine.addTask(Print("Add salt to the egg and eat it!"))

engine.run()

In the example above Print is a class extending Task (defined in the module):

class Print(Task):
   "Simple Task: do nothing more than printing ..."

   def run(self, cli):
       cli.newMessage

In case a task fails the task engine stops immediately and return from the method run.

Release History

Release History

0.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
batchcli-0.2.tar.gz (5.4 kB) Copy SHA256 Checksum SHA256 Source Jan 4, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting