https://github.com/nitanmarcel/rextester_py
https://github.com/nitanmarcel/rextester_py
Last synced: 30 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/nitanmarcel/rextester_py
- Owner: nitanmarcel
- License: mit
- Created: 2019-03-01T18:31:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-31T10:38:22.000Z (over 5 years ago)
- Last Synced: 2025-03-31T18:51:16.621Z (2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 2
- Watchers: 0
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rextester Py
Simple Python interface for rextester.com, using aiohttp/requests
## Instalation
`pip3 install rextester_py`## Usage:
When executing a code using the library it will return RextesterResult object that holds the following attributes:
- `results` - The result of your code
- `warnings` - Any warnings trown by rextester's compiler
- `errors` - Any errors trown by rextester's compiler
- `stats` - The compilation stats: absolute running time, cpu time, memory peak and absolute service time### Non async usage:
```python
>>> from rextester_py import rexec
>>> rexec("python 3", "print('Hello World')", None)>>> rexec("python 3", "print('Hello World')", None).results
Hello World
```### Async usage:
```python
>>> from rextester_py import rexec_aio
>>> import asyncio
>>> async def test():
... rex = await rexec_aio("python 3", "print('Hello World')", None)
... print(rex.results)
...
>>> asyncio.get_event_loop().run_until_complete(test())
Hello World```
## Languages:
```
c#, vb.net, f#, java, python, c (gcc), c++ (gcc), php, pascal, objective-c, haskell, ruby, perl, lua, nasm, sql server, javascript, lisp, prolog, go, scala, scheme, node.js, python 3, octave, c (clang), c++ (clang), c++ (vc++), c (vc), d, r, tcl, mysql, postgresql, oracle, swift, bash, ada, erlang, elixir, ocaml, kotlin, brainfuck, fortran```
## Buy me a beer:
- PayPal: https://www.paypal.me/marcelalexandrunitan?locale.x=en_US
- Revolut: Hit me on telegram with a payment link: https://t.me/nitanmarcel