0155-python-project-structure
CommunityOrganize Python projects with clear public APIs.
Software Engineering#project structure#python#testing strategy#module architecture#public api#__all__#package initialization
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the problem of messy, hard-to-navigate Python codebases by guiding you to design a maintainable project structure with clear module boundaries and well-defined public interfaces.
Core Features & Use Cases
- Module architecture and cohesion: Organize related code so each module has a single purpose and predictable change patterns.
- Explicit public interfaces: Use
__all__in__init__.pyto clearly expose what belongs to your public API while keeping internals private. - Practical directory layout guidance: Choose flat vs nested hierarchies, align file names with content, and plan package initialization for clean imports.
- Testing strategy options: Decide between colocated tests and a parallel
tests/directory and apply the chosen pattern consistently. - Layered and domain-driven structure templates: Implement separation of concerns by architectural layer or organize by business domain for larger systems.
- Use cases: Starting a new project, reorganizing for clarity, defining library entry points for consumers, and planning a directory layout before implementation.
Quick Start
Use the skill to plan your new Python project's src/ package layout, choose where tests live, and define each module’s public API using explicit __all__ exports.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0155-python-project-structure Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0155-python-project-structure Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.