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

⑥ database migrate : python larafast init-dbpython larafast migratepython larafast upgradepython larafast downgrade ...

(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.4.tar.gz (8.7 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.4-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: larafastapi-0.2.8.4.tar.gz
  • Upload date:
  • Size: 8.7 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.4.tar.gz
Algorithm Hash digest
SHA256 7d26df664ffee2cc8868bdd383c03bc254144c0616f48f04343520e1ef5ba3d9
MD5 e7b61482cb39954b07e184d1717eacc0
BLAKE2b-256 27f3df4b43231d0d708c24bab728fc39a08f08337c29d7e7fdf1d71d7013307a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: larafastapi-0.2.8.4-py3-none-any.whl
  • Upload date:
  • Size: 11.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3047cad19314d86e8eb1a2006b2d091775a46ee0ee3f8e3660c23dd05a982726
MD5 8c0e43b6d4a4949a78374da482ae824c
BLAKE2b-256 4f9b61611aeaa833fe2b310f76d121659fa3e6557b4a4319a31b5cb297f9e1d1

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