| Crates.io | sloppy |
| lib.rs | sloppy |
| version | 0.1.2 |
| created_at | 2023-03-14 03:34:34.472589+00 |
| updated_at | 2023-03-29 03:01:55.882655+00 |
| description | A binary package to run sloppy script. |
| homepage | |
| repository | https://github.com/tycheng/sloppy/tree/main/sloppy |
| max_upload_size | |
| id | 809464 |
| size | 108,033 |
sloppy is a script interpreter that allows multiple programming languages to work together.
It is based on toml format, where user defines a sequence of commands, and what variables
each command imports and exports. The name sloppy simply means it is meant for one-time
scripts, not for serious work.
Here's an example:
[[command]]
backend = "lua"
errexit = true
imports = []
exports = ["values"]
program = """
values = {
name = "Tianyu",
data = { "hello", "world", 123 }
}
print("Hello from Lua!")
"""
[[command]]
backend = "python"
errexit = true
imports = ["values"]
exports = []
program = """
print("Hello from Python!")
print(values)
"""
lua
python
nushell
This project is currently at an early stage, use at your own risk. Feedbacks are appreciated.