Skip to main content

GIST

Command line program to upload or change/update github gists. In order to work this program needs an authorization token.

Go to https://github.com/settings/tokens to create a token. The token can then be stored into the file ~/.local/gist_token.

Example

Upload a python program with his readme file:

% gist new -f gist.py README.md -d "Upload or update github gists."
Gist ID: c7dfade18834d095a2b2168d35234ae0
Gist URL: https://gist.github.com/0x9900/c7dfade18834d095a2b2168d35234ae0

Update the README file from and existing gist:

% gist update -f README.md --gist-id c7dfade18834d095a2b2168d35234ae0
Gist ID: c7dfade18834d095a2b2168d35234ae0
Gist URL: https://gist.github.com/0x9900/c7dfade18834d095a2b2168d35234ae0

Help:

usage: gist.py [-h] {new,update,list} ...
gist.py: error: the following arguments are required: {new,update,list}
% gist new --help
usage: gist new [-h] [-f FILE [FILE ...]] [-d DESCRIPTION] [-p]

options:
  -h, --help            show this help message and exit
  -f FILE [FILE ...], --file FILE [FILE ...]
  -d DESCRIPTION, --description DESCRIPTION
  -p, --public

% gist update --help
usage: gist update [-h] -i GIST_ID [-f FILE]

options:
  -h, --help            show this help message and exit
  -i GIST_ID, --gist-id GIST_ID
  -f FILE, --file FILE

Metadata

Release files for cli-gist 0.1.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 cli-gist 0.1.1
File Size Uploaded
cli_gist-0.1.1.tar.gz 13.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cli-gist 0.1.1
File Interpreter ABI Platform
cli_gist-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / cli_gist-0.1.1.tar.gz

Download URL cli_gist-0.1.1.tar.gz
Size 13.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b11072afe6fdc850f8a9de6b797ed7b9161cdd12f27258344650a4160f7e6cbb
BLAKE2b-256 checksum
How to use checksums
d4d719d8228d2ce8e4478219ddce5744ff06923490051ecd434ef27e9dbb86e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / cli_gist-0.1.1-py3-none-any.whl

Download URL cli_gist-0.1.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b03da5fec2b5bb894bc323d13440520f9f4b01058279fbd96e8d6509fb9de35
BLAKE2b-256 checksum
How to use checksums
a01a209aa1c70d7c4daea2a26baee6b487efab6f90feda330cca654d24aafda8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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