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.
Metadata
Release files for json-server 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| json_server-0.1.3.tar.gz | 2.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| json_server-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 kB
Release files / json_server-0.1.3.tar.gz
| Download URL | json_server-0.1.3.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c512a0d8e7244f13d5deda2c6b054116b68384c0ff3a60b09defa8543b512f8e
|
|
BLAKE2b-256 checksum How to use checksums |
5fd6036d68ce5c93cabd8dd3656c188f5204272db9685c5d4e2b08852a42bca2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6
|
Release files / json_server-0.1.3-py3-none-any.whl
| Download URL | json_server-0.1.3-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5cde2ee14ae3f9feea62823522dadcbfe03846e6fa3c7500237c0d06bc995d8e
|
|
BLAKE2b-256 checksum How to use checksums |
54b758b5e522c0dfb107227e76d0b69a3bb13c00d9f7967cafca2b6713ed19d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.8.6
|