Skip to main content

Wrapper for initializing FastAPI projects - Create Fastapi App

Project description

Create FastAPI App (cfa)

Create and manage FastAPI applications

Quick Tour

Follow these steps to set up a FastAPI project. See the documentation for more details.

Installation

This is a pip package. Thus, the only thing you need to do, is to run:

pip install create-fastapi-app

Usage

To create a new applications at a directory ~/my_fastapi_dir, run:

cfa create ~/my_fastapi_dir

Options

Auth

You can choose from three auth setups:

  • none - no auth (default)

  • self - self-managed auth

    cfa create ~/my_fastapi_dir --auth=self
    

    Will create a users table and auth mechanisms for authorizing requests

  • backend - auth managed by other backend

    cfa create ~/my_fastapi_dir --auth=backend
    

    Will create a logic for authorizing requests via external backend API. Remember to set the BACKEND_URL env var, as well as the GET_USER_BY_TOKEN_ENDPOINT env variable.

    When trying to authorize, by default the app will call an endpoint at http://{BACKEND_URL}/{GET_USER_BY_TOKEN_ENDPOINT}/{token}. Make sure to have this endpoint and it returns a user object (with name, surname, email, etc)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

create-fastapi-app-0.4.4.tar.gz (47.5 kB view details)

Uploaded Source

Built Distribution

create_fastapi_app-0.4.4-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

Details for the file create-fastapi-app-0.4.4.tar.gz.

File metadata

  • Download URL: create-fastapi-app-0.4.4.tar.gz
  • Upload date:
  • Size: 47.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for create-fastapi-app-0.4.4.tar.gz
Algorithm Hash digest
SHA256 a4f9f109e7f1b6a4aed7310c6450f9f1645531e0f4e4ea1b8162a1c1faab673a
MD5 341fe62b8b9f154c8becb6889acce680
BLAKE2b-256 fe001fc8cf92753e55bc831d640753751a8fb28658c3336e4f3446552d2b7486

See more details on using hashes here.

File details

Details for the file create_fastapi_app-0.4.4-py3-none-any.whl.

File metadata

File hashes

Hashes for create_fastapi_app-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cdd8c15774d1f64349ad37b39df100dd09d172d562f2f3193ea0518aaec500cb
MD5 2e42a0243ad1273d6da6ac134bfda885
BLAKE2b-256 b957c01754b6527bd4ea3c99eb3dd7d73feafad519a8c830f5dffe91c2689556

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page