Skip to content

Commit 9ead8ef

Browse files
backnotpropclaude
andauthored
Remove Python bindings package (#95)
* remove Python bindings package - Remove cupcake-py/ directory entirely - Update workspace members in Cargo.toml - Remove Python-specific entries from .gitignore - Update README.md and docs to remove Python references - Remove python.svg asset The bindings.rs module in cupcake-core is retained as it's still used by the TypeScript bindings (cupcake-ts). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * chore: remove Python references from bindings.rs comments 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent ad6ded9 commit 9ead8ef

19 files changed

Lines changed: 4 additions & 1868 deletions

File tree

.gitignore

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,6 @@ MANIFEST
6666
.mypy_cache/
6767
.ruff_cache/
6868

69-
# Maturin/PyO3
70-
cupcake-py/target/
71-
cupcake-py/build/
72-
cupcake-py/dist/
73-
cupcake-py/*.so
74-
cupcake-py/*.pyd
75-
cupcake-py/*.dll
76-
7769
# Virtual environments
7870
venv/
7971
ENV/

Cargo.lock

Lines changed: 0 additions & 94 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Core members that build reliably across all environments
33
default-members = ["cupcake-core", "cupcake-cli"]
44
# All members (including optional language bindings)
5-
members = ["cupcake-core", "cupcake-cli", "cupcake-py", "cupcake-ts"]
5+
members = ["cupcake-core", "cupcake-cli", "cupcake-ts"]
66
resolver = "2"
77

88
[workspace.package]

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,10 @@ Each harness uses native event formats. Similar to terraform, policies are separ
4545

4646
#### Language Bindings
4747

48-
Cupcake can be embedded in Python or JavaScript agent applications through native bindings. This enables integration with web-based agent frameworks like LangChain, Google ADK, NVIDIA NIM, Vercel AI SDK, and more.
48+
Cupcake can be embedded in JavaScript agent applications through native bindings. This enables integration with web-based agent frameworks like LangChain, Google ADK, NVIDIA NIM, Vercel AI SDK, and more.
4949

5050
| Language | Binding |
5151
| ----------------------------------------------------------------------------- | -------------- |
52-
| <img src="docs/docs/assets/python.svg" width="24" height="24"> Python | `./cupcake-py` |
5352
| <img src="docs/docs/assets/typescript.svg" width="24" height="24"> TypeScript | `./cupcake-ts` |
5453

5554
## How it Works

cupcake-core/src/bindings.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! FFI Binding Engine - Thread-safe abstraction for foreign language bindings
22
//!
33
//! This module provides a simplified, FFI-friendly interface to the Cupcake engine
4-
//! designed for safe use from Python, Node.js, and other language bindings.
4+
//! designed for safe use from Node.js and other language bindings.
55
//!
66
//! Key Design Principles:
77
//! - Thread-safe by default (Arc<Engine>)
@@ -68,7 +68,6 @@ impl BindingEngine {
6868
/// Synchronous evaluation method for blocking language bindings
6969
///
7070
/// This method is ideal for:
71-
/// - Python with GIL released (py.allow_threads)
7271
/// - Synchronous Node.js calls
7372
/// - Any FFI that expects blocking behavior
7473
///
@@ -97,7 +96,6 @@ impl BindingEngine {
9796
/// Asynchronous evaluation method for async language bindings
9897
///
9998
/// This method is ideal for:
100-
/// - Python with asyncio
10199
/// - Node.js with async/await
102100
/// - Any FFI that supports async operations
103101
///

cupcake-py/Cargo.toml

Lines changed: 0 additions & 31 deletions
This file was deleted.

cupcake-py/README.md

Lines changed: 0 additions & 126 deletions
This file was deleted.

0 commit comments

Comments
 (0)