A simple JSON server
Project description
json-server.py
Fake REST API with zero coding.
This project is heavily inspired by json-server in JavaScript.
Requires Python 3.6+.
Installation
It's highly recommended to install with pipx.
$ pipx install json-server.py
Or install with pip at your own risk:
$ pip3 install json-server.py
Usage
Usage: json-server [OPTIONS] [FILENAME]
Options:
-b, --bind TEXT the address to bind, default as `:3000`
--help Show this message and exit.
Examples
# Start with default config
$ json-server
# Listen on port 3000
$ json-server -b :3000
# Specify a json file
$ json-server db.json
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json-server.py-0.1.8.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for json_server.py-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7e1b946c2e7b1063ae19b47353be6586974e4da55437ee21b9773186bc0067 |
|
MD5 | 096995ce15948f51e34327de16b70779 |
|
BLAKE2b-256 | 42d8da3512d5d29503f62cb58b2505f1101fd421dfd69fa653537e3f9597c238 |