Oldschool Web Development for Humans™
Project description
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.
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 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.
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.0.tar.gz
(15.5 kB
view hashes)
Built Distribution
Close
Hashes for index.py-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d40174130cd981d8db0c34ac21c3376c534066161957386de765251cd4f1598 |
|
MD5 | 0bffe872981bc247a138796f1a36a9f6 |
|
BLAKE2b-256 | 83c8e04376b795beca7b25d36e629565af2c31a2f023e86ac47834e28d23cf6d |