Modules
Universal FFI bridge to Python.
Provides the use SnakeBridge.Adapter macro for generated Python adapters.
Benchmark utilities for SnakeBridge performance measurement.
Wrapper struct for binary data that should be sent to Python as bytes, not str.
Registry for Elixir callbacks passed to Python.
Error raised when strict mode detects missing bindings.
Compile-time configuration for SnakeBridge.
Configuration struct for a single Python library binding.
Configuration helper for auto-configuring Snakepit to work with SnakeBridge.
Centralized defaults for all configurable values in SnakeBridge.
On-demand documentation fetching with optional caching.
Loads a docs-derived public surface manifest for a SnakeBridge library.
Builds docs surface manifests from published documentation artifacts.
Converts parsed Python docstrings to Elixir ExDoc Markdown format.
Renders LaTeX math expressions for documentation.
Parses Python docstrings in various formats (Google, NumPy, Sphinx, Epytext).
Parser for Sphinx objects.inv inventories (version 2).
Dynamic dispatch for calling methods on Python objects without generated code.
Dynamically creates Elixir exception modules from Python exception class names.
Error raised when required Python packages are missing.
ML-specific error types for SnakeBridge.
Error for tensor dtype incompatibilities.
GPU out-of-memory error with recovery suggestions.
Error for tensor shape incompatibilities.
Translates Python/ML errors into structured SnakeBridge errors.
Helpers for SnakeBridge example projects.
Generates Elixir source files from introspection data.
Maps Python module paths to Elixir file paths for split layout generation.
Maps Python type annotations to Elixir typespec AST.
Generates Elixir helper wrappers from registry data.
Error raised when a helper name is not registered.
Error raised when helper registry discovery fails.
Helper registry discovery and configuration for SnakeBridge.
Structured error for Python introspection failures.
Introspects Python functions using the standalone introspection script.
Raised when a ref payload is malformed or invalid.
Wrapper for recording dynamic calls through Snakepit.
Manages snakebridge.lock with runtime identity, hardware info, and library versions.
Verifies hardware and environment compatibility between the lock file and current system.
Manifest storage for generated symbols.
Resolves ambiguous module paths to class attributes or submodules.
Compile-time orchestrator for Python environment provisioning.
Behaviour for executing Python scripts in the Snakepit-configured runtime.
Structured reference to a Python object managed by SnakeBridge.
Raised when a Python object reference cannot be found in the registry.
Registry system for tracking generated SnakeBridge adapters.
Thin payload helper for SnakeBridge that delegates execution to Snakepit.
Behaviour for runtime clients that execute SnakeBridge payloads.
Process-scoped runtime defaults for SnakeBridge calls.
Structured error for scan failures.
Scans project source files for Python library calls.
Raised when attempting to encode a value that cannot be serialized for Python.
Provides scoped session context for Python calls.
Manages Python session lifecycle with process monitoring.
Raised when a ref is used with a different session than it was created in.
Represents a Python iterator or generator as an Elixir stream.
Telemetry event definitions for SnakeBridge.
Logs SnakeBridge telemetry events.
Metric definitions for SnakeBridge telemetry.
Enriches Snakepit runtime telemetry with SnakeBridge context.
Forwards Snakepit script shutdown telemetry events under the SnakeBridge namespace.
ExUnit CaseTemplate for SnakeBridge tests with automatic setup/teardown.
Public API for encoding and decoding Elixir types for Python interop.
Decodes JSON-compatible data from Python into Elixir data structures.
Encodes Elixir data structures into JSON-compatible formats for Python interop.
Configuration-based wheel variant selection.
Selects the appropriate wheel variant for Python packages based on hardware.
Provides Python context manager support via with_python/2 macro.
Reference to a Python object managed by Snakepit.
Mix Tasks
Mix compiler that runs the SnakeBridge pre-pass (scan → introspect → generate).
Generates a SnakeBridge docs manifest JSON file from Sphinx documentation artifacts.
Prints a compile-time plan for SnakeBridge code generation without running Python.
Bootstraps the SnakeBridge Python environment and runs the Python test suite.
Forces SnakeBridge regeneration without relying on compile-time cache checks.
Provisions the Python environment for SnakeBridge introspection.
Verifies the lock file against the current hardware environment.