Skip to main content

pastebin-cli

Command-line interface to paste code/text to pastebin.com, written in pure Python without any external dependency. If your operating system has an old Python version: this software works from Python 3.5 to 3.8.

Note: the command-line works fine but still needs some API features, like listing user pastes.

Installation

You can either install it using pip:

pip install pastebin-cli

or download pastebin.py executable and put in your $PATH (you can rename it to pastebin).

Usage

$ pastebin --help
usage: pastebin [-h] [--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}]
                [--api-key API_KEY]
                {paste,get} ...

optional arguments:
  -h, --help            show this help message and exit
  --log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG,NOTSET}
  --api-key API_KEY

Subcommands:
  {paste,get}
    paste               Paste a file
    get                 Get a specific paste
$ ./pastebin paste --help
usage: pastebin paste [-h] [--expires-in {N,10M,1H,1D,1W,2W,1M,6M,1Y}]
                      [--privacy {public,unlisted,private}]
                      [--file-format FILE_FORMAT]
                      filename

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  --expires-in {N,10M,1H,1D,1W,2W,1M,6M,1Y}
  --privacy {public,unlisted,private}
  --file-format FILE_FORMAT

Metadata

Release files for pastebin-cli 0.1.0

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

Source distribution (sdist)

Source distribution for pastebin-cli 0.1.0
File Size Uploaded
pastebin-cli-0.1.0.tar.gz 3.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pastebin-cli 0.1.0
File Interpreter ABI Platform
pastebin_cli-0.1.0-py3.6.egg Legacy Egg format - - Details
pastebin_cli-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / pastebin-cli-0.1.0.tar.gz

Download URL pastebin-cli-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c32231f5aae8414b3d70bcaa4e9137b0676a20ac0bda4d2f45449935bec83503
BLAKE2b-256 checksum
How to use checksums
19929ceb4e127a5eec01e055def5f79e217d2f0661cb814bb863bce2cebf5731
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release files / pastebin_cli-0.1.0-py3.6.egg

Download URL pastebin_cli-0.1.0-py3.6.egg
Size 6.2 kB
Tags Egg
SHA-256 checksum
How to use checksums
cc184ffab5976cdf3b89148850c5982949cd5e33a603f9f3d56717d1c18534dc
BLAKE2b-256 checksum
How to use checksums
10a2d4789bcd74b20e1e40e0906736cc9921504ca33342d8b4d4d57ba11da3ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release files / pastebin_cli-0.1.0-py3-none-any.whl

Download URL pastebin_cli-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b1ca7e8392f0b98e614ec10e4e8f7bdb72a3161070f89b6637ad95a748762fe
BLAKE2b-256 checksum
How to use checksums
9afe5bb6a7d970e5e8477c43e71b8b8f8dbb291d6b39b0bcb727cdfec43b26cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10

Release history Release notifications | RSS feed

This release

0.1.0 This release

3 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