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.py, you can specify your own database information.

the model documentation is in https://tortoise.github.io.

(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.8.1.tar.gz (8.5 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.8.1-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: larafastapi-0.2.8.1.tar.gz
  • Upload date:
  • Size: 8.5 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.8.1.tar.gz
Algorithm Hash digest
SHA256 1b674a6f08b67a518b33a282ef49434ea8b5b08f5d09054fda061d1f1d1e7145
MD5 317d0512e8a9862d8e07f4432b212ae6
BLAKE2b-256 fde80a0cd3cd08d485025be749c78d2e01afd01b3d1e1e07b018f2220149cea9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: larafastapi-0.2.8.1-py3-none-any.whl
  • Upload date:
  • Size: 11.1 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.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2f704758e96726dfdf5f5a3313c5201843112700eb594742e22b80df5f352a9
MD5 637b1e6adc2c29452be0a4c7de1ee9f4
BLAKE2b-256 35546dbba93a0847eefcb03173cc9f58cf78ba11acea14d629649237ada0e132

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