python-development

Best practices and patterns for Python development.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "python-development" with this command: npx skills add kinhluan/skills/kinhluan-skills-python-development

Python Development

Best practices and patterns for Python development.

When to Use

  • Writing Python scripts or applications

  • Code review and refactoring

  • Setting up new Python projects

Guidelines

Code Style

  • Follow PEP 8 style guide

  • Use type hints for function signatures

  • Write docstrings for public functions and classes

Project Structure

project/ ├── src/ │ └── package/ ├── tests/ ├── pyproject.toml └── README.md

Common Patterns

Context Managers

from contextlib import contextmanager

@contextmanager def managed_resource(): resource = acquire() try: yield resource finally: release(resource)

Data Classes

from dataclasses import dataclass

@dataclass class Config: host: str port: int debug: bool = False

Resources

  • Python Official Docs

  • PEP 8 Style Guide

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

c4-level4-code

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

javascript-typescript

No summary provided by upstream source.

Repository SourceNeeds Review
General

docker-containerization

No summary provided by upstream source.

Repository SourceNeeds Review
General

ddd-patterns

No summary provided by upstream source.

Repository SourceNeeds Review