Skip to main content

Github-Gist Api - python wrapper

Python wrapper for GitHub's Gist API.

Latest Version Downloads

Features

  • Create Gists and get url, script and clone link on success (can be used for copy-paste purpose too)

  • View one’s Gist(s) - name, description and it’s content

  • Edit and Delete a gist

  • Search Gist(s) of any user; fork, star and unstar them

  • List all comments on any Gist, put/edit/delete a comment on a Gist

Installation

$ pip install simplegist

Download here and run python setup.py install after changing directory to /simplegist

Generating Github API Access Token

Go to Github’s Account settings > Applications Create a new token and use it for making API requests instead of password

Example Usage

from simplegist import Simplegist

ghGist = Simplegist(username='USERNAME', api_token='API_TOKEN')
# or provide USERNAME and API_TOKEN in config.py file, so just, ghGist = Gist()

# creating gist and getting url, script and clone link
ghGist.create(name='_GISTNAME', description='_ANY_DESCRIPTION', public=1, content='_CONTENT_GOES_HERE')

# List down all the names of authenticated user's Gists
ghGist.profile().listall()

# List down only the names of recent two Gists of user '_USERNAME'
ghGist.search('_USERNAME').list(2)

# List down all the comments on gist named '_GISTNAME' of user 'USERNAME'
ghGist.comments().listall(user='_USERNAME', name='_GISTNAME')

# ...and many more...

Full Usage and Documentation

Visit here READTHEDOCS or PYTHONHOSTED

Patches and suggestions are welcome

$ git clone https://github.com/softvar/simplegist.git
$ cd simplegist

Metadata

Release files for simplegist 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for simplegist 1.0.1
File Size Uploaded Provenance
simplegist-1.0.1.tar.gz 6.0 kB Without provenance Details

Release files / simplegist-1.0.1.tar.gz

Download URL simplegist-1.0.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8405c25a685ddf8cdac172cde8d2314d76dda8a43575e44d371fb32ac26d7d4d
BLAKE2b-256 checksum
How to use checksums
981ee8ab93cac241c415bf12910894f23cda86d0b5399001ee53f56a0735910b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for simplegist 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page