Skip to main content

A copypaster for console

Project description

DPASTE -- a CLI paste tool

This script can help you paste content from the CLI onto a web service at


Paste one liners

python3 --content <content> --expire <time> --lexer <content_type>

Pase a file content

python3 --file <file> --expire <time> --lexer <content_type>

Using a pipe to send pastes

You can also use a pipe to send text to dpaste, for example

journalctl -b | dpaste

When successful, the link to the pasted content will be printed to the console.


Expiration time

This variable sets how long the page will keep your snippet. You can use:

  • onetime (This will let you display once.)
  • hour (default)
  • day
  • week

Content type (lexer)

This variable tells the engine how to highlight the content.

  • txt (default)
  • bash
  • c
  • html
  • perl
  • python
  • java
  • rst
  • tex
  • vim

More can be seen in the Dpaste documentaton.


When you have a python script and you want to paste it for a week, with Python highlighting, do:

python3 --file --expire week --lexer python

You can also use -f, -e, and -l shortcuts to provide arguments.

Project details

Download files

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

Files for dpaste-console, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size dpaste-console-1.0.0.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page