Skip to main content
Python · Bindings · Core Primitives

CorePy

Python bindings for Core primitives. Lightweight scripting with full access to the Core Go framework via embedded gpython.

Python 3.14 target Core Go primitives EUPL-1.2

Features

Core Primitives

Access Options, Config, Data, and Service primitives from Python. The same universal types used across Go, PHP, and TypeScript.

Embedded Interpreter

Uses gpython (pure-Go Python interpreter), not CPython. No system Python dependency, no virtualenv, no C extensions to manage.

Two-Tier Architecture

Tier 1: gpython for lightweight scripting and Core integration. Tier 2: CPython subprocess for heavy compute, ML pipelines, and C-extension libraries.

Polyglot Stack

Fourth corner of the polyglot primitive stack. CoreGO, CorePHP, CoreTS, and CorePy share the same contract, same types, same patterns.

Quick Start

Import Core primitives:

from core import Options, Config, Data, Service

Configure a service:

svc = Service("my-service", config=Config.load("app.yaml"))
In Development

Beta Sprint

CorePy is part of the beta.1 sprint alongside CorePHP and CoreTS. Python bindings for Core primitives, managed interpreter, and the two-tier architecture are in active development.

Follow on GitHub