deepaste-1.0.2
توضیحات
Deepaste is a simple application to send console pastes to the dpaste.org paste service.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | deepaste-1.0.2 |
| نام | deepaste |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Lukas Ruzicka |
| ایمیل نویسنده | lruzicka@redhat.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/deepaste/ |
| مجوز | GPL 3.0 |
# 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](https://dpaste.readthedocs.io/en/latest/index.html).
## 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.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.27.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10,<4.0 | Python |
نحوه نصب
نصب پکیج whl deepaste-1.0.2:
pip install deepaste-1.0.2.whl
نصب پکیج tar.gz deepaste-1.0.2:
pip install deepaste-1.0.2.tar.gz