Modules
Preconditions:
Python includes several preinstalled modules
How to check available modules without pip, conda and so forth
$ python
>>> help("modules")
Or as oneline
$ python -c "help('modules')"
Module http
server.
Python can run a http server outbox.
If you want to assign a port from range less 1500 that requires root premissions.
$ python3 -m http.server 3000
Module json
improves an output.
Python exists a json
module. Module parses and showes any valide json in readable format.
$ curl https://rickandmortyapi.com/api/character/1 -s | python3 -m json.tool
In case shows only the key as name
$ curl https://rickandmortyapi.com/api/character/1 -s | \
python3 -c "import json,sys;print(json.load(sys.stdin)['name'])"