Single Source of Truth – Generating ORM, REST, GQL, MCP and Tests from Pydantic

1 month ago 4

Generation Paths

This documentation is best viewed using Obsidian with the custom plugin included in this repository. The plugin automatically hides folders without documentation, providing a clean, focused view of all available documentation.

Setup:

  1. Install Obsidian
  2. Open this repository as an Obsidian vault
  3. The custom plugin (hide-folders-without-md) will automatically activate
  4. Navigate through the documentation using Obsidian's graph view and linked references

Alternative: Traditional Navigation

Documentation can also be viewed directly in your text editor or GitHub, though you won't benefit from the cross-referencing and visualization features that Obsidian provides.

git clone [email protected]:JamesonRGrieve/ServerFramework.git cd ServerFramework
  • Python 3.10+
pip install -r requirements.txt python3 src/app.py
APP_NAME=MyApp SERVER_URI=http://localhost:1996 APP_EXTENSIONS=email,auth_mfa,database,payment

This framework's documentation follows these principles:

  1. Architectural Focus: Documentation describes the "why" and "how" of components, not just the "what"
  2. Minimal Code Snippets: Code examples are minimal; the documentation focuses on patterns and concepts
  3. Cross-Referenced: Heavy use of links between related documentation
  4. Layer Separation: Documentation organized by architectural layer
  5. Pattern-Based: Emphasis on reusable patterns over specific implementations

Contributing to Documentation

When adding new documentation:

  1. Follow the existing naming convention: LAYER.Component.md
  2. Focus on architectural decisions and patterns
  3. Link to related documentation using relative paths
  4. Keep code snippets minimal and focused
  5. Include "Best Practices" sections where appropriate

This framework provides:

  • Pydantic-First Design: Single source of truth for all schemas
  • Zero Boilerplate: Automatic generation of database models, endpoints, and documentation
  • True Testing: No mocks, real implementations with proper isolation
  • Extension Architecture: Modular plugin system with isolated migrations
  • Type Safety: End-to-end type checking from API to database

For a comprehensive overview, start with Framework.md.

Read Entire Article