dblpct-20220114.2
توضیحات
double the % to two.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | dblpct-20220114.2 |
| نام | dblpct |
| نسخه کتابخانه | 20220114.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | mollinaca |
| ایمیل نویسنده | mail@mollinaca.dev |
| آدرس صفحه اصلی | https://github.com/mollinaca/dblpct |
| آدرس اینترنتی | https://pypi.org/project/dblpct/ |
| مجوز | CC0 |
# dblpct
The % in the string given as the first argument is doubled and output to stdout.
It's my hobby CLI tool.
## install
```
# pip install dblpct
```
## how to use
ex1)
```
# dblpct http://example.com/%E3%83%86%E3%82%B9%E3%83%88URL
http://example.com/%%E3%%83%%86%%E3%%82%%B9%%E3%%83%%88URL
```
ex2)
```
# dblpct -r http://example.com/%%E3%%83%%86%%E3%%82%%B9%%E3%%83%%88URL
http://example.com/%E3%83%86%E3%82%B9%E3%83%88URL
```
`-r` means `Reverse operation` of this tool.
ex3)
```
# dblpct -r $(dblpct %%)
%%
# dblpct $(dblpct -r %%)
%%
# dblpct $(dblpct %%)
%%%%%%%%
```
## Caution
Special characters in bash, etc. are not escaped.
They will be interpreted as a command line string when entered.
ex1)
```
# dblpct FJWRF%)faw
-bash: syntax error near unexpected token `)'
```
If you want to enter special characters,
enclose them in quotes or escape them appropriately.
ex2)
```
# dblpct 'fahj4(jfawe&%%fawle$kf'
fahj4(jfawe&%%%%fawle$kf
```
نحوه نصب
نصب پکیج whl dblpct-20220114.2:
pip install dblpct-20220114.2.whl
نصب پکیج tar.gz dblpct-20220114.2:
pip install dblpct-20220114.2.tar.gz