Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Lightweight markup for the description of running sessions of input/output based programs in the context of an online judge

Project description

https://travis-ci.org/fabiommendes/iospec.svg?branch=master https://coveralls.io/repos/github/fabiommendes/iospec/badge.svg?branch=master

The IoSpec format is a lightweight markup for specifying the expected inputs and outputs for running a program in an online judge setting. It is designed to be unobtrusive in the simple cases, while still having some some advanced features. This package defines the IoSpec format and provides a Python parser for it.

Basic syntax

A basic session of an input/output based program running on an online judge is specified like this:

Say your name: <John>
Hello, John!

In this example, the string between angle brackets is considered to be an input and everything else is the expected output. Different runs should be separated by blank lines:

Say your name: <John>
Hello, John!

Say your name: <Mary>
Hello, Mary!

We call each of these runs an iospec “test case”. The above example is declaring an interaction in which given the input John, the program should print Hello, John! while in the second run, when the input will be Mary, and the program will print Hello, Mary!.

A IoSpec source file consists of any number of test cases and some special blocks and directives that will be discussed afterwards.

This example is just the surface: IoSpec syntax has commands to define automatic inputs, capture patterns, execution errors and more! Check the manual if you want to learn more.

Project details


Release history Release notifications

This version
History Node

0.3.16

History Node

0.3.15

History Node

0.3.14

History Node

0.3.13

History Node

0.3.12

History Node

0.3.11

History Node

0.3.10

History Node

0.3.9

History Node

0.3.8

History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.3

History Node

0.3.1

History Node

0.3.0

History Node

0.2.7

History Node

0.2.6

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

History Node

0.1.post2

History Node

0.1.post1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
iospec-0.3.16.tar.gz (30.1 kB) Copy SHA256 hash SHA256 Source None Mar 26, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page