Deepaste is a simple application to send console pastes to the dpaste.org paste service.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file deepaste-1.0.2.tar.gz
.
File metadata
- Download URL: deepaste-1.0.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.17.0-0.rc5.102.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a217fcde78db26955a0174de04927358e8346e29b95b95981f66c6793cb2d9f3 |
|
MD5 | fca5e9c33edcea6f3b8de02a3c3b3b63 |
|
BLAKE2b-256 | a61449e19ed435cc9d8dcf5828e86617a1c34740ebb7b4853d300329577521c5 |
File details
Details for the file deepaste-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: deepaste-1.0.2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.2 Linux/5.17.0-0.rc5.102.fc36.x86_64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e3fdb954a67c6d350d5fbfda146a7973e2a2fd060663fc21f69bebb1f6487ba |
|
MD5 | 019dcdc1e8d4174aafadc2e6f4252452 |
|
BLAKE2b-256 | 3b01fb7177cba6340195941e6486d09e10eca662ed45bdf3c606f503c220f9a0 |