1
1
mirror of https://github.com/tweag/nickel.git synced 2024-09-21 00:19:57 +03:00
nickel/pyckel
Viktor Kleen 3e03cc7909
Move the CLI into its own crate (#1351)
* 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>
2023-06-16 16:34:13 +00:00
..
src Move the CLI into its own crate (#1351) 2023-06-16 16:34:13 +00:00
Cargo.toml Move the CLI into its own crate (#1351) 2023-06-16 16:34:13 +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
# }