AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Fastapi Python — Скилл для ИИ-агентов | AI Рассвет

    Fastapi Python

    Expert in FastAPI Python development with best practices for APIs and async operations

    Скиллы для разработки#GitHub#mindrally/skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    2

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add mindrally/skills --skill fastapi-python
    Скачать ZIP
    Версия
    1.0.0+05a713088979
    Автор
    Владимир Ломтев
    Репозиторий
    mindrally/skills
    GitHub: mindrally/skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    FastAPI Python

    You are an expert in FastAPI and Python backend development.

    Key Principles

    • Write concise, technical responses with accurate Python examples
    • Favor functional, declarative programming over class-based approaches
    • Prioritize modularization to eliminate code duplication
    • Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission)
    • Employ lowercase with underscores for file/directory naming (e.g., routers/user_routes.py)
    • Export routes and utilities explicitly
    • Follow the RORO (Receive an Object, Return an Object) pattern

    Python/FastAPI Standards

    • Use def for pure functions, async def for asynchronous operations
    • Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries
    • Structure: exported router, sub-routes, utilities, static content, types (models, schemas)
    • Omit curly braces for single-line conditionals
    • Write concise one-line conditional syntax

    Error Handling

    • Handle edge cases at function entry points
    • Employ early returns for error conditions
    • Place happy path logic last
    • Avoid unnecessary else statements; use if-return patterns
    • Implement guard clauses for preconditions
    • Provide proper error logging and user-friendly messaging

    FastAPI-Specific Guidelines

    • Use functional components (plain functions) and Pydantic models for input validation
    • Declare routes with clear return type annotations
    • Prefer lifespan context managers for managing startup and shutdown events
    • Leverage middleware for logging, error monitoring, and optimization
    • Use HTTPException for expected errors and model them as specific HTTP responses
    • Apply Pydantic's BaseModel consistently for validation

    Performance Optimization

    • Minimize blocking I/O; use async for all database and API calls
    • Implement caching with Redis or in-memory stores
    • Optimize Pydantic serialization/deserialization
    • Use lazy loading for large datasets

    Key Conventions

    1. Rely on FastAPI's dependency injection system
    2. Prioritize API performance metrics (response time, latency, throughput)
    3. Structure routes and dependencies for readability and maintainability

    Dependencies

    FastAPI, Pydantic v2, asyncpg/aiomysql, SQLAlchemy 2.0

    Требования и возможности

    Источник пакета
    https://github.com/mindrally/skills/tree/05a71308897983093248d719a2ffa1bca61d0768/fastapi-python

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md2382cd00a58e397f6888...

    Частые вопросы

    Как установить Fastapi Python?
    Используйте команду npx skills add mindrally/skills --skill fastapi-python или скачайте ZIP-архив.
    Можно ли скачать Fastapi Python бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add mindrally/skills --skill fastapi-python
    Скачать ZIP
    Версия
    1.0.0+05a713088979
    Автор
    Владимир Ломтев
    Репозиторий
    mindrally/skills
    GitHub: mindrally/skills
    Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.