Skip to main content

pgist

A Python command-line wrapper with github3.py library to access GitHub Gist.

Installation

You can install with pip:

pip install pgist -U

Or with easy_install:

easy_install -U pgist

Command

To upload the contents of a.py just:

pgist a.py

Or you can accept stdin as a file like this:

pgist -

type ctrl+D to end stdin and ctrl+C to abort.

Upload multiple files:

pgist a b c

Use -p to make the gist private:

pgist a.py -p

Use -d to add a description:

pgist -d "Say something" a.py

You can update existing gists with -u:

pgist b.py c.py -u 2c93e03266634cd6e273

List your public gists:

pgist -l

And list all gists including private ones:

pgist -l -A

See pgist –help for more detail.

Login

If you want to associate your gists with your GitHub account, you need to login with pgist. It doesn’t store your username and password, it just uses them to get an OAuth2 token (with the “gist” permission).

pgist --login
GitHub username(default is xxxxx): douglarek
GitHub password for douglarek:
Done ...

After you’ve done this, you can still upload gists anonymously with -a:

pgist a.py -a

Thanks

License

Licensed under the Apache 2.0 license. Bug-reports, and pull requests are welcome.

Release files for pgist 0.4.3

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

Source distribution (sdist)

Source distribution for pgist 0.4.3
File Size Uploaded
pgist-0.4.3.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pgist 0.4.3
File Interpreter ABI Platform
pgist-0.4.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size:23.2 kB

Release files / pgist-0.4.3.tar.gz

Download URL pgist-0.4.3.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c7717a59bcdef30af3875c0c2ecb40b0b26cc0b56ddab6856fb79839e1aaad46
BLAKE2b-256 checksum
How to use checksums
1e61392cb22cba47b8d4121260778d0180a29a8e50f2a5c8c0c35f4fae050dac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pgist-0.4.3-py2.py3-none-any.whl

Download URL pgist-0.4.3-py2.py3-none-any.whl
Size 14.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8b66320e61bf6d3b1375f020529fcc97d50f7d4039d5a753b2d59bc8e4e9b237
BLAKE2b-256 checksum
How to use checksums
d6afd331201e01fcc086452ddee4a54de5f7af71905894c868c0a1e56cd7a9d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4.3 This release

2 release files

0.4.2

2 release files

0.4.1

1 release file

0.4

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2.2

2 release files

0.2.1

3 release files

0.2

1 release file

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