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.7.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for json_server.py-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc53869e1d2859cc25fabe74603ad8e7d78a5c1876861bae2bace65fd542781b |
|
MD5 | ad2b33990a749313c4f4995aa817346c |
|
BLAKE2b-256 | 64d85fd97785886fff0c8276d6b9a21f4ea0c20947261ef14ff17a1f889b4790 |