Skip to main content

Create FastAPI App

Create FastAPI App is a command-line tool that allows you to quickly set up a new FastAPI project with a predefined directory structure and configurations. Inspired by create-react-app for React projects, this tool aims to simplify the initial setup process and get you up and running with FastAPI in no time.

Table of Contents

Features

  • Rapid Setup: Create a new FastAPI project effortlessly without worrying about the initial project structure and configurations.
  • Ready-to-Code: Start coding your FastAPI application right away without spending time on boilerplate code.

Prerequisites

Before using Create FastAPI App, you need to have the following tools installed on your system:

  • Python (3.6 or higher)
  • Pip (Python package manager)

Installation

You can install Create FastAPI App using pipx. Open your terminal or command prompt and run the following command:

  • pipx install create-fastapi

Usage

To create a new FastAPI project, use the create-fastapi-app command followed by the desired project name: my-fastapi-app

create-fastapi-app my-fastapi-app

By default, this will create a new FastAPI project in a directory named my-fastapi-app

Once the project is created, navigate to the project directory and start the development server:

  • cd my-fastapi-app
  • python main.py

Project structure

  • app: This directory contains the main application code.

    • main.py: Defines the main FastAPI application, including routes and endpoints.
    • models: Directory for data models and Pydantic schemas.
    • routes: Directory for organizing different API routes.
    • utils: Directory for utility functions and modules.
  • tests: Contains test files to verify the application's functionality.

  • .env: Environment variables file to store sensitive or configuration-specific data.

  • .gitignore: Specifies the files and directories to be ignored by version control (e.g., .env, __pycache__/, etc.).

  • requirements.txt: Lists the project dependencies needed to run the FastAPI application.

Testing

  • pytest .

Linting

  • ruff .

Contributing

Contributions are welcome! If you find any issues with the tool or want to suggest enhancements, please create a GitHub issue or submit a pull request.

License

Create FastAPI App is open-source software licensed under the MIT License.


Release files for create-fastapi 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for create-fastapi 0.0.11
File Size Uploaded
create_fastapi-0.0.11.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for create-fastapi 0.0.11
File Interpreter ABI Platform
create_fastapi-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 24.7 kB

Release files / create_fastapi-0.0.11.tar.gz

Download URL create_fastapi-0.0.11.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bcbc61793d814f31b05191a749f61823b179110527f18808bb3d2df50ed1033f
BLAKE2b-256 checksum
How to use checksums
73148b9ee61d3da9475a694edd53b4bc58576955833311c35f7d208cf919c1f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / create_fastapi-0.0.11-py3-none-any.whl

Download URL create_fastapi-0.0.11-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f83294ac0742291c14bbf72000d89eaa5739c64216ba414753fa5909ded6a108
BLAKE2b-256 checksum
How to use checksums
6cf72f480575b23530cd44c155b5178928597054220dc35122adfed292ae1fca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page