Skip to main content

DPASTE -- a CLI paste tool

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

Usage

Paste one liners

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

Pase a file content

dpaste --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.

Variables

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.

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

More can be seen in the Dpaste documentaton.

Example

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

dpaste --file program.py --expire week --lexer python

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

Metadata

Release files for deepaste 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepaste 1.0.2
File Size Uploaded
deepaste-1.0.2.tar.gz 15.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepaste 1.0.2
File Interpreter ABI Platform
deepaste-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / deepaste-1.0.2.tar.gz

Download URL deepaste-1.0.2.tar.gz
Size 15.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a217fcde78db26955a0174de04927358e8346e29b95b95981f66c6793cb2d9f3
BLAKE2b-256 checksum
How to use checksums
a61449e19ed435cc9d8dcf5828e86617a1c34740ebb7b4853d300329577521c5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.17.0-0.rc5.102.fc36.x86_64

Release files / deepaste-1.0.2-py3-none-any.whl

Download URL deepaste-1.0.2-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0e3fdb954a67c6d350d5fbfda146a7973e2a2fd060663fc21f69bebb1f6487ba
BLAKE2b-256 checksum
How to use checksums
3b01fb7177cba6340195941e6486d09e10eca662ed45bdf3c606f503c220f9a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.2 Linux/5.17.0-0.rc5.102.fc36.x86_64

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page