Skip to main content

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


Download files

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

Source Distribution

winz_simple_webframework-0.1.15.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

winz_simple_webframework-0.1.15-py3-none-any.whl (5.8 kB view hashes)

Uploaded 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