一个Python绑定到Wandbox API。

wandbox-api的Python项目详细描述


Python的Wandbox API

PyPI versionPython VersionsCodacy BadgeLanguage grade: Python

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示例

Bash Example

C++ +EH3>

编译所需的包含文件将自动添加到文件列表中。在

  • 万德箱cxx
  • wandbox-g++
    (wandbox cxx-c gcc头)
  • 旺德博克叮当+
    (wandbox cxx-c响声头)
^{pr2}$

C++示例< /H4>

wandbox-cxx -c gcc-head run main.cpp -DWANDBOX

CXX="wandbox-gcc run" make

C++ Example

C

编译所需的包含文件将自动添加到文件列表中。在

  • 万德箱cc (魔盒-l C)
  • 万德箱gcc
    (万德箱cc-c gcc-head-c)
  • 魔盒叮当声 (万德箱cc-c clang-head-c)

C示例

C Example

CPP

编译所需的包含文件将自动添加到文件列表中。在

  • 万德箱CPP (万德箱-l CPP)
  • 万德箱gcc PP
    (wandbox CPP-c gcc主管pp)
  • wandbox叮当PP (万德箱CPP-c clang head pp)

CPP示例

CPP Example

CSharp

  • 万德箱cs (魔盒-l C#)

CSharp示例

C# Example

D

  • 万德箱dmd (魔盒-l D)
  • 万德盒配音

D示例

D ExampleDub Example

长生不老药

  • 万宝箱灵丹妙药 (魔盒-长生不老药)
  • wandbox混合(实验)

长生不老药示例

Elixir Example

  • 万德箱加油 (魔盒-我去)

执行示例

Go Example

Java

  • wandbox爪哇 (wandbox-l爪哇)

Java示例

Java Example

JavaScript

运行时所需的导入文件/模块将自动添加到文件列表中。在

  • 万德盒子js (wandbox-l JavaScript)
  • wandbox节点
    (wandbox js-c nodejs负责人)
  • 万德盒子spidermonkey
    (万德箱js-c spidermonkey-45.0.2)

JavaScript示例

JavaScript Example

尼姆

编译所需的导入模块将自动添加到文件列表中。在

  • 魔盒尼姆 (魔盒-尼姆)

Nim示例

Nim Example

OpenSSL

即使有魔盒也足够了。在

  • 万德箱ssl

OpenSSL示例

wandbox-ssl genrsa -out test.key 2048

wandbox-ssl rsa -in test.key -pubout -out test.key.pub

OpenSSL Example

Perl

运行时所需的文件/模块将自动添加到文件列表中。在

  • 万德箱perl (万德盒子-l Perl)

Perl示例

Perl Example

Python

运行时所需的导入文件/模块将自动添加到文件列表中。在

  • 魔盒Python (wandbox-lPython)
  • 旺德克斯Python2
    (wandbox cxx-c cpython-2.7-头)
  • 魔盒Python3
    (wandbox cxx-c cpython头)
  • 魔盒皮比 (wandbox cxx-c pypy头)
Python示例

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

Python Example

鲁比

运行时需要的文件会自动添加到文件列表中。在

  • 魔盒红宝石 (魔盒-l Ruby)
  • 万德箱mruby
    (万德博克鲁比-c mruby head)
Ruby示例

wandbox-ruby run sample.rb

Ruby Example

Swift

  • 万德宝箱斯威夫特 (魔盒-l Swift)

Swift示例

wandbox-swift run main.swift

Swift Example

TypeScript

导入文件编译所需的s/模块将自动添加到文件列表中。在

  • 万德箱tsc (魔盒-l字体)

TypeScript示例

TypeScript Example

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从IBM MQ的JMSException检测可恢复错误   java Lucene6。4.2:找不到类,尝试添加查询。   Java Pdf差异库   在Java中多线程处理我的线程   java将字符串传递给Uri。下载中的parse()   java在列表中查找原语位置   java JPA条件从另一个查询中选择   java中的强制转换和转换   java如何在没有上下文的情况下获取SOAP Web服务(Apache Axis 1.4)的调用客户端的IP地址   java Android IllegalBlockSizeException:解密中最后一个块未完成   java Jersey是否要自定义无效资源路径的错误处理?   如何将JavaCVS web项目转换为基于maven的web项目?   java如何检查通用列表是否与jUnit相等?   arraylist java。util。尝试使用迭代器时发生ConcurrentModificationException错误   使用springsecurity,jsp上的java${u csrf.token}始终为空   sql使用java从临时表中选择数据   spring验证中的java@Notnull和@Pattern无效   java如何使用jQuery将包含对象数组的对象数组传递给Spring MVC控制器?