一个Python绑定到Wandbox API。
wandbox-api的Python项目详细描述
Python的Wandbox API
Wandbox是一个社交编辑服务。
这个项目是到Wandbox API和CLI命令的python绑定。在
安装
pip install wandbox-api
命令行接口
盒子<3>usage: wandbox [-h][-v][-l LANGUAGE][-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
-l LANGUAGE, --language LANGUAGE
specify language
-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 waittimefor retry when HTTPError occurs
--retry COUNT number of retries when HTTPError occurs
Bash
运行时所需的源文件将自动添加到文件列表中。在
- 魔盒狂欢
Bash示例
C++ +EH3>
编译所需的包含文件将自动添加到文件列表中。在
- 万德箱cxx
- wandbox-g++
(wandbox cxx-c gcc头) - 旺德博克叮当+
(wandbox cxx-c响声头)
C++示例< /H4>wandbox-cxx -c gcc-head run main.cpp -DWANDBOX
CXX="wandbox-gcc run" make
wandbox-cxx -c gcc-head run main.cpp -DWANDBOX
CXX="wandbox-gcc run" make
C
编译所需的包含文件将自动添加到文件列表中。在
- 万德箱cc (魔盒-l C)
- 万德箱gcc
(万德箱cc-c gcc-head-c) - 魔盒叮当声 (万德箱cc-c clang-head-c)
C示例
CPP
编译所需的包含文件将自动添加到文件列表中。在
- 万德箱CPP (万德箱-l CPP)
- 万德箱gcc PP
(wandbox CPP-c gcc主管pp) - wandbox叮当PP (万德箱CPP-c clang head pp)
CPP示例
CSharp
- 万德箱cs (魔盒-l C#)
CSharp示例
D
- 万德箱dmd (魔盒-l D)
- 万德盒配音
D示例
长生不老药
- 万宝箱灵丹妙药 (魔盒-长生不老药)
- wandbox混合(实验)
长生不老药示例
去
- 万德箱加油 (魔盒-我去)
执行示例
Java
- wandbox爪哇 (wandbox-l爪哇)
Java示例
JavaScript
运行时所需的导入文件/模块将自动添加到文件列表中。在
- 万德盒子js (wandbox-l JavaScript)
- wandbox节点
(wandbox js-c nodejs负责人) - 万德盒子spidermonkey
(万德箱js-c spidermonkey-45.0.2)
JavaScript示例
尼姆
编译所需的导入模块将自动添加到文件列表中。在
- 魔盒尼姆 (魔盒-尼姆)
Nim示例
OpenSSL
即使有魔盒也足够了。在
- 万德箱ssl
OpenSSL示例
wandbox-ssl genrsa -out test.key 2048
wandbox-ssl rsa -in test.key -pubout -out test.key.pub
Perl
运行时所需的文件/模块将自动添加到文件列表中。在
- 万德箱perl (万德盒子-l Perl)
Perl示例
Python
运行时所需的导入文件/模块将自动添加到文件列表中。在
- 魔盒Python (wandbox-lPython)
- 旺德克斯Python2
(wandbox cxx-c cpython-2.7-头) - 魔盒Python3
(wandbox cxx-c cpython头) - 魔盒皮比 (wandbox cxx-c pypy头)
wandbox-python3 run sample.py
wandbox python支持设置.py在
wandbox-python -c cpython-head -r test run setup.py
如果打开文件,请添加该文件
wandbox-python -c cpython-head -r test run setup.py README.md
鲁比
运行时需要的文件会自动添加到文件列表中。在
- 魔盒红宝石 (魔盒-l Ruby)
- 万德箱mruby
(万德博克鲁比-c mruby head)
wandbox-ruby run sample.rb
Swift
- 万德宝箱斯威夫特 (魔盒-l Swift)
Swift示例
wandbox-swift run main.swift
TypeScript
导入文件编译所需的s/模块将自动添加到文件列表中。在
- 万德箱tsc (魔盒-l字体)
TypeScript示例
- 项目
标签: