Skip to main content

fastapi-apex: A robust FastAPI framework and scaffolding tool for rapid application development. Apex provides out-of-the-box setup for databases and implements best practices to get your FastAPI applications up and running quickly and efficiently. Start building powerful, modern web applications with Apex today.

Project description

apex_fastapi Framework

This repo contains some extra steup for an FastAPI project

  • fastapi_plus : create fast app with some default settings and handlers
  • logger_plus : logger setup for fastapi, tortoise , aws and etc.
  • schema_plus : Base module for schema
  • settings : Env base settings

Test

  1. Run docker-compose up -d in the test folder.
  2. Copy the test.env file to .env and fill in or change the values.
  3. Run export $(cat .env | xargs) to set the environment variables.
  4. Run pytest in the root folder.

Shell

  1. Instantiate class object ShellCommand
  2. Run the instance
# utils/cli.py
shell = ShellCommand(
    db_url=settings.DATABASE_URL,
    models=settings.APPLICATION_MODELS,
    )
# run shell()

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

fastapi_apex-0.1.3.tar.gz (10.6 kB view hashes)

Uploaded Source

Built Distribution

fastapi_apex-0.1.3-py3-none-any.whl (16.0 kB view hashes)

Uploaded Python 3

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