Skip to content
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

Add Python cffi example #58

Open
messense opened this issue Jan 10, 2018 · 4 comments
Open

Add Python cffi example #58

messense opened this issue Jan 10, 2018 · 4 comments

Comments

@messense
Copy link

https://cffi.readthedocs.io/en/latest/

@shepmaster
Copy link
Owner

Do you have any feedback on why one would prefer cffi vs ctypes? What use cases is one suited for compared to the other?

@shepmaster
Copy link
Owner

Additionally, would you suggest using the "API" layer or the "ABI" layer?

@messense
Copy link
Author

cffi supports PyPy and it does not link to libpython so it's easier to use threads.

API layer obviously, here is a setuptools/wheel/cffi extension which supports Rust https://github.com/getsentry/milksnake

@Delanii
Copy link

Delanii commented May 15, 2021

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants