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


Release history Release notifications | RSS feed

This version

0.4.0

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.4.0.tar.gz (16.9 kB view hashes)

Uploaded Source

Built Distribution

index.py-0.4.0-py2.py3-none-any.whl (19.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page