MCPcopy Index your code
hub / github.com/ETretyakov/hero-app

github.com/ETretyakov/hero-app @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
46 symbols 202 edges 20 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Hero

FastAPI is a popular package nowadays, and I have decided to share my setup for an async web-server using this framework. The Hero app repository is an example of ultimate setup for async web-service.

Dependencies

Here is a short description of python packages used in the article (just to make a whole picture to save your time):

  1. Poetry - is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you;
  2. FastAPI - is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based on standard Python type hints;
  3. Pydantic - Data validation and settings management using Python type hinting;
  4. SQLAlchemy - SQLAlchemy is the Python SQL toolkit and Object Relational Mapper that gives application developers the full power and flexibility of SQL;
  5. SQLModel - SQLModel is a library for interacting with SQL databases from Python code, with Python objects;
  6. Alembic - Alembic is a lightweight database migration tool for usage with the SQLAlchemy Database Toolkit for Python.

Deployment

Use this command to build Docker container: docker build -t hero-app -f Dockerfile .

Core symbols most depended-on inside this repo

Shape

Function 22
Class 14
Method 5
Route 5

Languages

Python100%

Modules by API surface

app/heroes/models.py9 symbols
app/heroes/api.py8 symbols
app/heroes/crud.py6 symbols
migrations/env.py4 symbols
app/heroes/tests/tests.py4 symbols
app/core/models.py4 symbols
app/conftest.py4 symbols
migrations/versions/0001_886322ad66ff_heroes.py2 symbols
app/main.py2 symbols
app/heroes/dependencies.py1 symbols
app/core/db.py1 symbols
app/core/config.py1 symbols

For agents

$ claude mcp add hero-app \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page