Port details on branch 2022Q2 |
- py-wsgi-intercept WSGI application in place of a real URI for testing
- 1.13.0 devel =0 1.13.0Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2020-12-05 13:49:26
- Last Update: 2024-02-21 15:07:50
- Commit Hash: 579a7cf
- Also Listed In: python
- License: MIT
- WWW:
- https://wsgi-intercept.readthedocs.io/en/latest/
- https://github.com/cdent/wsgi-intercept
- Description:
- Testing a WSGI application sometimes involves starting a server at a local host
and port, then pointing your test code to that address. Instead, this library
lets you intercept calls to any specific host/port combination and redirect them
into a WSGI application importable by your test program. Thus, you can avoid
spawning multiple processes or threads to test your Web app.
wsgi_intercept works with a variety of HTTP clients in Python 2.7, 3.5 and
beyond, and in pypy.
- urllib2
- urllib.request
- httplib
- http.client
- httplib2
- requests
- urllib3
wsgi_intercept works by replacing httplib.HTTPConnection with a subclass,
wsgi_intercept.WSGI_HTTPConnection. This class then redirects specific
server/port combinations into a WSGI application by emulating a socket. If no
intercept is registered for the host and port requested, those requests are
passed on to the standard handler.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}wsgi-intercept>0:devel/py-wsgi-intercept@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-wsgi-intercept/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-wsgi-intercept
- pkg install py39-wsgi-intercept
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-wsgi-intercept listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-wsgi-intercept
- Package flavors (<flavor>: <package>)
- py39: py39-wsgi-intercept
- distinfo:
- TIMESTAMP = 1708449366
SHA256 (wsgi_intercept-1.13.0.tar.gz) = 75a03e1d01ddb42002fb56b84acd2a7a8ece25efdd206444a13a9f1fbcfa934c
SIZE (wsgi_intercept-1.13.0.tar.gz) = 29282
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- Test dependencies:
-
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-six>=0 : devel/py-six@py39
- py39-setuptools>=63.1.0 : devel/py-setuptools@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-wsgi-intercept
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|