Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for index.py, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size index.py-0.4.0-py2.py3-none-any.whl (19.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size index.py-0.4.0.tar.gz (16.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page