The easy server library for everyone.
Project description
PySGI Library, fast and simple
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.
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 usage example in examples/simple_server.py
License
MIT License
Copyright (c) 2022 Jaedson Silva
See LICENSE file to learn more about the license.
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
PySGI-1.2.10.tar.gz
(7.6 kB
view details)
File details
Details for the file PySGI-1.2.10.tar.gz
.
File metadata
- Download URL: PySGI-1.2.10.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.28.1 setuptools/63.2.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 682df46d87e59f1bccb5241e84469db7c08f1ed8f01ad3c2f6e7abef9643bdfc |
|
MD5 | 364c178309150e9e6a11598864db5db0 |
|
BLAKE2b-256 | 5fbabe5565438eb1387a6ec8f6a02a75b8624d831f0c9d4587360235ff7a1276 |