kvcd package

Submodules

kvcd.config module

This Submodules contains the definition of the expected configuration to setup to use kvcd.

The main configuration is handled by environ-config module.

class KvcdConfig(vcd=Raise(), refresh_interval=60, refresh_initial_delay=60, refresh_idle_delay=60, enabled_modules='kvcdvapps,kvcdusers')[source]

Bases: object

kvcd configuration

class VcloudConfig(host=Raise(), port=443, org='System', username='Administrator', password=Raise(), verify_ssl=True, refresh_session_interval=3600)[source]

Bases: object

vcloud configuration

host
port
org
username
password
verify_ssl
refresh_session_interval
classmethod from_environ(environ=environ({'RTD_PYTHON_VERSION_35': '3.5.10', 'HOSTNAME': 'build-15172834-project-666721-kvcd', 'RTD_PYTHON_VERSION_27': '2.7.18', 'RTD_PYTHON_VERSION_36': '3.6.12', 'RTD_PYTHON_VERSION_37': '3.7.9', 'APPDIR': '/app', 'RTD_PYTHON_VERSION_38': '3.8.6', 'HOME': '/home/docs', 'RTD_SETUPTOOLS_VERSION': '45.1.0', 'NO_COLOR': '1', 'READTHEDOCS': 'True', 'RTD_PYPY_VERSION_35': 'pypy3.5-7.0.0', 'READTHEDOCS_PROJECT': 'kvcd', 'PATH': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/envs/latest/bin:/home/docs/.pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/docs/.conda/bin:/home/docs/.pyenv/bin', 'RTD_PIP_VERSION': '20.0.1', 'LANG': 'C.UTF-8', 'READTHEDOCS_LANGUAGE': 'en', 'DEBIAN_FRONTEND': 'noninteractive', 'RTD_VIRTUALENV_VERSION': '16.7.9', 'RTD_CONDA_VERSION': '4.6.14', 'READTHEDOCS_VERSION': 'latest', 'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/checkouts/latest/docs', 'PYENV_ROOT': '/home/docs/.pyenv', 'DOCUTILSCONFIG': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/checkouts/latest/docs/docutils.conf'}))
classmethod generate_help(**kwargs)
vcd
refresh_interval
refresh_initial_delay
refresh_idle_delay
enabled_modules
classmethod from_environ(environ=environ({'RTD_PYTHON_VERSION_35': '3.5.10', 'HOSTNAME': 'build-15172834-project-666721-kvcd', 'RTD_PYTHON_VERSION_27': '2.7.18', 'RTD_PYTHON_VERSION_36': '3.6.12', 'RTD_PYTHON_VERSION_37': '3.7.9', 'APPDIR': '/app', 'RTD_PYTHON_VERSION_38': '3.8.6', 'HOME': '/home/docs', 'RTD_SETUPTOOLS_VERSION': '45.1.0', 'NO_COLOR': '1', 'READTHEDOCS': 'True', 'RTD_PYPY_VERSION_35': 'pypy3.5-7.0.0', 'READTHEDOCS_PROJECT': 'kvcd', 'PATH': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/envs/latest/bin:/home/docs/.pyenv/shims:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/docs/.conda/bin:/home/docs/.pyenv/bin', 'RTD_PIP_VERSION': '20.0.1', 'LANG': 'C.UTF-8', 'READTHEDOCS_LANGUAGE': 'en', 'DEBIAN_FRONTEND': 'noninteractive', 'RTD_VIRTUALENV_VERSION': '16.7.9', 'RTD_CONDA_VERSION': '4.6.14', 'READTHEDOCS_VERSION': 'latest', 'PWD': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/checkouts/latest/docs', 'PYENV_ROOT': '/home/docs/.pyenv', 'DOCUTILSCONFIG': '/home/docs/checkouts/readthedocs.org/user_builds/kvcd/checkouts/latest/docs/docutils.conf'}))
classmethod generate_help(**kwargs)

kvcd.main module

kvcd.utils module

Some small tools that can be used in kvcd modules

str2bool(v: str)[source]

Transform a string to a boolean value.

Parameters

v (str) – String value to convert

Returns

True if v is ‘True’, False otherwise.

Return type

bool

lowercase_first_string_letter(v: str)[source]

Transform a string to lowercase first letter.

Parameters

v (str) – String value to convert

Returns

Lowercase first letter of v

Return type

str

setInterval(sec: int)[source]

Time-interval based decorator

usage: @setInterval(sec=3)

kvcd.vapp module

Module contents