A Python binding to the Wandbox API.
Project description
Wandbox API for Python
Wandbox is a social compilation service.
This project is a Pythonic binding to the Wandbox API, and CLI command.
Installation
pip install wandbox-api
CLI
wandbox
usage: wandbox [-h] [-v] [-c COMPILER] [-x OPTIONS] [-r RUNTIME_OPTIONS] [-n] [-s] [--encoding ENCODING]
[--no-default] [--stdin STDIN] [--retry-wait SECONDS] [--retry COUNT]
{list,compiler,versions,lang,option,permlink,run,help} ...
positional arguments:
{list,compiler,versions,lang,option,permlink,run,help}
list show list api response. see `list -h`
compiler show support compilers. see `compiler -h`
versions show support compilers. see `versions -h`
lang show support languages. see `lang -h`
option show compiler options. see `option -h`
permlink get permlink. see `permlink -h`
run build and run command. see `run +h`
help show subcommand help. see `help -h`
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-c COMPILER, --compiler COMPILER
specify compiler
-x OPTIONS, --options OPTIONS
used options for a compiler
-r RUNTIME_OPTIONS, --runtime-options RUNTIME_OPTIONS
runtime options
-n, --dryrun dryrun
-s, --save generate permanent link.
--encoding ENCODING set encoding
--no-default no set default options
--stdin STDIN set stdin
--retry-wait SECONDS wait time for retry when HTTPError occurs
--retry COUNT number of retries when HTTPError occurs
C++
- wandbox-cxx
- wandbox-g++
(wandbox-cxx -c gcc-head) - wandbox-clang++
(wandbox-cxx -c clang-head)
usage: wandbox-cxx [-h] [-v] [-c COMPILER] [-x OPTIONS] [-r RUNTIME_OPTIONS] [-n] [-s] [--encoding ENCODING]
[--no-default] [--stdin STDIN] [--retry-wait SECONDS] [--retry COUNT] [--std VERSION]
[--boost VERSION] [--optimize] [--cpp-verbose] [--sprout] [--msgpack]
{list,compiler,versions,lang,option,permlink,run,help} ...
positional arguments:
{list,compiler,versions,lang,option,permlink,run,help}
list show list api response. see `list -h`
compiler show support compilers. see `compiler -h`
versions show support compilers. see `versions -h`
lang show support languages. see `lang -h`
option show compiler options. see `option -h`
permlink get permlink. see `permlink -h`
run build and run command. see `run +h`
help show subcommand help. see `help -h`
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-c COMPILER, --compiler COMPILER
specify compiler
-x OPTIONS, --options OPTIONS
used options for a compiler
-r RUNTIME_OPTIONS, --runtime-options RUNTIME_OPTIONS
runtime options
-n, --dryrun dryrun
-s, --save generate permanent link.
--encoding ENCODING set encoding
--no-default no set default options
--stdin STDIN set stdin
--retry-wait SECONDS wait time for retry when HTTPError occurs
--retry COUNT number of retries when HTTPError occurs
--std VERSION set --std options
--boost VERSION set boost options version X.XX or nothing
--optimize use optimization
--cpp-verbose use cpp-verbose
--sprout use sprout
--msgpack use msgpack
Example
wandbox-cxx -c gcc-head run main.cpp -DWANDBOX
CXX="wandbox-gcc run" make
Python
- wandbox-python
- wandbox-python2
(wandbox-cxx -c cpython-2.7-head) - wandbox-python3
(wandbox-cxx -c cpython-head) - wandbox-pypy (wandbox-cxx -c pypy-head)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
wandbox-api-0.9.6.tar.gz
(10.9 kB
view hashes)
Built Distribution
Close
Hashes for wandbox_api-0.9.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13afb053db342920b6e41034059b8109305aecff06166d7125de025217ee706f |
|
MD5 | 38e93eeaba5955e7a17d74e308b1ca7b |
|
BLAKE2b-256 | 53c7cff5aec62bec5fb5abac2164cebd896edf78eb32fe33d90c95ae5f176ecc |