pywasm3
nsjail
Our great sponsors
pywasm3 | nsjail | |
---|---|---|
3 | 6 | |
71 | 2,785 | |
- | 2.2% | |
3.7 | 7.9 | |
4 months ago | 3 months ago | |
C | C++ | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
pywasm3
-
New package: wasm.el
It's an embedding of the wasm3 library, and it exposes a function, `wasm-test`, that can call a function without arguments from a simple WebAssembly module. I intend to update it to reach feature parity with, for example, the python embedding.
-
WebAssembly: Adding Python Support to WASM Language Runtimes
PyOdide isn't currently supported outside of browsers, though that might change.
Either way, I couldn't figure out how to do the above sequence of steps with any of the available Python WASM runtimes - they're all very under-documented at the moment, sadly. I tried all three of these:
- https://github.com/wasmerio/wasmer-python
- https://github.com/bytecodealliance/wasmtime-py
- https://github.com/wasm3/pywasm3
-
Interpret Rust with Python
You might look at https://github.com/wasm3/pywasm3 . If nothing else, itโd presumably speed up your interpreter to have bindings to an established C based runtime rather than re implementing the runtime in python
nsjail
-
Server-side sandboxing: Containers and seccomp
So what's the difference between nsjail[1] and bubblewrap[2]?
[1] https://github.com/google/nsjail
- Firejail: Light, featureful and zero-dependency security sandbox for Linux
-
Sandboxing C++, Rust, Python Code?
I am currently working on a code execution engine (also written in Rust) which uses nsjail for sandboxing and gnu time for measuring time and memory usage under the hood. You can run arbitrary code simply using a rest api and there is also a client library for Rust. It can already run C++, Rust and Python (and a few other languages) while allowing you to specify multiple source files, environment variables, command line arguments, standard input and resource limits (e.g. time, memory, maximum number of processes and whether network access is allowed or not). After running the program, the engine reports exit codes, outputs (stdout and stderr) and the amount of resources the program used.
- WebAssembly: Adding Python Support to WASM Language Runtimes
- Notes on Running Containers with Bubblewrap
- Bubblewrap: Unprivileged Sandboxing Tool for Linux
What are some alternatives?
wasm-git - GIT for nodejs and the browser using https://libgit2.org compiled to WebAssembly with https://emscripten.org
bubblewrap - Low-level unprivileged sandboxing tool used by Flatpak and similar projects
wasmtime-py - Python WebAssembly runtime powered by Wasmtime
crosvm - The Chrome OS Virtual Machine Monitor - Mirror of https://chromium.googlesource.com/crosvm/crosvm/
wasm3 - ๐ A fast WebAssembly interpreter and the most universal WASM runtime
RIP - Free,Open-Source,Cross-platform agent and Post-exploiton tool written in Golang and C++.
binjgb - Gameboy emulator implemented in C, that also runs in the browser
pywasm - A WebAssembly interpreter written in pure Python
logkeys - :memo: :keyboard: A GNU/Linux keylogger that works!
raylib - A simple and easy-to-use library to enjoy videogames programming
sandkasten - Run untrusted code in an isolated environment