Skip to main content

client interface for pastebin

Project description


Build Status Coverage Status PyPI version PyPI

dpaster is a client interface for dpaste.
It makes sharing code quite convenient.

installing dpaster

Make sure you have ~/.local/bin in your PATH.
If you haven't already, add this to your ~/.bashrc:

export PATH=$PATH:"$HOME"/.local/bin

Then run:

python3 -m pip install thepaster

using dpaster

dpaster is intented to be used as, for example:

cat | dpaster

NOTE: To specify desired lexer or desired expiry time, dpaster accepts
-l (--lexer) and/or -e (--expires) options, for instance:

cat supersecret.txt | dpaster -l _text -e onetime

...which gives back a short link to your paste.
If you want the URL to be automatically copied to clipboard, run:

dpaster config --enable-autocp

If you want a link to your raw paste, pass -r or --raw option.
You can also configure dpaster to always return raw URLs with dpaster config --enable-raw.

You can customise other options as well, such as --default-lexer, --default-expires:

dpaster config --default-lexer python (see the list of available lexers)
dpaster config --default-expires hour

If you want to view your current settings, run:

dpaster config --show


Licensed under the MIT License. For details, see LICENSE.

Project details

Release history Release notifications

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
thepaster-1.0.18.tar.gz (4.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page