From c5f9d575835b20f6a4ef532f9520dda89f19ed10 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sat, 30 Sep 2023 15:11:57 +0800 Subject: [PATCH] ... --- docs/bindings.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/bindings.md b/docs/bindings.md index ef3902d7..f839feda 100644 --- a/docs/bindings.md +++ b/docs/bindings.md @@ -4,13 +4,21 @@ title: Write bindings order: 18 --- +In order to use a C/C++ library in python, you need to write bindings for it. + +## Automatic bindings + +pkpy supports automatic binding generation **only for C libraries**. +See [pkpy-bindings](https://github.com/blueloveTH/pkpy-bindings) for details. + +It takes a C header file and generates a python module stub (`*.pyi`) and a C++ binding file (`*.cpp`). + +## Manual bindings + !!! This document is working in progress. !!! - -## Old documents (deprecated) - pkpy allows to wrap a function pointer as a python function or method that can be called in python code. This function pointer has the following signature: