This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!
Project Description

IOTk is a set of functions that make it easy to display output and get input from the command line.

Input Functions

ask_string
Gets a string value from the user.
ask_int
Asks the user for a value and makes sure that it’s an integer.
ask_yes_no
Checks for “yes” or “no” against 8 languages, plus plain old “y” and “n”.
ask_filename
Asks the user for a filename, then verifies that it exists.
ask_folder
Asks the user for a folder name, then verifies that it exists.
ask_regex
Gets a string from the user and verifies it against a regular expression. It can be supplied a custom invalidation message so the user doesn’t see “Must match the regular expression: ” followed by a bunch of apparently random characters and stop using your program out of frustration.

Output Functions

get_columns
If the COLUMNS environment variable is set, this will take it. If not, it assumes 80.
print_dict
Prints the keys and values in a dictionary, with incredibly flexible formatting options.
print_list
Prints the items in a list, with the same formatting options as print_dict.
wrap_str
A powerful word-wrapping function that will wrap words to a certain number of columns.
print_string
A thick wrapper around wrap_str that provides alignment and fill options.
print_header
Writes a line of text and underlines it.
trim_docstring
The famous implementation from PEP 257, this will strip leading whitespace from a docstring.
Release History

Release History

1.1

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

1.0

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

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
IOTk-1.1.tar.gz (4.6 kB) Copy SHA256 Checksum SHA256 Source Jan 1, 2009

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