Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pyscripter/python4delphi
Free components that wrap up Python into Delphi and Lazarus (FPC)
https://github.com/pyscripter/python4delphi
delphi lazarus pascal python
Last synced: about 1 month ago
JSON representation
Free components that wrap up Python into Delphi and Lazarus (FPC)
- Host: GitHub
- URL: https://github.com/pyscripter/python4delphi
- Owner: pyscripter
- License: mit
- Created: 2015-08-24T15:25:53.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T18:20:42.000Z (6 months ago)
- Last Synced: 2024-01-06T22:23:14.792Z (5 months ago)
- Topics: delphi, lazarus, pascal, python
- Language: Pascal
- Homepage:
- Size: 9.95 MB
- Stars: 839
- Watchers: 101
- Forks: 329
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Lists
- awesome-pascal - Python for Delphi (P4D)
- awesome-delphi - Python for Delphi (P4D)
- awesome-delphi - Python for Delphi (P4D)
README
[Python](https://www.python.org) for [Delphi](https://www.embarcadero.com/products/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
- [Installation](https://github.com/pyscripter/python4delphi/wiki/Installation)
- [Supported Platforms](https://github.com/pyscripter/python4delphi/wiki/SupportedPlatforms)
- [How Python for Delphi finds your Python distribution](https://github.com/pyscripter/python4delphi/wiki/FindingPython) (read before trying the demos)### Learn about Python for Delphi
- [Tutorials](https://github.com/pyscripter/python4delphi/tree/master/Tutorials)
- [Demos](https://github.com/pyscripter/python4delphi/tree/master/Demos)### Support forum
Visit the [support forum](https://en.delphipraxis.net/forum/39-python4delphi/) to ask questions and discuss P4D related issues.
### License
The project is licensed under the MIT [license](https://github.com/pyscripter/python4delphi/blob/master/LICENSE).