mirror of
https://github.com/tweag/nickel.git
synced 2024-09-21 00:19:57 +03:00
dc6804acd1
* Make the trace destination configurable * Add a callback-oriented trace collector to the wasm repl * Only call back on flush * Fix clippy * Silence trace output in pyckel. This probably isn't the best thing, but it's probably still better than polluting stderr in a library. Possibly a better solution is to imitate the api of `subprocess.run`, but that requires breaking API to return something other than a plain string. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
pyproject.toml | ||
README.md |
pyckel
Python bindings to use Nickel.
Install
pip install .
Use
import pyckel
result = pyckel.run("let x = 1 in { y = x + 2 }")
print(result)
# {
# "y": 3
# }