Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Command Line Tool Utilities

Project Description
  • One line argument parsing function and decorator
  • Simple configuration loader
  • Stream utility with some logging
  • CSV reader/writer unicode support for Python 2.x (in official document)
  • Apache accesslog parser


  • Python 2.7 or 3.x

Python 2.4, 2.5, 2.6 are not supported.


Use pip via PyPI.

pip install clitool


At first, create your script file using module script, clitool.cli.

$ python -m clitool.cli -o

This file can parse basic command line options and arguments.

$ ./ --help
usage: [-h] [-c FILE] [-o FILE] [--basedir BASEDIR]
                      [--input-encoding INPUT_ENCODING]
                      [--output-encoding OUTPUT_ENCODING]
                      [--processes PROCESSES] [--chunksize CHUNKSIZE]
                      [-v | -q]
                      [FILE [FILE ...]]

positional arguments:

optional arguments:
  -h, --help            show this help message and exit
  -c FILE, --config FILE
                        configuration file
  -o FILE, --output FILE
                        output file
  --basedir BASEDIR     base directory
  --input-encoding INPUT_ENCODING
                        encoding of input source
  --output-encoding OUTPUT_ENCODING
                        encoding of output distination
  --processes PROCESSES
                        count of processes
  --chunksize CHUNKSIZE
                        a number of chunks submitted to the process pool
  -v, --verbose         set logging to verbose mode
  -q, --quiet           set logging to quiet mode

Edit this script on your own :D


Example scripts exist in git repository.

  • read csv data and import database via ‘SQLAlchemy’.
  • read csv data and dump them by GEXF format via ‘NetworkX’.
  • read csv data and dump them by JSON format.
  • read csv data and dump them by KML format via ‘simplekml’.
  • parse Apache access log and create report.
  • parse Apache access log and analyze query parameters.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
clitool-0.4.1.tar.gz (14.6 kB) Copy SHA256 Checksum SHA256 Source Jul 12, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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