Skip to content

0.1.0

Choose a tag to compare

@psychowasp psychowasp released this 15 Feb 19:43
· 2 commits to master since this release

What's New in 0.1.0

New Features

  • SwiftToPythonGenerator — Full Swift-to-Python stub code generator using SwiftSyntax and PySwiftAST
  • Swift2Py — Standalone function-based API for generating Python stubs from Swift source
  • PyModule — Build PySwiftAST.Module from Swift StructDeclSyntax with support for classes and extensions
  • PyClassByExtensionUnpack — Parse Swift extension expressions to extract functions, properties, and type aliases for Python class generation
  • PySerializableFactory — Registry for mapping Swift types to Python types, enabling custom type casting

Improvements

  • PyTypeRepresentation — Major expansion with 580+ lines of additions for richer Swift-to-Python type mapping
  • Generator+Syntax — Refactored syntax handling
  • ModuleGenerator/Files — Added full pipeline for processing py_classes, py_modules, and pyserializableTypes from Swift source files, including disclaimer headers for generated output

Dependencies

  • Added PySwiftAST dependency (PySwiftAST, PySwiftCodeGen, PyAstVisitors, PyFormatters)

Stats

  • 11 files changed, 2097 insertions, 49 deletions

Full Changelog: 0.0.9...0.1.0