-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python bindings for enry #154
Labels
Comments
ctypes is an ancient deprecated way, cool kids use cffi. |
This is just nice-to-have for now: the use case listed above is addressed in lookout by incorporating language in DataServer API src-d/lookout#131 |
I've started adding it during OSD and will push simple WIP with CPython extension by cffi soon |
Issue description updated to include the scope. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Same way as we have Java bindings for enry, wrapping a Go library built with
-buildmode=c-shared
it would be nice to have one for Python usingctypes FFIcffi or something similar.Particular use case: one want to use https://github.com/bblfsh/sonar-checks/ API that would require knowing a language the file-to-be-checked is written in, to choose the write checks.
TODOs
(usable from Jupiter, after a manual build to enable Language detection accuracy measurements #246)
pip install -e git+https://github.com/src-d/enry.git#egg=python
.whl
(linux, macOS)The text was updated successfully, but these errors were encountered: