# lmbelo/python4delphi

Free components that wrap up Python into Delphi and Lazarus (FPC)

Repository: https://github.com/lmbelo/python4delphi
Canonical: https://ross.abutalabs.com/products/python4delphi
Language: Pascal
License: MIT
License Family: permissive
Topics: delphi, lazarus, python, pascal
Last push: 2025-11-26T11:54:48+00:00

## Health v2 (maintenance only)
Score: 47/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 54, release rhythm 8, longevity 100
- inputs: {"age_days": 4027, "days_push": 280, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1056, forks 337 (observed 2026-08-28T04:03:24.491242+00:00)

## What it is
Python4Delphi (P4D) is a set of free Delphi and Lazarus (FPC) components that wrap the Python DLL, enabling execution of Python scripts, creation of Python modules and types, and bi-directional Delphi-Python interaction. It offers low-level Python API access, high-level object interop via custom variants and RTTI wrapping, and the ability to build Python extension modules as DLLs.

## Use cases
- embed python scripting in a delphi application
- call python code from pascal
- create python extension modules in delphi
- expose delphi objects to python scripts
- run python scripts from a lazarus app
- use python as a scripting language for desktop apps

## When to choose
- you are building Delphi or Lazarus/FPC applications and want to embed or interoperate with Python
- you need bi-directional access between native Pascal code and Python objects
- you want to ship Python extension modules written in Delphi

## When to avoid
- your project does not use Delphi, Free Pascal, or Lazarus
- you only need to run Python scripts standalone without native Pascal integration
- you need CPython C-API bindings for C/C++ rather than Pascal

## Facets
- artifact type: library
- maturity: stable
- function: sdk, interpreter, plugin-system
- domain: developer-tools, cross-platform
- platform: windows, cross-platform
- tags: delphi, lazarus, fpc, pascal, python-integration, scripting, python-dll, python-extensions, automation, linux, macos

## Member repositories
- lmbelo/python4delphi (main) score 47

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:24.491242+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:58:24.229633+00:00, confidence not recorded.
  - readme: https://github.com/lmbelo/python4delphi (fetched 2026-08-28T04:03:24.491242+00:00, sha 6bee67ca0150)
- Data as of 2026-08-30T08:39:29.467469+00:00.
