Skip to main content

A simple JSON server

Project description

json-server.py

PyPI

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


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)

Uploaded Source

Built Distribution

json_server.py-0.1.7-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page