Metadata-Version: 2.1
Name: index.py
Version: 0.2.4
Summary: Oldschool Web Development for Humans™
Home-page: https://github.com/abersheeran/index.py
Author: Aber Sheeran
Author-email: abersheeran@qq.com
License: Apache 2.0
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
Requires-Dist: uvicorn
Requires-Dist: starlette
Requires-Dist: aiofiles
Requires-Dist: jinja2
Requires-Dist: watchdog
Requires-Dist: gunicorn; sys_platform != "win32" and sys_platform != "cygwin" and sys_platform != "cli"


# index.py

Although I've never used PHP, I like its hot-swap mechanism. I expect to use index.py to make Python's Web program deployment easier.

- [Index.py Document](https://abersheeran.github.io/index.py/)

## Install

```bash
pip install -U index.py
```

Or get the latest version on Github

```bash
pip install -U git+https://github.com/abersheeran/index.py
```

## Quick use

Make a folder that name is `views` and create `index.py` in it.

Write the following in `index.py`

```python
from index.view import View


class HTTP(View):

    def get(self):
        return "hello world"
```

Execute the command `index-cli dev` in the same directory as `views`.

And then, try to change the content in `index.py`, refresh your browser, the page content will be changed.

Index.py can automatically update your Python file changes to the server, manage your index.py service, maybe you only need one ftp.


