Pygists
Just a tool to manage GitHub gists
Usage
To list all your gists with embed links use ls:
$ pygists ls -u your_username -t $GITHUB_TOKEN tomasfarias's GitHub Gist: 6d83bf247790b4116f0575ee230cc4d0 'Just a second test' Created: 2019-06-27 05:22:08 Updated: 2019-07-08 19:57:12 Embed: https://gist.github.com/tomasfarias/6d83bf247790b4116f0575ee230cc4d0.js File | Size (chars) test_2.py | 15 tomasfarias's GitHub Gist: 2be660066572b42a898c87f48b756b89 'Just a test' Created: 2019-06-27 05:20:24 Updated: 2019-07-08 19:56:51 Embed: https://gist.github.com/tomasfarias/2be660066572b42a898c87f48b756b89.js File | Size (chars) test_1.py | 15
To create a new gist from a file call:
$ pygists create path/to/gist/file.py -u tomasfarias -t $GITHUB_TOKEN -d 'Just another test' tomasfarias's GitHub Gist: c4eb4855f02e77d162a78520da50a0b9 'Just another test' Created: 2019-07-08 20:03:56 Updated: 2019-07-08 20:03:56 Embed: https://gist.github.com/tomasfarias/c4eb4855f02e77d162a78520da50a0b9.js File | Size (chars) test_3.py | 16
To update an existing gist get the ID and pass it. Use add, delete, modify to add new files to the gist, delete an existing file and modifiy the contents and name of an existing file:
$ pygists update c4eb4855f02e77d162a78520da50a0b9 -u tomasfarias -t $GITHUB_TOKEN -d "New description" --add test_new_3.py --modify old_file_name.py=path/to/new_file.py tomasfarias's GitHub Gist: c4eb4855f02e77d162a78520da50a0b9 'New description' Created: 2019-07-08 20:03:56 Updated: 2019-07-08 21:26:47 Embed: https://gist.github.com/tomasfarias/c4eb4855f02e77d162a78520da50a0b9.js File | Size (chars) test_new_3.py | 16 new_file.py | 25
Metadata
Release files for pygists 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pygists-1.1.0.tar.gz | 5.6 kB | Without provenance | Details |
Release files / pygists-1.1.0.tar.gz
| Download URL | pygists-1.1.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d148683a2833580af73007b79e9d27b0ecf644fc6182d1d693cb25c3bc62f31
|
|
BLAKE2b-256 checksum How to use checksums |
d5517903066e8778063120cc903e85503ab85423ca28d61e9bf8d89f9e469ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.1.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.1
|
Security for pygists 1.1.0
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.