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

Uploaded Python 3

File details

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

File metadata

  • Download URL: larafastapi-0.2.7.tar.gz
  • Upload date:
  • Size: 8.0 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.7.tar.gz
Algorithm Hash digest
SHA256 5467cc577d3ba2b1063084db219f0d59264d7c97809518ed7606e4baf46cf48c
MD5 87f3e8781188e10a9a47b8676e8fc14d
BLAKE2b-256 9c8698bc4dc48b14a99c25d19f1d92187c9980d8696601d3732b81e512f240d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: larafastapi-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 51c2e2da4ed743f836262eb9e4f084720142983c8053bf602cd70d7d10b5d48b
MD5 80bd18a92ecd63deb69149a0c372fe38
BLAKE2b-256 9bc6d11eaabd269c064ac76268804f0eda69d31d6c8550a7e4003e16facc3172

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