Simple URL dispatcher that passes HTTP requests to a WSGI application based on a matching regular expression and an optional HTTP request method.
Usage example:
import urlrelay
# Simple URL to application mapping
@urlrelay.url('^/$')
def index(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
return ['Home Page']
# "RESTful" URL to application mapping
@urlrelay.url('^/hello_world$', 'GET')
def hello_world(environ, start_response):
start_response('200 OK', [('Content-type', 'text/plain')])
return ['Hello World']
# URL to on-disk application mapping
urlrelay.register('^/ondisk$', 'module.on_disk')
if __name__ == '__main__':
from wsgiref.simple_server import make_server
http = make_server('', 8080, urlrelay.URLRelay())
http.serve_forever()
Metadata
Release files for urlrelay 0.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| urlrelay-0.7.1.zip | 15.0 kB | Without provenance | Details for urlrelay-0.7.1.zip | |
| urlrelay-0.7.1.tar.gz | 10.4 kB | Without provenance | Details for urlrelay-0.7.1.tar.gz | |
| urlrelay-0.7.1.tar.bz2 | 10.5 kB | Without provenance | Details for urlrelay-0.7.1.tar.bz2 |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| urlrelay-0.7.1.win32.exe | Details for urlrelay-0.7.1.win32.exe | |||
| urlrelay-0.7.1-py2.5.egg | Legacy Egg format | - | - | Details for urlrelay-0.7.1-py2.5.egg |
Total release size: 135.6 kB
Release files / urlrelay-0.7.1.zip
| Download URL | urlrelay-0.7.1.zip |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50b816789963c2850a4f6f3c07f811f07db7c9e9f47ec0ee3e0ac0257599a937
|
|
BLAKE2b-256 checksum How to use checksums |
03dc37666b179975601fbbe48412f1aaba3a7b23c963edd7de9b30fa0ffbdf64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / urlrelay-0.7.1.tar.gz
| Download URL | urlrelay-0.7.1.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3cb61b471075ecfc77b6e8b3a6eae93d3b9156de2e7cd339fb968a56c3807802
|
|
BLAKE2b-256 checksum How to use checksums |
a01b05f82f0a1a58d7e923601f4fdb8513af400bfe2db568886a1fabb470b8d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / urlrelay-0.7.1.tar.bz2
| Download URL | urlrelay-0.7.1.tar.bz2 |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4344348075f856e43924dc8608945b829c0d8f033e85b27fa0f25dbfb561ed89
|
|
BLAKE2b-256 checksum How to use checksums |
84ca5b92a491a7a13214da4982504bf6102dcda4ed3e0547ca6e697cc6269d93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / urlrelay-0.7.1.win32.exe
| Download URL | urlrelay-0.7.1.win32.exe |
|---|---|
| Size | 74.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7e5c047aa5037ab02b35929cd3d08f328c9a4f498884abe9095a21fddadf7788
|
|
BLAKE2b-256 checksum How to use checksums |
7a03263f5e6e97998363fcf16b047b89732df1af3866d14d86c8d7bd67f82647
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / urlrelay-0.7.1-py2.5.egg
| Download URL | urlrelay-0.7.1-py2.5.egg |
|---|---|
| Size | 24.8 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
a5cfd38e65ec925f7eca4b29768c66bf8eaed1c94cdbc025d670f0d0e8f08bbc
|
|
BLAKE2b-256 checksum How to use checksums |
59ba7650679dcdb512ebe0bfec7fa53938ac6fc7fb9775e39d828e34e38adcdb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for urlrelay 0.7.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.