Last updated:
0 purchases
PySGI 1.3.3
PySGI Library
PySGI is a WSGI library that allows you to receive and handle HTTP requests, giving access to various features, such as:
Handle all response and request headers;
Get or set all cookies coming from the browser;
Add or get the body of an HTTP response or request;
Can get parameters from URL;
Get values from a dynamic route;
Returning JSON and other data types.
You can learn how to use PySGI in the project's official documentation. See CHANGELOG.md on GitHub for changes made to each release.
Example of use
Here's a brief demonstration of using the PySGI library to create a simple web server:
from pysgi import PySGI
server = PySGI()
@server.route('/')
def index():
return 'Hello World from PySGI!'
if __name__ == '__main__':
server.run()
You can find this and other examples in the example usage files.
License
MIT License
Copyright (c) 2022 Jaedson Silva
See LICENSE file to learn more about the license.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.