Skip to content

Instantly share code, notes, and snippets.

@moohax
Last active August 26, 2022 12:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moohax/2c5bf5cb339eedbc0e6b5a5fd8842957 to your computer and use it in GitHub Desktop.
Save moohax/2c5bf5cb339eedbc0e6b5a5fd8842957 to your computer and use it in GitHub Desktop.
# Requires fsspec. Sometimes installed, sometimes not.
# --
# Remote
# python -m http.server
#
# Serving HTTP on :: port 8000 (http://[::]:8000/)
import pandas as pd
# most common on web endpoints
pd.read_json("http://localhost:8000/")
# ::1 - - [26/Jun/2022 15:33:06] "GET / HTTP/1.1" 200 -
# --
# Local
# config.json
#{
# "Config": {
# "username": "svcuser",
# "password": "ThisIsMyPasswordThisIsMyGun"
# }
#}
pd.read_json("file:///path/to/config.json")
# Config
# password ThisIsMyPasswordThisIsMyGun
# username svcuser
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment