Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > lvestats > lib > parsers
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
__pycache__ | Directory | - | - | |
__init__.py | File | 197 bytes | May 30 2025 10:30:46. | |
cloudlinux_statistics_parser.py | File | 8177 bytes | May 30 2025 10:30:46. | |
cloudlinux_top_argparse.py | File | 2801 bytes | May 30 2025 10:30:46. | |
lve_create_db_argparse.py | File | 1589 bytes | May 30 2025 10:30:46. | |
lve_read_snapshot_argparse.py | File | 3333 bytes | May 30 2025 10:30:46. | |
lveinfoargparse.py | File | 25807 bytes | May 30 2025 10:30:46. | |
run_tests_argparse.py | File | 2991 bytes | May 30 2025 10:30:46. |
# coding=utf-8 # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT import argparse ALLOWED_DB_TYPES = ("postgresql", "mysql", "sqlite") class VAction(argparse.Action): def __call__(self, parser, args, values, option_string=None): # print 'values: {v!r}'.format(v=values) if values is None: values = '1' try: values = int(values) except ValueError: values = values.count('v') + 1 setattr(args, self.dest, values) def run_tests_parser(): parser = argparse.ArgumentParser(prog="lvestats-run-tests", add_help=True, description="LveStats2 tests") parser.add_argument("-dt", "--db-type", help=f"type of db, should be one of {ALLOWED_DB_TYPES}", dest="dbtype", default="sqlite", required=True) parser.add_argument("-dl", "--db-login", help="database login", dest="login", required=False) parser.add_argument("-dp", "--db-password", help="database password", dest="password", required=False) parser.add_argument("-dh", "--db-host", help="dtabase host", dest="host", default="localhost") parser.add_argument("--db-tests-only", action="store_true", dest="db_only", default=False) parser.add_argument("--with-tap", action="store_true", dest="with_tap", default=None) parser.add_argument("-dn", "--db-name", help="database name; default in memory for sqlite and temporary for mysql/postgresqll", dest="dbname") parser.add_argument("-p", "--pattern", help="running test pattern", dest="pattern", default="test_") parser.add_argument("-w", "--with-path", help="add PYTHONPATH", dest="path") parser.add_argument("--without-coverage", action='store_false', default=True, dest="coverage") verbose_parser = parser.add_mutually_exclusive_group() verbose_parser.add_argument('-q', '--quiet', action="store_true", default=False, help='quiet operation') verbose_parser.add_argument('-v', nargs='?', action=VAction, default=0, dest='verbose', help='verbose operation; for example -v or -vv') return parser
SILENT KILLER Tool