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
C++ 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)
Python Example
wandbox-python3 run sample.py
wandbox-python supports setup.py
wandbox-python -c cpython-head -r test run setup.py
If you open a file, add the file
wandbox-python -c cpython-head -r test run setup.py README.md
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.7.tar.gz
(11.8 kB
view details)
Built Distribution
File details
Details for the file wandbox-api-0.9.7.tar.gz
.
File metadata
- Download URL: wandbox-api-0.9.7.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4ebda5f3cadd9cd5aa6c58e067150d60e08a8e1e139a883a15ac146f6dbd7ef |
|
MD5 | 4684ccbc90b2ed7ffb0cad5b1a4c2ca6 |
|
BLAKE2b-256 | d1b6d8274771f9121a93eeeb8375a7186df65bf985ca2a9b22f94ef1158200c2 |
File details
Details for the file wandbox_api-0.9.7-py3-none-any.whl
.
File metadata
- Download URL: wandbox_api-0.9.7-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7fd29db1d8f0fca9e941559d2e246a55cd60ae0bda58fd2100d2e0f726eb97 |
|
MD5 | 1d901f8d4bbbb5a9ce54a6b5c182489d |
|
BLAKE2b-256 | 0ecd702af2a0d8695da4387db57e33e77c38b1cf58a30d3d4aa800c49d666f12 |