This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Help us improve Python packaging - Donate today!
Project Description

Create fake HTTP servers with simple stanzas.

This module allows you to easily create “dummy” servers from simple descriptive text. Need a dummy server for testing, or maybe the service you’re trying to test doesn’t have a “stage” environment? That’s what this is for.

Installation

You can install the extension with pip like

::
pip install dumdum

Usage

dumdum is both a command-line utility and a library. It takes a simple _stanza_ format and generates a web server with endpoints from that. E.g. to do “hello world” you could do

printf "
> GET
> /hello
< body world
.
" | dumdum

Then you can test with

::

% curl http://localhost:8001/hello

> GET /hello HTTP/1.1 > Host: localhost:8001 > User-Agent: curl/7.51.0 > Accept: / > * HTTP 1.0, assume close after body < HTTP/1.0 200 OK < Date: Wed, 17 May 2017 18:43:39 GMT < Server: WSGIServer/0.1 Python/2.7.13 < Content-type: text/plain < Content-Length: 7

world

This will create a server listening on the default port (8001). Dumdum is a WSGI compliant library, so you can easily serve it from your own code like

::

from wsgiref.simple_server import make_server from dumdum import Dumdum

dum = Dumdum(“”” > GET > /hello < body world . “”“) srv = make_server(”, 5000, dum.server) srv.serve_forever()

Release History

Release History

0.1.2

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.1.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dumdum-0.1.2-py2-none-any.whl (12.6 kB) Copy SHA256 Checksum SHA256 py2 Wheel May 19, 2017
dumdum-0.1.2.tar.gz (6.7 kB) Copy SHA256 Checksum SHA256 Source May 19, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting