Giter Site home page Giter Site logo

fastgen's Introduction

logo

FastGen

A CLI for your next FastAPI Project


๐Ÿ‘€ Take A Look

this is a glanc of the project structure you will have once you use FastGen

dirs_images

Navigate Quickly

installation
commands

โœจ Installation

Using pip :

$ python -m pip install fastgen

Using Poetry :

$ poetry add fastgen

๐Ÿงญ Commands

Usage:

$ fastgen [OPTIONS] COMMAND [ARGS]...

Options:

  • --install-completion: Install completion for the current shell.
  • --show-completion: Show completion for the current shell, to copy it or customize the installation.
  • --help: Show this message and exit.

Commands:

  • info
  • new

fastgen info

Usage:

$ fastgen info [OPTIONS]

Options:

  • --help: Show this message and exit.

fastgen new

Usage:

$ fastgen new [OPTIONS] โญ Project Name

Arguments:

  • โญ Project Name: required

Options:

  • --dir ๐Ÿ“ Directory Path
  • --package-manager ๐Ÿ“ฆ Package Manager: [default: pip] ( Options are pip , poetry )
  • --migrations / --no-migrations: [default: False]
  • --docker / --no-docker: [default: False]
  • --testing / --no-testing: [default: False]
  • --database ๐Ÿ“… Database: [default: postgresql] ( Options are postgresql,mysql,sqlite )
  • --orm โš™๏ธ ORM: [default: False]
  • --help: Show this message and exit.

fastgen g

Usage:

$ fastgen g [OPTIONS] <component> <component_name>

Available Components

Component Action
router generates new rotuer at app/api/routers
model generates new sqlmodel or sqlalchemy mode at app/database/models
schema generates new pydantic schema at app/api/schemas

Options

  • --model-type : available only for model components , optional values are ( sqlmodel , sqlalchemy )

  • --path : specifiy where to create the component RELATIVE TO THE CURRENT WORKING DIRECOTRY if not in default path

  • Note : the naming is preferred to be in lower case so it can be resolved correctly

Arguments

๐Ÿชฒ Encountered A Problem !

feel free to open an issue discussing the problem you faced

๐Ÿค๐Ÿป Contributing

please refer to Contribution Guide

fastgen's People

Contributors

kareemmahlees avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.