Skip to content

Instantly share code, notes, and snippets.

@lancelote
Created March 22, 2019 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lancelote/d1c74fbe8406e1b6b18172c6d4e59b3f to your computer and use it in GitHub Desktop.
Save lancelote/d1c74fbe8406e1b6b18172c6d4e59b3f to your computer and use it in GitHub Desktop.
UnsupportedTypeError_problem.datalore
{
"version":"1.0",
"data":{
"sheets":[
{
"name":"Sheet",
"blocks":[
{
"type":"CODE",
"text":"import logging\nimport requests"
},
{
"type":"CODE",
"text":"logger = logging.getLogger(__name__)"
},
{
"type":"CODE",
"text":"def get_stats():\n logger.info('pulling API')\n response = requests.get('https:\/\/pypi.org\/pypi\/requests\/json\/')\n logger.info('response %s', response.status_code)"
},
{
"type":"CODE",
"text":"def main():\n get_stats()"
},
{
"type":"CODE",
"text":"main()"
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment