PasteMe is a RESTful pastebin service. Install this CLI tool and paste right from your command-line interface.
docs | |
---|---|
tests | |
package |
Since PasteMe provides API endpoints, you can install the following Python package and paste your source codes and code snippets using your CLIs or Terminals.
$ pip install pasteme-cli
$ pasteme [OPTIONS] file.py
PASTE -> <URL>
To paste with the following attributes, run the command with the specified options and values.
title -> "Here is the Title"
line_start -> 20
line_end -> 35
language -> C++
$ pasteme --start 20 --end 35 --title "Here is the Title" --language cpp program.cpp
You will have your 15 lines of code highlighted in C++ ready to share. Also visit the manual by typing $ pasteme --help
and you have more
hints on the options and arguments.
PasteMe is being licensed under the MIT License.