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
18d79c8e04
add .gitattributes
...
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
R4SAS
fb7a93732d
rewrite yourls response handler ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
181763070c
remove unused import, replace comment definition
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
c3a491ac46
correct response store for yourls ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
641c55a6a2
fix dict merging ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
432675f2e6
url shortener support ( #19 )
...
Currently tested only with clck.ru service. YOURLS test needed.
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
635c87dabd
[wip] url shortener support ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
6b6c33e545
[wip] url shortener support ( #19 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
7c5ba2fdbe
add URL validation for trailing slash ( closes #18 )
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
692335ee62
0.2.1
...
Signed-off-by: r4sas <r4sas@i2pmail.org>
5 years ago
R4SAS
c63256c628
Merge pull request #16 from firecat53/patch-1
...
Fix swapped "open discussion" and "burn after reading" options order
5 years ago
Scott Hansen
66659da66d
Update format.py
...
The --burn and --discuss flags were switched. This change fixes that.
5 years ago
R4SAS
32d60b5321
0.2
5 years ago
R4SAS
9e9f480075
add description content type
6 years ago
R4SAS
7fc2a1a625
add cert validation ignoring switches ( closes #15 )
6 years ago
R4SAS
8aea956e77
Update function in map iterator
...
Fixes #14 .
Thanks to @mqus for solution.
Taken from https://github.com/PrivateBin/PrivateBin/pull/193#issuecomment-480262590
6 years ago
R4SAS
ac58fff9ce
fix classifiers
6 years ago
R4SAS
7a59d1acd1
0.2-beta1
6 years ago
R4SAS
5c6b9611d8
fix errors
6 years ago
R4SAS
dc034b1d55
update rst readme, remove unused import
6 years ago
R4SAS
5d988e01fc
add codacy badge
6 years ago
R4SAS
85cc1454ea
fixes
6 years ago
R4SAS
f5ef4bbc03
fix v1 decrypt debug message, update readme
6 years ago
R4SAS
8d7a9235b8
add code comments
6 years ago
R4SAS
70f386193a
little refactoring
6 years ago
R4SAS
d37e573d9e
little refactoring
6 years ago
R4SAS
e850b5495a
load zlib globally in format
6 years ago
R4SAS
9390edeb79
reorder argparse, clarify option descriptions
6 years ago
R4SAS
d11beb10af
Make compression optional
...
ref: https://github.com/PrivateBin/PrivateBin/issues/38
Compression is optional only in v2 paste format.
Currently available types: 'zlib' and 'none'.
To set compression use `-c "none"` or `--compression "none".
When receiving paste, compression detected from 'adata' field
6 years ago
R4SAS
4c124a33c0
[v2] encode json for v2, move de/compress to Paste class ( #13 )
6 years ago
R4SAS
5b38c532a2
[wip][v2] json bytes2str in decode ( #13 )
6 years ago
R4SAS
f7fae450a0
[wip] v2 support code ( #13 )
6 years ago
R4SAS
1ff6e721c7
move functions to utils, import functions only where they needed, remove bytified json load
6 years ago
R4SAS
487def2b45
add notext option, fix paste without text handling
...
Now text is taken if no `--notext (-q)` argument is passed.
If that flag used, paste will be created with empty text,
but file for send must be specified
If `notext` arg is not used, text will be taken in next order:
* from `--text (-t)` argument
* from stdin (forcibly)
Here's no ability create paste without any text.
6 years ago
R4SAS
c27606d442
update gitignore, add tag button in readme
6 years ago
R4SAS
2381893b72
use rst readme as long description
6 years ago