Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.29 KB

File metadata and controls

38 lines (25 loc) · 1.29 KB

python-to-go-converter

Audit License OpenClaw

Automatically converts Python code to optimized Go code for performance-critical applications.

Features

  • Convert Python source files to Go with preserved functionality
  • Intelligent Python-to-Go type mapping (int, str, list, dict, classes, etc.)
  • Translate common Python standard library imports to Go equivalents
  • Generate properly formatted Go code with comments
  • Provide detailed error diagnostics for unsupported Python features
  • CLI interface for batch conversion and agent integration
  • Support for functions, classes, control flow, and basic data structures

Examples

# Convert a single file
python3 scripts/converter.py convert input.py --output output.go

# Convert with diagnostics
python3 scripts/converter.py convert myscript.py --verbose

Quick Start

Installation

The skill is installed as part of an OpenClaw skill package. Ensure dependencies are met (Python 3.8+, go compiler in PATH).

GitHub

Source code: github.com/NeoSkillFactory/python-to-go-converter

License

MIT © NeoSkillFactory