Skip to main content
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.

Metadata

Release files for iospec 0.3.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iospec 0.3.16
File Size Uploaded
iospec-0.3.16.tar.gz 30.1 kB Details

Release files / iospec-0.3.16.tar.gz

Download URL iospec-0.3.16.tar.gz
Size 30.1 kB
Tags Source
SHA-256 checksum
How to use checksums
250563a9ed4c5b78f28a34f507cb55ccef5a1f87bb0dec0e89975e4beb9e2585
BLAKE2b-256 checksum
How to use checksums
39547b11e1b7052857544ae3dbf2436443523110800157cce622336a67c67e77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.16 This release

1 release file

0.3.15

1 release file

0.3.14

1 release file

0.3.13

1 release file

0.3.12

1 release file

0.3.11

1 release file

0.3.10

1 release file

0.3.9

1 release file

0.3.8

1 release file

0.3.7

1 release file

0.3.6

1 release file

0.3.5

1 release file

0.3.4

1 release file

0.3.3

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page