simplegist
simplegist copied to clipboard
Advanced python wrapper for Github Gist API
Addresses https://github.com/softvar/simplegist/issues/8
I just pip installed simplegist in a fresh virtualenv and Python 3.7.6 but the basic import from the README is broken: ```python In [1]: from simplegist import Simplegist --------------------------------------------------------------------------- ImportError...
```python In [4]: sg.create(name='testing123', content='hello world') --------------------------------------------------------------------------- Exception Traceback (most recent call last) in ----> 1 sg.create(name='testing123', content='hello world') ~/dev/simplegist/simplegist/__init__.py in create(self, **args) 112 } 113 return response --> 114...
The README and docs mention a config.py file that can be used to specify the username and token, but it's not clear where this file is expected to be located.
Imports were incorrect -- had a lot of missing periods that were throwing errors. The json post for "public" was of the wrong type (int instead of bool).
Often one needs information from the 'files' section of the Gist response. For example, it contains the raw URL of the created gist, which cannot be derived from other fields....
Update and please fix bug "ImportError: cannot import name 'Simplegist' from 'simplegist'"