Run code in multiple languages (bash, ruby, python, javascript) from Python.
Project description
crossrun
Run code in multiple programming languages directly from Python.
Installation
pip install git+https://github.com/Inferno-God1001/crossrun.git
Supported Languages
| Language | Command used |
|---|---|
| bash | bash |
| ruby | ruby |
| python | python |
| javascript | node |
Usage
from crossrun import set_code
# Run bash
output = set_code('bash', 'echo "Hello from bash"')
print(output)
# Run python
output = set_code('python', 'print("Hello from Python")')
print(output)
# Run javascript
output = set_code('javascript', 'console.log("Hello from JS")')
print(output)
# Run ruby
output = set_code('ruby', 'puts "Hello from Ruby"')
print(output)
Special Syntax
crossrun supports a custom escaping syntax for quotes and braces:
| Syntax | Replaced with |
|---|---|
-, |
' |
-,, |
" |
*-, |
''' |
<; |
{ |
;> |
} |
License
MIT
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
crossrun-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crossrun-1.0.0.tar.gz.
File metadata
- Download URL: crossrun-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bf5034a2ed5c68966745db165e8aa30aa64278ac478bb476d6889a55be087bf
|
|
| MD5 |
59fd72db196df2221ee1458cd26ca4c6
|
|
| BLAKE2b-256 |
e4e7981ede2b641b1536ffe5e618210d8611c4de26886a6d6fb0b954c654f3b2
|
File details
Details for the file crossrun-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crossrun-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8a47b67d83c34854549294da5aba83cf28dad906ca0546521a66e52578a38b9
|
|
| MD5 |
c5d44ffbb27d5513288cd9f1b1d8216c
|
|
| BLAKE2b-256 |
afd4da76178aacb3dce8c5cde8ed3cbe016da415e7aed6af28c5f2514a36bfe8
|