This file contains 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
#!/usr/bin/env python | |
import fileinput | |
import json | |
from pprint import pprint | |
for line in fileinput.input(): | |
if not line.startswith(("{", "[")): | |
print(line.strip()) | |
else: |
This file contains 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
# -*- coding: utf-8 -*- | |
import os | |
import click | |
class HTTPClient(object): | |
def __init__(self, token=None, debug=False, base_url=''): | |
self._token = token | |
self._debug = debug | |
self._base_url = base_url |