Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turicas/pastebin-cli
Command-line interface to paste code/text to pastebin.com
https://github.com/turicas/pastebin-cli
Last synced: 26 days ago
JSON representation
Command-line interface to paste code/text to pastebin.com
- Host: GitHub
- URL: https://github.com/turicas/pastebin-cli
- Owner: turicas
- License: lgpl-3.0
- Created: 2020-05-24T01:14:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-17T15:54:17.000Z (over 3 years ago)
- Last Synced: 2024-09-29T23:14:48.322Z (about 1 month ago)
- Language: Python
- Size: 7.81 KB
- Stars: 15
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - turicas/pastebin-cli - Command-line interface to paste code/text to pastebin.com (Python)
README
# 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`:
```shell
pip install pastebin-cli
```or download `pastebin.py` executable and put in your `$PATH` (you can rename it
to `pastebin`).## Usage
```shell
$ 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_KEYSubcommands:
{paste,get}
paste Paste a file
get Get a specific paste
``````shell
$ ./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]
filenamepositional arguments:
filenameoptional 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
```