No project description provided
Project description
JSON Server
An tiny CLI to load data from a JSON File during development.
After installing `json-server` by
pip install json_server
You can run
json-server <path-to-JSON-file> <port:optional>
The port argument defaults to 5000
This shall output:
* Serving Flask app 'json_server.main' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 816-527-262
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Which is similar to what a standard Flask app logs.
Now that you have run the command, http://127.0.0.1:<port>/
shall respond with your 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-0.1.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for json_server-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3102c61de48de68d44e811398b1ccdb6ce9e14e7873d9924bb6a115136df872b |
|
MD5 | c6486b675e1ba5c03f65ee46dcf6ff44 |
|
BLAKE2b-256 | 93b59539d5ed72cc67868adde750f8c1b5b9c7ed06ab6641a30d0c558512e6aa |