Skip to content

CodersOfTheNight/stubilous

Repository files navigation

stubilous

A plain simple Python http stub server inspired by https://github.com/dreamhead/moco

Build Status

Installing

pip install stubilous

Requirements

Tested on Python 2.7, 3.4 and 3.5 versions

Example config

---
server:
  port: 80
  host: localhost
  routes:
      - desc: A test route
        method: GET
        path: /test
        body: Hello!
        status: 200
      - desc: Advanced route
        method: GET
        path: /test/<name>
        body: Hello {{name}}!
        status: 200

How to use it

Launch python -m stubilous --config example.yaml

About

A plain simple Python http stub server

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages