MCPcopy
hub / github.com/ycd/manage-fastapi

github.com/ycd/manage-fastapi @1.1.1 sqlite

repository ↗ · DeepWiki ↗ · release 1.1.1 ↗
40 symbols 161 edges 28 files 1 documented · 2%
README

manage-fastapi

manage-fastapi Project generator and manager for FastAPI

manage_fastapi

<a href="https://github.com/ycd/manage-fastapi" target="_blank">
    <img src="https://img.shields.io/github/last-commit/ycd/manage-fastapi?style=for-the-badge" alt="Latest Commit">
</a>
    <img src="https://img.shields.io/github/workflow/status/ycd/manage-fastapi/Test?style=for-the-badge">
    <img src="https://img.shields.io/codecov/c/github/ycd/manage-fastapi?style=for-the-badge">



<a href="https://pypi.org/project/manage-fastapi" target="_blank">
    <img src="https://img.shields.io/pypi/v/manage-fastapi?style=for-the-badge" alt="Package version">
</a>
<img src="https://img.shields.io/pypi/pyversions/manage-fastapi?style=for-the-badge">
<img src="https://img.shields.io/github/license/ycd/manage-fastapi?style=for-the-badge">

Source Code: View it on Github


Features 🚀

  • Creates customizable project boilerplate.

  • Creates customizable app boilerplate.

  • Handles the project structuring for you.

  • Optional Dockerfile generation.

  • Optional docker-compose generation for your project needs.

  • Optional pre-commit hook generation.

Installation 📌

  • Prerequisites
    • Python 3.6 +

Manage FastAPI can be installed by running

pip install manage-fastapi 

Getting started 🎈

Easiest way to start is using the defaults:

fastapi startproject [name]

But there is an interactive mode!

fastapi startproject [name] --interactive

Command line options 🧰

Manage FastAPI provides three different commands.

You can list them with

fastapi --help

The idea is to have a highly customizable CLI, but at the same time a simple interface for new users. You can see the available options for startproject running fastapi startproject --help:

The other commands are already available but the current implementation is too shallow. More details about startapp and run commands will be provided once they have more functionalities, at the moment you can run startapp by just:

fastapi startapp {name}

On the other hand, the run command expects you to have a startproject structure:

fastapi run

License

This project is licensed under the terms of the MIT license.

Core symbols most depended-on inside this repo

remove_paths
called by 6
manage_fastapi/templates/project/hooks/post_gen_project.py
question
called by 4
manage_fastapi/helpers.py
binary_question
called by 2
manage_fastapi/helpers.py
fill_template
called by 2
manage_fastapi/generator.py
camel_to_snake
called by 1
manage_fastapi/helpers.py
generate_app
called by 1
manage_fastapi/generator.py
generate_project
called by 1
manage_fastapi/generator.py
set_packaging
called by 1
manage_fastapi/templates/project/hooks/post_gen_project.py

Shape

Function 22
Class 12
Method 6

Languages

Python100%

Modules by API surface

manage_fastapi/templates/project/hooks/post_gen_project.py7 symbols
manage_fastapi/constants.py7 symbols
manage_fastapi/main.py5 symbols
manage_fastapi/context.py5 symbols
manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/app/core/config.py4 symbols
manage_fastapi/helpers.py3 symbols
manage_fastapi/generator.py3 symbols
tests/test_startproject.py2 symbols
manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/app/database.py2 symbols
tests/test_startapp.py1 symbols
manage_fastapi/templates/project/{{ cookiecutter.folder_name }}/app/main.py1 symbols

Dependencies from manifests, versioned

fastapi0.68.0 · 1×
uvicorn0.12.2 · 1×

Datastores touched

(mysql)Database · 1 repos

For agents

$ claude mcp add manage-fastapi \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact