Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Python bindings #162

Closed
jtrakk opened this issue Oct 19, 2019 · 6 comments
Closed

Python bindings #162

jtrakk opened this issue Oct 19, 2019 · 6 comments
Labels
FeatureRequest New feature or request

Comments

@jtrakk
Copy link

jtrakk commented Oct 19, 2019

I'm wondering if CUE might support Python bindings.

As far as I know, the simplest and most widely supported interfaces are via CFFI, as in this Go example. Binaries can be distributed in the wheel format on PyPI.

@mpvl mpvl added the FeatureRequest New feature or request label Oct 20, 2019
@mpvl
Copy link
Contributor

mpvl commented Oct 25, 2019

This could live in a cuelang repo, like cuelang/lang-python is someone wants to take this on.

@mpvl
Copy link
Contributor

mpvl commented Oct 26, 2019

@jtrakk could you perhaps comment on which features you would want to expose in the API. The API of CUE is quite large.

@jtrakk
Copy link
Author

jtrakk commented Oct 26, 2019

Even a minimal set of features could be useful. For example, translation between CUE strings and built-in Python types (or even JSON strings) would be enough to get started with CUE if it were packaged on PyPI so I could just pip install it.

@bep
Copy link

bep commented Oct 26, 2019

SInce Cue is a Go project, it would probably make sense to look at https://github.com/google/starlark-go

@mbarkhau
Copy link

mbarkhau commented Mar 4, 2021

This project has been created in the meantime: https://pypi.org/project/pycue/

It's a wrapper around the cue CLI command.

@cueckoo
Copy link

cueckoo commented Jul 3, 2021

This issue has been migrated to cue-lang/cue#162.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.

@cueckoo cueckoo closed this as completed Jul 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FeatureRequest New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants