Python Web Framework built for learning purposes.
Project description
my simple python framework is in development
Before run the framework install all packages:
pip install -r requirements.txt
Starting simple framework
run command
gunicorn app:app --bind 127.0.0.1:8010
"--bind" helps to start localhost with port 8010,
you can change port, if it already is used
Here are the links, that are implemented:
http://127.0.0.1:8010/home
http://127.0.0.1:8010/about
http://127.0.0.1:8010/hello/yourname
http://127.0.0.1:8010/tell/100
http://127.0.0.1:8010/books
http://127.0.0.1:8010/sample
http://127.0.0.1:8010/template
http://127.0.0.1:8010/json
http://127.0.0.1:8010/text
Unit tests
run command
pytest test_framework.py
for coverage percentage:
pytest --cov=. test_framework.py
Just testing WSGI files
run command
python WSGI.py
in framework dir and open
http://localhost:8005/
for reversed response:
run command
python WSGI_reverse.py
in framework dir and open
http://localhost:8006/
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
Built Distribution
Hashes for winz_simple_webframework-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bb564669e3dbcf3fb3c17f9211cd1aab76bd5dc3baee82e74c68dd999c0a574 |
|
MD5 | 9cddcdae64edfa06d7b22f3b52c76b1d |
|
BLAKE2b-256 | a22948db6f4a976dc1b0df308d7423a6733d3cf69d811d28d23ced70d993845b |
Hashes for winz_simple_webframework-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 585f5402e494badc38d80762e67686fef2a98f49f7e1d3949f1317db4fdc7d5c |
|
MD5 | 40c3b80abb686e610e19fcf63acfbee1 |
|
BLAKE2b-256 | 7c45675d5899cac4cb123491810e70aceda8d739bff6048671cd87a13f73e858 |