detamvc-0.5.0
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | detamvc-0.5.0 |
| نام | detamvc |
| نسخه کتابخانه | 0.5.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | MBeebe |
| ایمیل نویسنده | grow.food.everywhere@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/detamvc/ |
| مجوز | - |

**Documentation:** [https://detamvc.deta.dev](https://detamvc.deta.dev)
**Source Code:** [https://github.com/pyn-sol/detaMVC](https://github.com/pyn-sol/detaMVC)
DetaMVC is a framework for rapidly developing and deploying web applications using:
- [FastAPI](https://fastapi.tiangolo.com/)
- [Jinja2](https://fastapi.tiangolo.com/advanced/templates/?h=jinja2)
- [Deta](https://docs.deta.sh/docs/home)
## Installation
```
pip install detamvc
```
Other Requirements:
- A Deta Account. If you do not have one, go to [Deta](https://www.deta.sh/) and click 'Join Deta'
- The [Deta CLI](https://docs.deta.sh/docs/cli/install)
## Basics
If you are familiar with Ruby on Rails, the commands are very similar for creating an application.
```
detamvc new project
cd project
detamvc scaffold item name:str description:text price:float quantity:int available:bool
```
Before running your project, be sure to set your PROJECT_KEY for Deta. You can get this from your Deta dashboard under 'settings'.
```
echo DETA_PROJECT_KEY="#######_#############" > .env
```
Or, save yourself the hassle and set your development project key using the command. Hint: Do this _before_ creating a new project.
```
detamvc set-project-key #######_#################
```
## Run a Server Manually
This assumes you have uvicorn installed. You can run with other servers as you wish - just set up like you would for a normal [FastAPI](https://fastapi.tiangolo.com/deployment/manually/ "Run a Server Manually - Uvicorn") application.
```
detamvc s
```
or
```
uvicorn main:app --reload
```
## Deploy on Deta
Now you can deploy this on Deta!
Before running the following, you will need to install the [Deta CLI](https://docs.deta.sh/docs/cli/install)
```
deta new --project default
```
نیازمندی
| مقدار | نام |
|---|---|
| >=0.4.1,<0.5.0 | typer[all] |
| >=0.78.0,<0.79.0 | fastapi |
| >=3.1.2,<4.0.0 | Jinja2 |
| >=1.1.0,<2.0.0 | deta |
| >=1.2.0,<2.0.0 | odetam |
| >=0.0.5,<0.0.6 | python-multipart |
| >=0.20.0,<0.21.0 | python-dotenv |
| >=8.5.7,<9.0.0 | mkdocs-material |
| >=1.2.0,<2.0.0 | authlib |
| >=2.1.2,<3.0.0 | itsdangerous |
| >=0.23.1,<0.24.0 | httpx |
| >=2.6.0,<3.0.0 | pyjwt |
| >=1.7.4,<2.0.0 | passlib[bcrypt] |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl detamvc-0.5.0:
pip install detamvc-0.5.0.whl
نصب پکیج tar.gz detamvc-0.5.0:
pip install detamvc-0.5.0.tar.gz