Skip to main content

Httpsrv

Simple http server for API mocking during automated testing

Example usage

Using requests library:

>>> import requests
>>> from httpsrv import Server
>>> server = Server(8080).start()
>>> server.on('GET', '/').text('hello')
>>> res = requests.get('http://localhost:8080')
>>> assert res.text == 'hello'

Installation

pip install httpsrv

Documentation

http://httpsrv.readthedocs.org

Metadata

Release files for httpsrv 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for httpsrv 0.1.6
File Interpreter ABI Platform Actions
httpsrv-0.1.6-py3-none-any.whl Python 3 none any Details for httpsrv-0.1.6-py3-none-any.whl

Release files / httpsrv-0.1.6-py3-none-any.whl

Download URL httpsrv-0.1.6-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45a75b1f059e6e5edd1db6306c493d3324b77f7d6cde9f1e9d49e91964239301
BLAKE2b-256 checksum
How to use checksums
516d12e546b23011467f5eb7adc965888857af2f55cf83cb9c4eeb319c3b9b09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for httpsrv 0.1.6

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page