Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/radude/rentry
Markdown pastebin from command line
https://github.com/radude/rentry
cli console markdown markdown-editor markup paste pastebin pastebin-client pastebin-service publishing shell terminal
Last synced: 23 days ago
JSON representation
Markdown pastebin from command line
- Host: GitHub
- URL: https://github.com/radude/rentry
- Owner: radude
- License: mit
- Created: 2018-01-11T11:33:51.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-22T10:39:32.000Z (4 months ago)
- Last Synced: 2024-09-30T00:44:20.459Z (about 1 month ago)
- Topics: cli, console, markdown, markdown-editor, markup, paste, pastebin, pastebin-client, pastebin-service, publishing, shell, terminal
- Language: Python
- Homepage: https://rentry.co
- Size: 16.6 KB
- Stars: 460
- Watchers: 9
- Forks: 23
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - radude/rentry - Markdown pastebin from command line (Python)
- awesome-starred - radude/rentry - Markdown pastebin from command line (markdown)
README
# rentry
[Rentry.co](https://rentry.co) is markdown-powered paste/publishing service with preview, custom urls and editing.
This repository contains a simple script that allows pasting and editing from command line interface.
## Installation##### Manually:
```sh
wget https://raw.githubusercontent.com/radude/rentry/master/rentry -O ./rentry && chmod +x ./rentry
```##### [PyPI](https://pypi.python.org/pypi/rentry):
```sh
pip3 install rentry
```pip install -r 'requirements.txt'
cp env_example .env
## Usage```console
$ rentry --helpUsage: rentry {new | edit | raw} {-h | --help} {-u | --url} {-p | --edit-code} text
Commands:
new create a new entry
edit edit an existing entry
raw get raw markdown text of an existing entry
Options:
-h, --help show this help message and exit
-u, --url URL url for the entry, random if not specified
-p, --edit-code EDIT-CODE edit code for the entry, random if not specified
Examples:
rentry new 'markdown text' # new entry with random url and edit code
rentry new -p pw -u example 'text' # with custom edit code and url
rentry edit -p pw -u example 'text' # edit the example entry
cat FILE | rentry new # read from FILE and paste it to rentry
cat FILE | rentry edit -p pw -u example # read from FILE and edit the example entry
rentry raw -u example # get raw markdown text
rentry raw -u https://rentry.co/example # -u accepts absolute and relative urls
```##### Url
Optional Url can be set (`-u, --url URL`)
It goes rentry.co/HERE. If no Url was set then random Url will be generated automatically.##### Edit code
Optional edit code can be set (`-p, --edit-code EDIT-CODE`)
It can be used to edit the entry later. If no edit code was set then random edit code will be generated automatically. Generated edit code will be shown to you only once, so remember it or save it. You can share this code with anyone so a group of people can edit the same entry.