Skip to main content

Um pacote para gerar projetos FastAPI com estrutura básica.

Project description

Fast Hard

Fast Hard is a Python package that generates a FastAPI project with a basic structure, similar to create-react-app for React. It sets up a ready-to-use FastAPI application with essential dependencies, folder structure, and configurations.

Features

  • Generates a FastAPI project with a standard folder structure.
  • Installs essential dependencies:
    • FastAPI
    • Uvicorn
    • SQLAlchemy
    • Pytest
    • Email-validator
    • Alembic (for database migrations)
  • Includes a basic .env file for environment variables.
  • Sets up Alembic for database migrations.
  • Provides a simple main.py with a "Hello World" endpoint.

Installation

You can install fast_hard via pip:

pip install fast_hard

fast-hard my_new_project

my_new_project/
├── app/
│   ├── __init__.py
│   ├── main.py
│   ├── models/
│   ├── schemas/
│   ├── routes/
│   ├── tests/
│   ├── config/
│   └── alembic/
│       ├── env.py
│       ├── script.py.mako
│       └── versions/
├── requirements.txt
├── .env
├── .gitignore
├── alembic.ini
└── README.md

# Running the Project

cd my_new_project

pip install -r requirements.txt

cd app
uvicorn main:app --reload

http://127.0.0.1:8000/

You should see the message:

{
  "Hello": "World"
}

# Link PyPi
https://pypi.org/project/fast-hard/

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

fast_hard-0.1.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_hard-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file fast_hard-0.1.1.tar.gz.

File metadata

  • Download URL: fast_hard-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for fast_hard-0.1.1.tar.gz
Algorithm Hash digest
SHA256 944544aca8853614e390e28fc10b612fa51c4fde070d0366e6e2fdb1e99dd024
MD5 5efa44797017090e6a1e616b17a775ff
BLAKE2b-256 825bb8d874086ac69c55b00833a6d1c01ec5ec4584e2dc4cabc8056914f413e7

See more details on using hashes here.

File details

Details for the file fast_hard-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: fast_hard-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for fast_hard-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da826ac1ed33bad0f607c38737c1399da4338b5b9e467f2df2d504a4854b5746
MD5 a2e6db0ac91c424b169b2a5d93126ee1
BLAKE2b-256 2b4cde95368e85f6e04cfb3a1f15f6d10047868a6031e9276702ee6306cd3bf5

See more details on using hashes here.

Supported by

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