Swift API ========= This is the Swift API for the ``PytoRuntime`` Swift library. It contains the necessary tools for executing, debugging and extending multiple Python environments in a single process. .. swift:module:: PytoRuntime :declaration: Documents --------- .. toctree:: documents/getting-started documents/interacting-with-python-objects documents/extending Interpreter ------------ Types related to the :swift:symbol:`PytoRuntime.Interpreter` class for loading Python, running and debugging scripts. .. swift:module:: PytoRuntime Interpreter Version Breakpoint Script Exception Traceback Interopability -------------- Types related to :swift:symbol:`PytoRuntime.Object` providing interopability between Python objects and Swift types. .. swift:module:: PytoRuntime Object Capusle Parsable Extensions ---------- Types for extending Python with modules defined in Swift. Call :swift:symbol:`PytoRuntime.Interpreter.register(extension:)` to register a :swift:symbol:`PytoRuntime.Module` type and make it importable. .. rubric:: Methods Exposing Swift funtions. .. swift:module:: PytoRuntime Method MethodBody ArgumentParser Signature SignatureComponent .. rubric:: Members Other members. .. swift:module:: PytoRuntime Member Module Attribute Class Property WebAssembly ----------- Classes for the WebAssembly runtime. See :doc:`../wasm` for more details. .. swift:module:: PytoRuntime WASM WASIState .. _package-manager: Package Manager --------------- APIs for the package manager. See :doc:`../pkg` for more details. .. swift:module:: PytoRuntime PkgInstaller PkgUninstaller PkgPackage PkgDependency