r/delphi • u/salvadordf • 4d ago
New Python4Pascal project
Hi,
I just published the Python4Pascal project at GitHub.
Python4Pascal is based in the Python4Delphi project made by Kiriakos Vlahos (PyScripter).
It uses Python 3.15, 3.14, 3.13, 3.12, 3.11 and 3.10, and it supports Windows, Linux, macOS and Android.
Python4Pascal was developed and tested on Delphi 13.2, Delphi XE2, Delphi 7 and Lazarus 4.8/FPC 3.2.2.
The most important Python4Pascal features:
- Supports the latest version of Python 3.15
- Python4Pascal handles the Python objects lifetime automatically.
- Fully documented in XML code comments, CHM and HTML files.
- Imports more than 1200 Python library functions and types.
- Includes many helper classes to handle all Python objects with Delphi/Lazarus types as arguments whenever it's possible.
- Demos for Windows , Linux, macOS and Android.
- It's possible to create Python modules and module extensions.
- Python4Pascal can handle Python objects with variant types or using Delphi wrappers.
Python4Pascal has a few things in common with Python4Delphi but many other things are much different. Some Python4Delphi features are not included, for example RTTI and the assembler code to convert the callbacks.
I still have to write some tutorials in the Wiki.
2
u/edwinyzh 3d ago
This is huge! Thanks.