Skip to content

pyscripter/python4delphi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

abbaeee · Dec 13, 2024
Mar 16, 2021
Dec 10, 2024
Nov 9, 2023
May 31, 2024
Dec 10, 2024
Dec 13, 2024
Sep 23, 2024
Apr 1, 2024
Oct 20, 2020
Jan 18, 2023
Oct 12, 2021
Aug 2, 2023
Mar 15, 2018
Jun 26, 2022

Repository files navigation

drawing

Python for Delphi (P4D) is a set of free components that wrap up the Python DLL into Delphi and Lazarus (FPC). They let you easily execute Python scripts, create new Python modules and new Python types. You can create Python extensions as DLLs and much more. P4D provides different levels of functionality:

  • Low-level access to the python API
  • High-level bi-directional interaction with Python
  • Access to Python objects using Delphi custom variants (VarPyth.pas)
  • Wrapping of Delphi objects for use in python scripts using RTTI (WrapDelphi.pas)
  • Creating python extension modules with Delphi classes and functions

P4D makes it very easy to use python as a scripting language for Delphi applications. It also comes with an extensive range of demos and tutorials.

How to use Python4Delphi

The best way to learn about how to use Python for Delphi is to try the extensive range of demos available. Also studying the unit tests for VarPyth and WrapDelphi can help understand what is possible with these two units.

Wiki topics

Learn about Python for Delphi

Support forum

Visit the support forum to ask questions and discuss P4D related issues.

License

The project is licensed under the MIT license.