Skill / SKILL.md

Port From Python

rewrite-rs/skills

Port Python into Rust — construct mapping, the semantic traps (integer width, floor division, str versus bytes, exceptions to Result), and the seam, which is a process boundary for a standalone replacement and PyO3 when Python keeps calling the code. Use when porting, rewriting, or migrating Python, CPython, Django, Flask, FastAPI, NumPy, or a Python CLI into Rust, when replacing a Python tool with a Rust binary or a hot Python module with a native extension, or when the user asks how a Python construct translates to Rust.
4 views 29 repository stars 0 commentsUpdated Nov 27, 2026
Overview

Port Python into Rust — construct mapping, the semantic traps (integer width, floor division, str versus bytes, exceptions to Result), and the seam, which is a process boundary for a standalone replacement and PyO3 when Python keeps calling the code. Use when porting, rewriting, or migrating Python, CPython, Django, Flask, FastAPI, NumPy, or a Python CLI into Rust, when replacing a Python tool with a Rust binary or a hot Python module with a native extension, or when the user asks how a Python construct translates to Rust.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/rewrite-rs/skills' skill-source

Use the complete skill-source/skills/porting/port-from-python directory with your client’s skill installer.

  • skills/porting/port-from-python

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/porting/port-from-python

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
cf7f6679fb834934e3c08bd18022aea8a24dfe7a629995ca0d422c7b0e5929b1
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills