Python Forum
generating ctypes wrapper for a c library?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
generating ctypes wrapper for a c library?
#1
hi,
i want to wrap a C header into ctypes
but, as the header file is large, (lots of structs, callbacks etc), i don't want to put most of my effort on writing the ctypes wrapper by hand
is there any way of parsing the header and generate the ctypes wrapper?
i have seen pycparser, but i don't know how to generate ctypes wrappers with it.
thanks
Reply


Messages In This Thread
generating ctypes wrapper for a c library? - by brighteningeyes - Nov-03-2018, 02:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  using ctypes to use a dll in a python module dauriac 3 414 Mar-06-2024, 04:38 PM
Last Post: dauriac
  Trying to debug segfault in ctypes binding to Fortran bthomas 1 623 Sep-01-2023, 11:26 AM
Last Post: bthomas
  ctypes juliolop 7 1,455 Apr-20-2023, 03:33 PM
Last Post: Larz60+
  SystemError: <method-wrapper '__getattribute__' of EnumMeta object sciloop 4 1,546 Jul-23-2022, 07:57 PM
Last Post: sciloop
  Using C++/CLI wrapper functions by Python Ales1000 2 1,793 Jun-21-2022, 04:50 AM
Last Post: Ales1000
  Issue while using ctypes in python GiggsB 6 2,843 Mar-27-2022, 03:38 AM
Last Post: GiggsB
  Python executable Script (Wrapper) Hwang 2 1,926 Jan-12-2022, 06:53 PM
Last Post: Hwang
  Sqla wrapper Slojure 1 1,549 Nov-01-2021, 04:36 PM
Last Post: Larz60+
  Ctypes and libffi.so.7 luxedo 1 6,080 Oct-23-2021, 09:24 PM
Last Post: DeaD_EyE
  Python C++ wrapper problem JESuh 1 2,195 Mar-30-2021, 04:37 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020