detamvc


Namedetamvc JSON
Version 0.5.0 PyPI version JSON
download
home_page
Summary
upload_time2023-02-10 02:02:42
maintainer
docs_urlNone
authorMBeebe
requires_python>=3.8,<4.0
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ![DetaMVC](https://detamvc.deta.dev/assets/images/detamvc.png)    


**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
```
            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "detamvc",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "MBeebe",
    "author_email": "grow.food.everywhere@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/22/8b/5df1d79af5bffd93aee8ea5e2514e888a472ca4a769e4ba06ded2e167d64/detamvc-0.5.0.tar.gz",
    "platform": null,
    "description": "![DetaMVC](https://detamvc.deta.dev/assets/images/detamvc.png)    \n\n\n**Documentation:** [https://detamvc.deta.dev](https://detamvc.deta.dev)  \n**Source Code:** [https://github.com/pyn-sol/detaMVC](https://github.com/pyn-sol/detaMVC)  \n\n\nDetaMVC is a framework for rapidly developing and deploying web applications using:\n- [FastAPI](https://fastapi.tiangolo.com/)\n- [Jinja2](https://fastapi.tiangolo.com/advanced/templates/?h=jinja2)\n- [Deta](https://docs.deta.sh/docs/home)  \n\n\n## Installation\n```\npip install detamvc\n```\n\nOther Requirements:\n- A Deta Account. If you do not have one, go to [Deta](https://www.deta.sh/) and click 'Join Deta'\n- The [Deta CLI](https://docs.deta.sh/docs/cli/install)\n\n\n## Basics\nIf you are familiar with Ruby on Rails, the commands are very similar for creating an application. \n\n```\ndetamvc new project\n\ncd project\n\ndetamvc scaffold item name:str description:text price:float quantity:int available:bool\n```\n\nBefore running your project, be sure to set your PROJECT_KEY for Deta. You can get this from your Deta dashboard under 'settings'.\n\n\n```\necho DETA_PROJECT_KEY=\"#######_#############\" > .env\n```\n\nOr, save yourself the hassle and set your development project key using the command. Hint: Do this _before_ creating a new project.\n\n```\ndetamvc set-project-key #######_#################\n```\n\n## Run a Server Manually\n\nThis 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.\n```\ndetamvc s\n```\nor\n```\nuvicorn main:app --reload\n```\n\n## Deploy on Deta\nNow you can deploy this on Deta!\nBefore running the following, you will need to install the [Deta CLI](https://docs.deta.sh/docs/cli/install)\n```\ndeta new --project default\n```",
    "bugtrack_url": null,
    "license": "",
    "summary": "",
    "version": "0.5.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5123f38e56e2d69ed5c45306bf1654e55c74c419136ec87207cbb2c67d760925",
                "md5": "06c383773554177cdc386f385d1db5ed",
                "sha256": "de1522df033bd9ad8be471e599394b6390325b2123a5f118f068771807460517"
            },
            "downloads": -1,
            "filename": "detamvc-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "06c383773554177cdc386f385d1db5ed",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 37628,
            "upload_time": "2023-02-10T02:02:41",
            "upload_time_iso_8601": "2023-02-10T02:02:41.445804Z",
            "url": "https://files.pythonhosted.org/packages/51/23/f38e56e2d69ed5c45306bf1654e55c74c419136ec87207cbb2c67d760925/detamvc-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "228b5df1d79af5bffd93aee8ea5e2514e888a472ca4a769e4ba06ded2e167d64",
                "md5": "1855708ff2101ba14f0e0ffbf175d36d",
                "sha256": "4651d6ecee1c92aae9edb332bbcc86985e6a3d1da18ba48af08c661daa74dee4"
            },
            "downloads": -1,
            "filename": "detamvc-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1855708ff2101ba14f0e0ffbf175d36d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 24628,
            "upload_time": "2023-02-10T02:02:42",
            "upload_time_iso_8601": "2023-02-10T02:02:42.846383Z",
            "url": "https://files.pythonhosted.org/packages/22/8b/5df1d79af5bffd93aee8ea5e2514e888a472ca4a769e4ba06ded2e167d64/detamvc-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 02:02:42",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "detamvc"
}
        
Elapsed time: 0.04506s