caketop / python-starlark-go

🐍 Python bindings for starlark-go 🐍
https://python-starlark-go.readthedocs.io/
Apache License 2.0
23 stars 8 forks source link

Integrate starlib and bazel-skylib #5

Open jordemort opened 2 years ago

jordemort commented 2 years ago

Extend the API to allow extra parameters to be passed to the Starlark() constructor that specify additional Starlark libraries to make available in the interpreter.

starlib

https://github.com/qri-io/starlib

These look to be written in Go and will need to be compiled into the extension.

bazel-skylib

https://github.com/bazelbuild/bazel-skylib/tree/main/lib

Some of this is bazel-specific and won't be useful, but the path manipulation and type introspection stuff is ❇️

This stuff is in Starlark, so we probably just want to vendor the files we want and exec them upon request.

seperman commented 1 year ago

Hello, any updates on integrating Starlib? Thanks.