Last active
August 26, 2022 12:27
-
-
Save moohax/2c5bf5cb339eedbc0e6b5a5fd8842957 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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