Skip to main content

mkgist

A small utility for making gists. When I need to share code snippets online, the formatting always ends up totally messed up when I copy-paste manually. This alleviates that.

Setup

With pip

The easiest way to get a copy is through pip3:

pip3 install mkgist

Annoying things happen, at least on my system, without pip3. I'll look into it at some point.

Manual

To install dependencies, run pip install -r requirements.txt after installing. I don't use this within a virtual environment, but doing so would look something like this:

virtualenv -p $(which python3) $HOME/virtualenv/mkgist
source $HOME/virtualenv/mkgist/bin/activate

Usage

mkgist filenames [-d "description"] [--public] [--raw] [--nocopy]
  • If no filenames are entered, the contents of the gist are read from STDIN.
  • The location of the created gist is printed to stdout.
  • Gists are secret by default, but can be made public with --public. (Secret gists aren't indexed by search engines)
  • --raw returns a link to the raw hosted file, which you can then get with curl or wget. If multiple files are created with this flag, the URLs are always printed to stdout.
  • By default, the URL of the created Gist is copied to the clipboard. --nocopy prints the link to stdout instead, not overwriting the clipboard.

Metadata

Release files for mkgist 3.5

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

Source distribution (sdist)

Source distribution for mkgist 3.5
File Size Uploaded
mkgist-3.5.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkgist 3.5
File Interpreter ABI Platform
mkgist-3.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / mkgist-3.5.tar.gz

Download URL mkgist-3.5.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
058f6e15dc7f370123f103760d1e8441b9ea2a95bbfd4a67f3fce8b8e2bf0a8f
BLAKE2b-256 checksum
How to use checksums
b678f3e41ebbac5c4dc06c7c3ad96d0d44991abf4cd74714aaad41304cffaa98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release files / mkgist-3.5-py3-none-any.whl

Download URL mkgist-3.5-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f26a6d76b232e8d31e8ee211af534a6e9f9ad7279a576df422389e078b3e869c
BLAKE2b-256 checksum
How to use checksums
b9dade5bdf29f437996bbe08b47733636827987afbc6decd0bfb07084f9bb620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

3.5 This release

2 release files

3.4

2 release files

3.3

2 release files

3.2

2 release files

3.1

2 release files

3.0

2 release files

2.1

2 release files

2.0

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