a Web Framework made by Xp-op
Project description
Pjono
Web Framework for Python
About the project:
a framework for making a webserver. You can also use it to build
user interface with Components.py
Built with:
- Socket
Usage:
from Pjono import PjonoApp, Http_Response, Http_File, HTML
app = PjonoApp()
app.add_file("/style.css", Http_File("style.css", "text/css"))
@app.register("/")
def index(request):
return Http_Response(content=HTML("index.html"))
app.launch()
You can also use it to parse http request
from Pjono.PARSE import parse_request
request = """\
GET /index.html HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE5.01; Windows NT)
Host: www.example.com
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: Keep-Alive"""
print(parse_request(request))
Contributing
- Fork the project
- Create your Feature Branch:
git checkout -b feature/{feature}
- Commit your Changes:
git commit -m 'Add some AmazingFeature'
- Push to the Branch:
git push origin feature/AmazingFeature
- Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information
Quick Link
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
Pjono-0.0.3.tar.gz
(10.5 kB
view hashes)
Built Distribution
Pjono-0.0.3-py3-none-any.whl
(14.4 kB
view hashes)