Fast Create - A CLI Tool for FastAPI Projects
Fast Create is a command-line tool that allows you to quickly generate FastAPI project structures with best practices. It automates project setup, dependencies, and server startup, making FastAPI development seamless.
🚀 Features
- 📂 Auto-generates FastAPI project structure
- 🔧 Pre-configured settings for FastAPI, Uvicorn, and Pydantic
- 🚀 Automatically starts the Uvicorn server after project creation
- 🛠️ Includes
.envsupport for configurations - ✅ Lightweight and easy to use
📌 Installation
You can install fast-create from PyPI:
pip install fast-create
🛠️ Usage
Create a New FastAPI Project
To generate a new FastAPI project, run:
fast-create new myapp
Replace myapp with your desired project name.
Folder Structure Generated
After running the command, the following project structure will be created:
myapp/
│── app/
│ ├── main.py # Entry point
│ ├── routes/
│ │ ├── __init__.py
│ │ ├── user.py
│ ├── models/
│ ├── schemas/
│ ├── services/
│── .env # Environment variables
│── requirements.txt
│── README.md
│── Dockerfile
│── .gitignore
⚡ Running the Server
After creating the project, the Uvicorn server starts automatically. However, you can manually start the server anytime:
cd myapp
uvicorn app.main:app --reload
🔧 Configuration
Environment Variables
Your .env file should contain:
SECRET_KEY=your-secret-key
DATABASE_URL=sqlite:///./database.db
MAIL_PASSWORD=your-mail-password
Ensure you update this file with your actual credentials.
📜 License
This project is licensed under the MIT License.
💡 Contributing
We welcome contributions! Feel free to fork this repo, create a new branch, and submit a pull request.
📩 Contact
For issues or suggestions, open an issue or reach out at joechristophersc@email.com.
Happy coding! 🎉
Metadata
Release files for fast-create 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fast_create-0.2.2.tar.gz | 33.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fast_create-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 79.4 kB
Release files / fast_create-0.2.2.tar.gz
| Download URL | fast_create-0.2.2.tar.gz |
|---|---|
| Size | 33.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ed50bc99372a17872c93d40825830b153437f42f17c934f05ac92033e3c3bfc
|
|
BLAKE2b-256 checksum How to use checksums |
1169ef84bf9268ce9f9969e8b324d0e7fb658003328d455d945a4b44a4739190
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / fast_create-0.2.2-py3-none-any.whl
| Download URL | fast_create-0.2.2-py3-none-any.whl |
|---|---|
| Size | 45.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4594c080c8de50641fa980afb57d68094ea85a0e33a623008ee8efcf96f87a57
|
|
BLAKE2b-256 checksum How to use checksums |
30f2bf1dae9aa1b332728dbd516549c1111a7c1f5bd051c6696bf7ca119bfd0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|