An easy-to-use asynchronous web framework based on ASGI.
Project description
index.py
An easy-to-use asynchronous web framework based on ASGI. Support hot overload (real).
Install
pip install -U index.py
Or get the latest version on Github
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
from index.view import View
class HTTP(View):
def get(self):
return "hello world"
Execute the command index-cli serve
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 ftp.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
index.py-0.3.3.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for index.py-0.3.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1337851514a5b60fde5e2536466ed51e546db30ff1ea32252261f1534963d85 |
|
MD5 | fbe6f7f17b79c38702edc0ace31b9f6b |
|
BLAKE2b-256 | 69fa5a3c89d96d5048a529dee17aee6084a84674dcccc2b045f6b8c3f78c596c |