Skip to main content

Markdown pastebin from command line

Project description

Rentry.co is a pastebin/publishing service with markdown support, preview, custom urls and editing.

This repository contains a simple script that allows pasting and editing from command line interface.

Installation

Manually:

wget https://raw.githubusercontent.com/radude/rentry/master/rentry -O ./rentry && chmod +x ./rentry

PyPI (Make sure you are using Python3 and pip3):

pip install rentry

Usage

$ rentry --help

Usage: 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 pipe and paste it to rentry
  rentry raw -u example                    # get raw markdown text
  rentry raw -u https://rentry.co/example  # -u accepts absolute and relative urls

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rentry-1.0.1.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file rentry-1.0.1.tar.gz.

File metadata

  • Download URL: rentry-1.0.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rentry-1.0.1.tar.gz
Algorithm Hash digest
SHA256 0eb06f84e8059008a3770cccb74b8492e816bbcfc75476e95c080ec163ef674e
MD5 98ec6090a43d23e6cd9d42818b3efe44
BLAKE2b-256 e7f25bcf82795773f92809f00d3da379a16cfa7e0d3889baaee4728ca998d375

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page