forked from r4sas/PBinCLI
include license and requirements in source archive
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
29498b9315
commit
70328903fa
3
MANIFEST.in
Normal file
3
MANIFEST.in
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
include LICENSE
|
||||||
|
include README.rst
|
||||||
|
include requirements.txt
|
@ -2,6 +2,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
__author__ = "R4SAS <r4sas@i2pmail.org>"
|
__author__ = "R4SAS <r4sas@i2pmail.org>"
|
||||||
__version__ = "0.3.0"
|
__version__ = "0.3.1"
|
||||||
__copyright__ = "Copyright (c) R4SAS"
|
__copyright__ = "Copyright (c) R4SAS"
|
||||||
__license__ = "MIT"
|
__license__ = "MIT"
|
||||||
|
@ -36,7 +36,7 @@ def main():
|
|||||||
send_parser.add_argument("-q", "--notext", default=False, action="store_true", help="don't send text in paste")
|
send_parser.add_argument("-q", "--notext", default=False, action="store_true", help="don't send text in paste")
|
||||||
send_parser.add_argument("-c", "--compression", default="zlib", action="store",
|
send_parser.add_argument("-c", "--compression", default="zlib", action="store",
|
||||||
choices=["zlib", "none"], help="set compression for paste (default: zlib). Note: works only on v2 paste format")
|
choices=["zlib", "none"], help="set compression for paste (default: zlib). Note: works only on v2 paste format")
|
||||||
# URL shortener
|
## URL shortener
|
||||||
send_parser.add_argument("-S", "--short", default=False, action="store_true", help="use URL shortener")
|
send_parser.add_argument("-S", "--short", default=False, action="store_true", help="use URL shortener")
|
||||||
send_parser.add_argument("--short-api", default=argparse.SUPPRESS, action="store",
|
send_parser.add_argument("--short-api", default=argparse.SUPPRESS, action="store",
|
||||||
choices=["tinyurl", "clckru", "isgd", "vgd", "cuttly", "yourls"], help="API used by shortener service")
|
choices=["tinyurl", "clckru", "isgd", "vgd", "cuttly", "yourls"], help="API used by shortener service")
|
||||||
@ -44,13 +44,13 @@ def main():
|
|||||||
send_parser.add_argument("--short-user", default=argparse.SUPPRESS, help="Shortener username")
|
send_parser.add_argument("--short-user", default=argparse.SUPPRESS, help="Shortener username")
|
||||||
send_parser.add_argument("--short-pass", default=argparse.SUPPRESS, help="Shortener password")
|
send_parser.add_argument("--short-pass", default=argparse.SUPPRESS, help="Shortener password")
|
||||||
send_parser.add_argument("--short-token", default=argparse.SUPPRESS, help="Shortener token")
|
send_parser.add_argument("--short-token", default=argparse.SUPPRESS, help="Shortener token")
|
||||||
# Connection options
|
## Connection options
|
||||||
send_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
send_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
||||||
send_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
send_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
||||||
send_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
send_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
||||||
send_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
send_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
||||||
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
||||||
#
|
##
|
||||||
send_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
send_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
||||||
send_parser.add_argument("--dry", default=False, action="store_true", help="invoke dry run")
|
send_parser.add_argument("--dry", default=False, action="store_true", help="invoke dry run")
|
||||||
send_parser.add_argument("stdin", help="input paste text from stdin", nargs="?", type=argparse.FileType("r"), default=sys.stdin)
|
send_parser.add_argument("stdin", help="input paste text from stdin", nargs="?", type=argparse.FileType("r"), default=sys.stdin)
|
||||||
@ -60,11 +60,13 @@ def main():
|
|||||||
get_parser = subparsers.add_parser("get", description="Get data from PrivateBin instance")
|
get_parser = subparsers.add_parser("get", description="Get data from PrivateBin instance")
|
||||||
get_parser.add_argument("pasteinfo", help="example: aabb#cccddd")
|
get_parser.add_argument("pasteinfo", help="example: aabb#cccddd")
|
||||||
get_parser.add_argument("-p", "--password", help="password for decrypting paste")
|
get_parser.add_argument("-p", "--password", help="password for decrypting paste")
|
||||||
|
## Connection options
|
||||||
get_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
get_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
||||||
get_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
get_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
||||||
get_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
get_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
||||||
get_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
get_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
||||||
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
||||||
|
##
|
||||||
get_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
get_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
||||||
get_parser.set_defaults(func=pbincli.actions.get)
|
get_parser.set_defaults(func=pbincli.actions.get)
|
||||||
|
|
||||||
@ -72,11 +74,13 @@ def main():
|
|||||||
delete_parser = subparsers.add_parser("delete", description="Delete paste from PrivateBin instance using token")
|
delete_parser = subparsers.add_parser("delete", description="Delete paste from PrivateBin instance using token")
|
||||||
delete_parser.add_argument("-p", "--paste", required=True, help="paste id")
|
delete_parser.add_argument("-p", "--paste", required=True, help="paste id")
|
||||||
delete_parser.add_argument("-t", "--token", required=True, help="paste deletion token")
|
delete_parser.add_argument("-t", "--token", required=True, help="paste deletion token")
|
||||||
|
## Connection options
|
||||||
delete_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
delete_parser.add_argument("-s", "--server", default=argparse.SUPPRESS, help="PrivateBin service URL (default: https://paste.i2pd.xyz/)")
|
||||||
delete_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
delete_parser.add_argument("-x", "--proxy", default=argparse.SUPPRESS, help="Proxy server address (default: None)")
|
||||||
delete_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
delete_parser.add_argument("--no-check-certificate", default=False, action="store_true", help="disable certificate validation")
|
||||||
delete_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
delete_parser.add_argument("--no-insecure-warning", default=False, action="store_true",
|
||||||
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
help="suppress InsecureRequestWarning (only with --no-check-certificate)")
|
||||||
|
##
|
||||||
delete_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
delete_parser.add_argument("-d", "--debug", default=False, action="store_true", help="enable debug")
|
||||||
delete_parser.set_defaults(func=pbincli.actions.delete)
|
delete_parser.set_defaults(func=pbincli.actions.delete)
|
||||||
|
|
||||||
|
7
setup.py
7
setup.py
@ -31,9 +31,14 @@ setup(
|
|||||||
],
|
],
|
||||||
packages=['pbincli'],
|
packages=['pbincli'],
|
||||||
install_requires=install_requires,
|
install_requires=install_requires,
|
||||||
|
python_requires='>=3',
|
||||||
entry_points={
|
entry_points={
|
||||||
'console_scripts': [
|
'console_scripts': [
|
||||||
'pbincli=pbincli.cli:main',
|
'pbincli=pbincli.cli:main',
|
||||||
],
|
],
|
||||||
}
|
},
|
||||||
|
project_urls={
|
||||||
|
'Bug Reports': 'https://github.com/r4sas/PBinCLI/issues',
|
||||||
|
'Source': 'https://github.com/r4sas/PBinCLI/',
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user