sniped
sniped is a CLI tool that helps you turn code snippets into beautiful images.
Example
sniped create snappify "print('Hello, world!')" --language Python --key snappify.key --out imgs/hello_world.png
Usage
$ sniped [OPTIONS] COMMAND [ARGS]...
Options:
--install-completion: Install completion for the current shell.--show-completion: Show completion for the current shell, to copy it or customize the installation.--help: Show this message and exit.
Commands:
config: Manage the configuration for the services.create: Create a beautiful image from a snippet of code.
sniped config
Manage the configuration for the services.
Usage:
$ sniped config [options] SERVICE:[carbon|snappify]
Arguments:
SERVICE:[carbon|snappify]: [required]
Options:
--show / --no-show: Print the configuration to stdout. [default: False]--pretty / --no-pretty: Whether to use pretty printing or show plain output. [default: True]--write WRITE_PATH: File to write default config to.--help: Show this message and exit.
sniped create
Create a beautiful image from a snippet of code.
Usage:
$ sniped create [options] SERVICE:[carbon|snappify] CODE_OR_PATH
Arguments:
SERVICE:[carbon|snappify]: [required]CODE_OR_PATH: Code to include in the image or path to code file. Use '-' to read from stdin. [required]
Options:
--language LANG: Language for syntax highlighting; 'auto' only works for carbon. [default: auto]--key KEY_OR_PATH: (Path to file with) API key for Snappify.--out PATH: Write to given file instead of stdout.--theme THEME: Theme to use for syntax highlighting.--help: Show this message and exit.
Changelog
See the file CHANGELOG.md.
Metadata
Release files for sniped 1.2.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 | |
|---|---|---|---|
| sniped-1.2.0.tar.gz | 10.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sniped-1.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / sniped-1.2.0.tar.gz
| Download URL | sniped-1.2.0.tar.gz |
|---|---|
| Size | 10.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93fe85fc35977014fb0edd1a1e48bfeb8ef9e6c862431140e0034f29c1339631
|
|
BLAKE2b-256 checksum How to use checksums |
0f55fcb464ddcbd7c98c983df7b299c2e727864f4df098b319dbe43a6b0aa913
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|
Release files / sniped-1.2.0-py3-none-any.whl
| Download URL | sniped-1.2.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eecd8c446e640c37593bd23fc8deb10003885dc1dc18d0d4d39dd7c3406483fd
|
|
BLAKE2b-256 checksum How to use checksums |
9134c96b382557d62b6641116fb7ed9177bc60bdbab872f02adb1785cef1b820
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.9.7 Windows/10
|