1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-21 00:19:57 +03:00
nickel/pyckel
jneem dc6804acd1
Adds a configurable tracing output instead of hardcoding stderr (#1338)
* 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.
2023-06-07 14:17:13 +00:00
..
src Adds a configurable tracing output instead of hardcoding stderr (#1338) 2023-06-07 14:17:13 +00:00
Cargo.toml Bump version to 1.0 (#1302) 2023-05-17 12:50:43 +00:00
pyproject.toml Move Python bindings to its own crate pyckel 2023-01-16 16:38:24 +01:00
README.md Update pyckel/README.md 2023-01-16 16:38:24 +01:00

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
# }