@dynamicMemberLookup
public struct PythonInterface
Una interfaz para Python.
PythonInterface
permite la interacción con Python. Se puede utilizar para importar módulos y acceder dinámicamente a tipos y funciones integrados de Python.
Nota
No está previsto quePythonInterface
se inicialice directamente. En su lugar, utilice la instancia global de PythonInterface
llamada Python
. Un diccionario de las funciones integradas de Python.
Declaración
public let builtins: PythonObject
Declaración
public func attemptImport(_ name: String) throws -> PythonObject
Declaración
public func `import`(_ name: String) -> PythonObject
Declaración
public subscript(dynamicMember name: String) -> PythonObject { get }
Declaración
public var version: PythonObject { get }
Declaración
public var versionInfo: PythonObject { get }