Sample extension package for Python written in C
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: fix readme

+20 -2
+17
README.md
··· 1 + # Ctypes Hello World 2 + 3 + This is an example of how to make your own Python extensions with C. 4 + 5 + 6 + To build the package. 7 + ```shell 8 + cd libhello 9 + uv run python setup.py build 10 + uv run python setup.py install 11 + ``` 12 + 13 + To run the example code. 14 + 15 + ```shell 16 + uv run python main.py 17 + ```
+2 -1
main.py
··· 1 1 import libhello 2 2 3 - libhello.hello() 3 + hello = libhello.hello() 4 + print(hello)
+1 -1
uv.lock
··· 3 3 requires-python = ">=3.14" 4 4 5 5 [[package]] 6 - name = "c-to-python" 6 + name = "ctypes-hello-world" 7 7 version = "0.1.0" 8 8 source = { virtual = "." } 9 9 dependencies = [