Browse Source

0.3.2

Signed-off-by: R4SAS <r4sas@i2pmail.org>
gha 0.3.2
R4SAS 3 years ago
parent
commit
906c14fddf
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 1
      .gitattributes
  2. 29
      README.md
  3. 51
      README.rst
  4. 2
      pbincli/__init__.py
  5. 2
      pbincli/cli.py

1
.gitattributes vendored

@ -1,3 +1,4 @@
.github/** export-ignore
.gitattributes export-ignore .gitattributes export-ignore
.gitignore export-ignore .gitignore export-ignore
README.md export-ignore README.md export-ignore

29
README.md

@ -45,18 +45,18 @@ All possible options for configuration file
----- -----
| Option | Default | Possible value | | Option | Default | Possible value |
|--------|---------|---------| |----------------------|-------------------------|----------------|
server | https://paste.i2pd.xyz/ | Domain ending with slash | | server | https://paste.i2pd.xyz/ | Domain ending with slash |
mirrors | None | Domains separated with comma, like `http://privatebin.ygg/,http://privatebin.i2p/` | | mirrors | None | Domains separated with comma, like `http://privatebin.ygg/,http://privatebin.i2p/` |
proxy | None | Proxy address starting with scheme `http://` or `socks5://` | | proxy | None | Proxy address starting with scheme `http://` or `socks5://` |
short | False | True / False | | short | False | True / False |
short_api | None | `tinyurl`, `clckru`, `isgd`, `vgd`, `cuttly`, `yourls`, `custom` | | short_api | None | `tinyurl`, `clckru`, `isgd`, `vgd`, `cuttly`, `yourls`, `custom` |
short_url | None | Domain name of shortener service for `yourls`, or sortener URL (with required parameters) for `custom` | | short_url | None | Domain name of shortener service for `yourls`, or sortener URL (with required parameters) for `custom` |
short_user | None | Used only in `yourls` | | short_user | None | Used only in `yourls` |
short_pass | None | Used only in `yourls` | | short_pass | None | Used only in `yourls` |
short_token | None | Used only in `yourls` | | short_token | None | Used only in `yourls` |
no_check_certificate | False | True / False | | no_check_certificate | False | True / False |
no_insecure_warning | False | True / False | | no_insecure_warning | False | True / False |
Usage Usage
===== =====
@ -91,7 +91,7 @@ pbincli send -f info.pdf -t "I'm sending my document."
pbincli send -q -f info.pdf pbincli send -q -f info.pdf
``` ```
__*Note*__: It is possible to set-up paste parameters such as burning after reading, expiritaion time, formatting, enabling discussions, and changing compression algorithm. Please refer to `pbincli send -h` output for more information. *Note*: It is possible to set-up paste parameters such as burning after reading, expiritaion time, formatting, enabling discussions, and changing compression algorithm. Please refer to `pbincli send -h` output for more information.
Receiving Receiving
----- -----
@ -141,5 +141,4 @@ Call it by running `pastei2p` in terminal.
License License
===== =====
This project is licensed under the MIT license, which can be found in the file This project is licensed under the MIT license, which can be found in the file [LICENSE](https://github.com/r4sas/PBinCLI/blob/master/LICENSE) in the root of the project source code.
[LICENSE](https://github.com/r4sas/PBinCLI/blob/master/LICENSE) in the root of the project source code.

51
README.rst

@ -65,21 +65,41 @@ All possible options for configuration file
* - Option * - Option
- Default - Default
- Possible value - Possible value
* - * - server
- https://paste.i2pd.xyz/
- Domain ending with slash
* - mirrors
- None
- Domains separated with comma, like ``http://privatebin.ygg/,http://privatebin.i2p/``
* - proxy
- None
- Proxy address starting with scheme ``http://`` or ``socks5://``
* - short
- False
- True / False
* - short_api
- None
- ``tinyurl``\ , ``clckru``\ , ``isgd``\ , ``vgd``\ , ``cuttly``\ , ``yourls``\ , ``custom``
* - short_url
- None
- Domain name of shortener service for ``yourls``\ , or sortener URL (with required parameters) for ``custom``
* - short_user
- None
- Used only in ``yourls``
* - short_pass
- None
- Used only in ``yourls``
* - short_token
- None
- Used only in ``yourls``
* - no_check_certificate
- False
- True / False
* - no_insecure_warning
- False
- True / False
server | https://paste.i2pd.xyz/ | Domain ending with slash |
mirrors | None | Domains separated with comma, like ``http://privatebin.ygg/,http://privatebin.i2p/`` |
proxy | None | Proxy address starting with scheme ``http://`` or ``socks5://`` |
short | False | True / False |
short_api | None | ``tinyurl``\ , ``clckru``\ , ``isgd``\ , ``vgd``\ , ``cuttly``\ , ``yourls``\ , ``custom`` |
short_url | None | Domain name of shortener service for ``yourls``\ , or sortener URL (with required parameters) for ``custom`` |
short_user | None | Used only in ``yourls`` |
short_pass | None | Used only in ``yourls`` |
short_token | None | Used only in ``yourls`` |
no_check_certificate | False | True / False |
no_insecure_warning | False | True / False |
Usage Usage
===== =====
@ -123,7 +143,7 @@ Sending
pbincli send -q -f info.pdf pbincli send -q -f info.pdf
**\ *Note*\ **\ : It is possible to set-up paste parameters such as burning after reading, expiritaion time, formatting, enabling discussions, and changing compression algorithm. Please refer to ``pbincli send -h`` output for more information. *Note*\ : It is possible to set-up paste parameters such as burning after reading, expiritaion time, formatting, enabling discussions, and changing compression algorithm. Please refer to ``pbincli send -h`` output for more information.
Receiving Receiving
--------- ---------
@ -177,5 +197,4 @@ Call it by running ``pastei2p`` in terminal.
License License
======= =======
This project is licensed under the MIT license, which can be found in the file This project is licensed under the MIT license, which can be found in the file `LICENSE <https://github.com/r4sas/PBinCLI/blob/master/LICENSE>`_ in the root of the project source code.
`LICENSE <https://github.com/r4sas/PBinCLI/blob/master/LICENSE>`_ in the root of the project source code.

2
pbincli/__init__.py

@ -2,6 +2,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
__author__ = "R4SAS <r4sas@i2pmail.org>" __author__ = "R4SAS <r4sas@i2pmail.org>"
__version__ = "0.3.2b1" __version__ = "0.3.2"
__copyright__ = "Copyright (c) R4SAS" __copyright__ = "Copyright (c) R4SAS"
__license__ = "MIT" __license__ = "MIT"

2
pbincli/cli.py

@ -31,7 +31,7 @@ def read_config(filename):
return settings return settings
def main(): def main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser(description='Full-featured PrivateBin command-line client')
subparsers = parser.add_subparsers(title="actions", help="List of commands") subparsers = parser.add_subparsers(title="actions", help="List of commands")
# a send command # a send command

Loading…
Cancel
Save