Skip to main content

A framework for FastAPI similar to Laravel

Project description

LaraFastAPI

A framework for FastAPI similar to Laravel

install

(1) install: pip install LaraFastAPI

(2) build application directories: lara_post_install

(3) run the app: uvicorn main:app --reload

usage

(1) command

① create controller : python larafast make:controller User

② create api-controller : python larafast make:api User

③ create restful-controller : python larafast make:rest User

④ create model : python larafast make:model User

⑤ run app : python larafast dev

(2) model

the database config file is in the /config/database.py, you can specify your own database information.

the model documentation is in https://orm.masoniteproject.com/models.

(3) controller & views

the controller file is in the /app/controllers directory, and the view files are in the /app/views directory.

the view enginer is using jinja2 template.

(4) publish

gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker -b 0.0.0.0:8000 --timeout 120

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

larafastapi-0.2.5.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

larafastapi-0.2.5-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file larafastapi-0.2.5.tar.gz.

File metadata

  • Download URL: larafastapi-0.2.5.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for larafastapi-0.2.5.tar.gz
Algorithm Hash digest
SHA256 a94fe063fbe0b2a277a3d69c2385b2962f52aa0850552a5c838836a9b124a733
MD5 4fcd8fef06c10782b5e791ea1929aa57
BLAKE2b-256 f4744d588808e65611c7cc032e3fe36ec1ea0f582c5c094e34c4f565c8a23151

See more details on using hashes here.

File details

Details for the file larafastapi-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: larafastapi-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for larafastapi-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b39268b16cffec34eac87f2df0fde2c394622b9ab2d021701dd6ad10b21e1858
MD5 c8a9686dcbe0293e193c52af5519b456
BLAKE2b-256 b778fda42708b2c9c183561396ee483069468be221534d91441159236e82ffcf

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