Skip to main content

A FastAPI project generator and framework

Project description

Nexus-FastAPI

A powerful FastAPI project generator and framework that helps you create scalable and maintainable FastAPI applications.

Features

  • Automatic project scaffolding
  • Database integration with SQLAlchemy
  • Automatic table creation
  • CRUD operations generation
  • API documentation with Swagger UI
  • Environment configuration
  • Modular application structure

Installation

pip install nexus-fastapi

Usage

Create a new project with default settings:

nexus-fastapi create_project my_api

Create a project with custom configuration:

nexus-fastapi create_project my_api --config config.json

Sample Configuration File (config.json):

{
  "project_name": "my_fastapi_app",
  "description": "A sample FastAPI application",
  "version": "1.0.0",
  "apps": [
    {
      "name": "users",
      "models": [
        {
          "name": "User",
          "fields": [
            {
              "name": "email",
              "type": "string",
              "nullable": false
            },
            {
              "name": "username",
              "type": "string",
              "nullable": false
            }
          ]
        }
      ]
    }
  ]
}

Running the Generated Project

  1. Navigate to your project directory:

    cd my_api
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Run the application:

    uvicorn main:app --reload --host 0.0.0.0 --port 8000
    
  4. Access the API documentation:

Project Structure

my_api/
├── apps/
│   └── users/
│       ├── __init__.py
│       ├── models.py
│       ├── schemas.py
│       ├── crud.py
│       ├── service.py
│       └── routes.py
├── core/
│   ├── config/
│   │   └── settings.py
│   └── database/
│       └── base.py
├── tests/
├── .env
├── main.py
└── requirements.txt

License

MIT License

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

nexus_fastapi-0.1.0.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

nexus_fastapi-0.1.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file nexus_fastapi-0.1.0.tar.gz.

File metadata

  • Download URL: nexus_fastapi-0.1.0.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for nexus_fastapi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3df457b24980780faf20153508f3863affdf4fcc567f03f82788c5c0a7d564c0
MD5 4987731a46c14c2d296369801b8084f0
BLAKE2b-256 e667afcb2c6a6984d211671630486e4c85349f54ff7ac89aa58a65ebfd83d297

See more details on using hashes here.

File details

Details for the file nexus_fastapi-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nexus_fastapi-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for nexus_fastapi-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b3cf12758e56dfe4b0be5236e2cb8603cf3e6d78f8f3af216124844b066b6fa4
MD5 439ca374a136f5dc42fd16a08cb1e621
BLAKE2b-256 976b98562fa523f3f57e2d37884b03649db8de226d0cbc2aff2b2838b1b7fdee

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