mirror of
https://github.com/tweag/nickel.git
synced 2024-09-21 00:19:57 +03:00
3e03cc7909
* Fetch the wasm-bindgen-cli version from Cargo.lock instead of Cargo.toml * Move the Nickel CLI to a separate crate * Fix snapshot tests * Rename the nickel flake output to nickel-lang-cli for consistency * Move the nickel-lang crate into a subdirectory * Update documentation for the new crate split * Tweak snapshot test instructions * Use project_root instead of ad-hoc environment variables * Remove the library from nickel-lang-cli for now * Rename nickel-lang to nickel-lang-lib and nickel-lang-cli to nickel-lang * Apply suggestions from code review Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io> * Tweak documentation for nickel_lang_utilities::project_root * Use MacOS 13 github runner because of https://github.com/cachix/install-nix-action/issues/183 --------- Co-authored-by: Yann Hamdaoui <yann.hamdaoui@tweag.io> |
||
---|---|---|
.. | ||
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
# }