Command-line interface for pastebin.com API
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pastebin-cli-0.1.0.tar.gz.
File metadata
- Download URL: pastebin-cli-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c32231f5aae8414b3d70bcaa4e9137b0676a20ac0bda4d2f45449935bec83503
|
|
| MD5 |
ae0b9f948b05600c4335186632f14e8c
|
|
| BLAKE2b-256 |
19929ceb4e127a5eec01e055def5f79e217d2f0661cb814bb863bce2cebf5731
|
File details
Details for the file pastebin_cli-0.1.0-py3.6.egg.
File metadata
- Download URL: pastebin_cli-0.1.0-py3.6.egg
- Upload date:
- Size: 6.2 kB
- Tags: Egg
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc184ffab5976cdf3b89148850c5982949cd5e33a603f9f3d56717d1c18534dc
|
|
| MD5 |
2a8d775a90212273e69a16918671de20
|
|
| BLAKE2b-256 |
10a2d4789bcd74b20e1e40e0906736cc9921504ca33342d8b4d4d57ba11da3ea
|
File details
Details for the file pastebin_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pastebin_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b1ca7e8392f0b98e614ec10e4e8f7bdb72a3161070f89b6637ad95a748762fe
|
|
| MD5 |
f4f00615bb1241014005cd4ca9091b67
|
|
| BLAKE2b-256 |
9afe5bb6a7d970e5e8477c43e71b8b8f8dbb291d6b39b0bcb727cdfec43b26cd
|