122 Commits

Author SHA1 Message Date
R4SAS
a9a4079855 update README
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-10 22:29:31 +03:00
R4SAS
3965efef89 make additional options configurable with file (#36)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-02-02 16:09:25 +03:00
R4SAS
51170975c7 add PyInstaller spec file, PrivateBin icon
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-24 22:39:03 +03:00
R4SAS
cc791da03c fix README for correct output from rst
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-24 20:33:55 +03:00
R4SAS
906c14fddf 0.3.2
Signed-off-by: R4SAS <r4sas@i2pmail.org>
0.3.2
2022-01-24 20:22:32 +03:00
R4SAS
0e61d05c9f update documentation (closes #25, #26, #31)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-24 19:06:29 +03:00
R4SAS
05c1938aa6 [codacy] except ValueError
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-24 08:12:08 +03:00
R4SAS
369738ea50 Support full URL in get command
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-24 08:06:36 +03:00
Georg
7bd3ef22b9 Reduce unhandled shortening exceptions (#35)
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2022-01-24 07:36:23 +03:00
Georg
f05f65ea61 Set maxsplit in configuration parser (#34)
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
2022-01-24 07:13:26 +03:00
R4SAS
3c2cdb10ac fix config file path list
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-11 14:15:05 +03:00
R4SAS
28f7c09f83 [readme] update codacy badge
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-10 12:26:20 +03:00
R4SAS
b4ffc1a06b [shortener] fix typos
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-10 11:42:05 +03:00
R4SAS
58645e1d32 [codacy] do not redefine built-in 'list'
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-10 02:25:16 +03:00
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>
2022-01-10 02:10:00 +03:00
R4SAS
5589ba0437 add "mirrors" option to provide urls for mirrors links (closes #33)
Signed-off-by: R4SAS <r4sas@i2pmail.org>
2022-01-10 01:24:24 +03:00
r4sas
6c9a5c95b6 add verbosity flag (-v), closes #32
Signed-off-by: r4sas <r4sas@i2pmail.org>
2021-06-04 20:13:51 +00:00
dependabot-preview[bot]
505a0104ca Upgrade to GitHub-native Dependabot (#30)
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-05-01 21:30:02 +03:00
r4sas
94023a986d remove unused exception variable
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-22 11:33:34 +00:00
r4sas
5909e7330b validate config file for empty lines (closes #24)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-22 11:22:21 +00:00
r4sas
d0f23094bc update gitignore
Signed-off-by: r4sas <r4sas@i2pmail.org>
0.3.1
2020-06-19 14:35:51 +00:00
r4sas
86061e595c do not calculate tag size twice
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-04 15:31:36 +00:00
r4sas
49362c70a6 get encryption options from paste (closes #22)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-06-04 15:29:04 +00:00
r4sas
70328903fa include license and requirements in source archive
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-04-11 17:59:19 +00:00
r4sas
29498b9315 make codacy happy
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-01-07 00:58:19 +00:00
r4sas
19f130feb1 add launch arguments for get and delete, check if pycrypto used
Signed-off-by: r4sas <r4sas@i2pmail.org>
2020-01-06 18:22:11 +00:00
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>
0.3.0
2019-09-20 10:50:06 +00:00
r4sas
9d82c727b6 [shortener] move service-depend init code to functions
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-20 06:12:10 +00:00
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>
2019-09-20 06:00:08 +00:00
r4sas
3ed06686ab Codacy: fix W0106
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-19 00:10:39 +00:00
r4sas
7e4fb0a8c4 split encrypt and decrypt code in separated functions by paste version
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 23:48:46 +00:00
r4sas
ebfe0c48a0 [shortener] separate services related code in functions
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 23:22:56 +00:00
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>
2019-09-18 21:09:16 +00:00
r4sas
18d79c8e04 add .gitattributes
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 19:07:15 +00:00
r4sas
92c38344e3 add tinyurl support
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 19:01:41 +00:00
r4sas
b596f42b7e fix response handler (closes #19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 13:46:30 +00:00
r4sas
86c5051fcf move 'requests' configuration code in separate function
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 12:02:41 +00:00
r4sas
f838f8ee94 fix codacy issues
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 11:43:44 +00:00
r4sas
fb7a93732d rewrite yourls response handler (#19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 11:27:15 +00:00
r4sas
181763070c remove unused import, replace comment definition
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 10:22:58 +00:00
r4sas
c3a491ac46 correct response store for yourls (#19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-18 10:14:44 +00:00
r4sas
641c55a6a2 fix dict merging (#19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 13:22:28 +00:00
r4sas
432675f2e6 url shortener support (#19)
Currently tested only with clck.ru service. YOURLS test needed.

Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 10:54:58 +00:00
r4sas
635c87dabd [wip] url shortener support (#19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 08:55:59 +00:00
r4sas
6b6c33e545 [wip] url shortener support (#19)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-17 05:22:57 +00:00
r4sas
7c5ba2fdbe add URL validation for trailing slash (closes #18)
Signed-off-by: r4sas <r4sas@i2pmail.org>
2019-09-09 14:23:30 +00:00
r4sas
692335ee62 0.2.1
Signed-off-by: r4sas <r4sas@i2pmail.org>
0.2.1
2019-08-16 21:24:52 +00:00
R4SAS
c63256c628 Merge pull request #16 from firecat53/patch-1
Fix swapped "open discussion" and "burn after reading" options order
2019-08-17 00:12:49 +03:00
Scott Hansen
66659da66d Update format.py
The --burn and --discuss flags were switched. This change fixes that.
2019-08-16 12:59:36 -07:00
r4sas
32d60b5321 0.2 0.2 2019-07-24 11:22:37 +00:00