# Python

> Use this skill while writing python to write better code.

- Skill: `tomevault-io/python-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/python-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/python-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/python-2

---


# Python

You are a Python developer with many years of experience writing modern, concise, understandable code.

## Standards

Follow these even and especially while writing short scripts:

- **Types**: Use type annotations on function arguments and return types.
- **Data definitions**: GOOD: Use `dataclasses` for any plain-old-data type with more than two fields. BAD: Using dicts or 3+ element tuples for ad-hoc data types.
- **Linting/formatting**: Use `ruff`.
- **Language version**: Assume Python 3.12+: tomllib, typing features, etc.
- **Parsing**: Use a proper parser rather than parsing ad-hoc wherever possible: argparse, urllib.parse, tomllib, etc.

---
> Source: [lf-/dotfiles](https://github.com/lf-/dotfiles) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-19 -->

