coldheat / pystarlark Goto Github PK
View Code? Open in Web Editor NEWExperimental Python bindings for starlark-go
License: Apache License 2.0
Experimental Python bindings for starlark-go
License: Apache License 2.0
This probably leaks memory because we need to free C strings.
https://golang.org/cmd/cgo/#hdr-Go_references_to_C
To fix later or if someone wants to take it on.
https://github.com/qri-io/starlib
Seems like this would be a useful addition to showcase an example of.
Hi @ColdHeat
I'm very interested in using Starlark for sandboxing Python.
Is there any way you can guide me to get it up and running for Python 3.11?
When I try to install it via pip:
subprocess.check_call(cmd, cwd=cwd, env=dict(os.environ, **env))
File "/home/user/.pyenv/versions/3.11.4/lib/python3.11/subprocess.py", line 413, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('go', 'build', '-buildmode=c-shared', '-o', '/home/user/Workspace/tools/pystarlark/build/lib.linux-x86_64-cpython-311/pystarlark/starlark.cpython-311-x86_64-linux-gnu.so', '-ldflags=-s -w')' returned non-zero exit status 2
I cloned the repo and upgraded setuptools-golang
and cffi
versions to the latest and I still get the same error.
Thank you
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.