Python Code

Python development best practices, PEP 8, and modern Python features

DongDuong2001 Updated 5 repo stars
PUDO Code System

File contents

Python Code Skill

This skill is specialized for Python development, focusing on idiomatic Python (Pythonic code), performance, and typing.

When to use this skill

  • When writing or refactoring Python code (Django, FastAPI, Flask, Pandas, etc.).
  • When utilizing Python's specific features like list comprehensions, generators, context managers.
  • When integrating PEP 8 standards or type hints (mypy/pydantic).

Guidelines

  • Write "Pythonic" code. Use built-in functions and standard libraries where appropriate.
  • Use explicit type hints for better Developer Experience (DX) and tooling support.
  • Handle exceptions specifically rather than using bare except: clauses.
  • Use virtual environments (venv, poerty, conda) for dependency management.

DongDuong2001/pudo-code-system commit b6a9b98736

Frequently asked questions

npx get-skill add dongduong2001/python-code