R4SAS
ac0a145865
just print json, do not encode string
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
5 months ago
R4SAS
c22c0f06ae
remove unused argparse json options, use configuration instead of args for json output
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
5 months ago
R4SAS
88ea07dba2
json output for send command ( closes #39 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
5 months ago
Benjamin Renard
063ec9d881
Remove dependency on deprecated distutils.util.strtobool helper
...
According to PEP 632 recomendations, reimplementing our own:
https://www.python.org/dev/peps/pep-0632/#migration-advice
5 months ago
jebcoat
01d3d881b1
changed default expire value ( #43 )
...
* changed default expire value
* Delete extra quote
---------
Co-authored-by: R4SAS <r4sas@users.noreply.github.com>
5 months ago
Benjamin Renard
869cf130a4
Fix pycryptodome support when pycrypto is not available
5 months ago
Benjamin Renard
b40f48295a
Add CLI autocompletion using argcomplete
5 months ago
R4SAS
3f30828e1a
handle errors when trying to get instance jsonld schema
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
8c5f93487a
set proxy and auth in API client session ( #41 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
46149f868b
authorization options ( #41 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
a7d62df966
add get --output option for decoded data ( #40 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
08dbceebc6
fix proxy usage with SOCKS ( #40 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
a3386131a7
0.3.5
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
43c5ef9618
fix usage of debug option when command is not provided ( closes #38 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
ab7b2c060c
0.3.4
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
b35fd9f4b9
fix reading options from config file ( #37 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
c860fec339
[gha] pyinstall binaries build
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
7ecb501627
remove unused imported function
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
7b90b6a772
Add URL support for paste deletion, rewrite info parsing code
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2 years ago
R4SAS
3965efef89
make additional options configurable with file ( #36 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
906c14fddf
0.3.2
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
0e61d05c9f
update documentation ( closes #25 , #26 , #31 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
05c1938aa6
[codacy] except ValueError
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
369738ea50
Support full URL in get command
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
Georg
7bd3ef22b9
Reduce unhandled shortening exceptions ( #35 )
...
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
3 years ago
Georg
f05f65ea61
Set maxsplit in configuration parser ( #34 )
...
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
3 years ago
R4SAS
3c2cdb10ac
fix config file path list
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
b4ffc1a06b
[shortener] fix typos
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
58645e1d32
[codacy] do not redefine built-in 'list'
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
82ca95f01a
implement custom shorter url support ( #28 )
...
Usage: set "--short-api" to "custom", provide url with "--short-url" to shorter
service which returns short link in text form. For paste url mask "{{url}}" must
be used. Link queried with GET request.
Example for Shlink service:
https://doma.in/rest/v2/short-urls/shorten?apiKey=YOURKEY&longUrl={{url}}&format=txt
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
5589ba0437
add "mirrors" option to provide urls for mirrors links ( closes #33 )
...
Signed-off-by: R4SAS <r4sas@i2pmail.org>
3 years ago
R4SAS
6c9a5c95b6
add verbosity flag (-v), closes #32
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
4 years ago
R4SAS
94023a986d
remove unused exception variable
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
5909e7330b
validate config file for empty lines ( closes #24 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
86061e595c
do not calculate tag size twice
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
49362c70a6
get encryption options from paste ( closes #22 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
70328903fa
include license and requirements in source archive
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
29498b9315
make codacy happy
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
19f130feb1
add launch arguments for get and delete, check if pycrypto used
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
682b47fbd3
0.3.0
...
New:
* Added validation of PrivateBin instance URL - #18 (it must contain trailing slash because POST is used)
* URL shortener support with various supported services - #19
* Shortener configuration, certificate validation and insecure warning settings can be configured in config file or via env
Changed:
* Restructured some parts of code by splitting big code chunks in funtions (encrypt/decrypt)
* Rework error messaging repeatable code (moved in utils)
* Reduce code duplication (requests session configuring)
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
9d82c727b6
[shortener] move service-depend init code to functions
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
c425d86ed6
[shortener] remove not completed bitly support code
...
Anyone can request to add support later, so for now I removing that code due to lack of use.
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
3ed06686ab
Codacy: fix W0106
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
7e4fb0a8c4
split encrypt and decrypt code in separated functions by paste version
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
ebfe0c48a0
[shortener] separate services related code in functions
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
45d854e590
[shortener] add is.gd, v.gd and cutt.ly services support
...
Start realisation of bitly support.
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
92c38344e3
add tinyurl support
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
b596f42b7e
fix response handler ( closes #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
86c5051fcf
move 'requests' configuration code in separate function
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
f838f8ee94
fix codacy issues
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago