{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/12"}],"enrichment":{"capability":"Parses C header files and automates ctypes-based bindings to C libraries, handling macros, typedefs, structs, unions, enums, and function prototypes with automatic type conversion.","skillfed_tags":["c-interop","ctypes","header-parsing"],"use_cases":["Automatically generate Python ctypes wrappers from C header files to call compiled C libraries without manual struct and type definitions.","Parse and evaluate C macros and typedefs to determine their underlying C types for use in Python binding code.","Simplify integration of legacy C libraries into Python projects by automating the extraction of function signatures and struct layouts.","Build Python-friendly wrappers around Windows DLLs or Unix shared libraries with automatic type conversion on function calls.","Reduce maintenance burden when C library headers change by regenerating bindings from the updated headers."],"what_it_does":"PyClibrary is a pure-Python C parser and ctypes binding automation library that reads C header files and extracts their definitions\u2014macros, typedefs, structs, unions, enums, function prototypes, and global variables\u2014then uses those definitions to simplify calling C libraries from Python. It evaluates typedefs down to their fundamental C types and can automatically build C structs and perform type conversions when invoking functions through ctypes' cdll or windll interfaces.\n\nThe package aims to be FFI-agnostic, presenting a backend-independent API; currently only ctypes is implemented, though a cffi backend is noted as theoretically possible. It depends only on pyparsing and runs on Python 3.10 and later. The library is a maintained fork of an earlier Launchpad project and is actively developed, making it suitable for projects that need to reduce boilerplate when wrapping existing C libraries.","worth_installing":"Yes. Low install friction, active maintenance, no known vulnerabilities, and permissive MIT license make this a safe choice. Install it if you need to call C libraries from Python and want to avoid hand-writing ctypes boilerplate; skip it if you prefer explicit control over bindings or are already using a dedicated FFI tool like cffi."},"id":"pyclibrary","links":{"html":"https://skillfed.io/packages/pyclibrary","md":"https://skillfed.io/packages/pyclibrary.md","pypi":"https://pypi.org/project/pyclibrary/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-09-03","license_spdx":null,"license_treatment":"permissive","name":"pyclibrary","python_support":"supports_current","summary":"C binding automation"},"popularity":{"monthly_downloads":399719,"position":6945,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
