meerschaum.config.paths
External API for importing Meerschaum paths.
1#! /usr/bin/env python3 2# -*- coding: utf-8 -*- 3# vim:fenc=utf-8 4 5""" 6External API for importing Meerschaum paths. 7""" 8 9import pathlib 10import inspect 11import meerschaum.config._paths as _paths 12 13 14def __getattr__(*args, **kwargs): 15 return _paths.__getattr__(*args, **kwargs) 16 17 18_globals_dict = inspect.getmembers( 19 _paths, 20 lambda member: not inspect.isroutine(member) 21) 22_all_caps_globals = [ 23 name 24 for name, value in _globals_dict 25 if ('PATH' in name or 'FILE' in name) and not name.startswith('_') 26 and isinstance(value, pathlib.Path) 27] 28 29__all__ = tuple(_all_caps_globals + list(_paths.paths.keys()))
DEFAULT_ROOT_DIR_PATH
DOT_CONFIG_DIR_PATH
PACKAGE_ROOT_PATH
ROOT_DIR_PATH
VIRTENV_RESOURCES_PATH
CONFIG_DIR_PATH
DEFAULT_CONFIG_DIR_PATH
PATCH_DIR_PATH
PERMANENT_PATCH_DIR_PATH
INTERNAL_RESOURCES_PATH
UPDATES_RESOURCES_PATH
UPDATES_CACHE_PATH
UPDATES_LOCK_PATH
STACK_RESOURCES_PATH
STACK_COMPOSE_FILENAME
STACK_COMPOSE_PATH
STACK_ENV_FILENAME
STACK_ENV_PATH
SHELL_RESOURCES_PATH
SHELL_HISTORY_PATH
PYTHON_RESOURCES_PATH
API_RESOURCES_PATH
API_STATIC_PATH
API_TEMPLATES_PATH
API_CONFIG_RESOURCES_PATH
API_SECRET_KEY_PATH
API_UVICORN_RESOURCES_PATH
API_UVICORN_CONFIG_PATH
CACHE_RESOURCES_PATH
PIPES_CACHE_RESOURCES_PATH
USERS_CACHE_RESOURCES_PATH
VENVS_CACHE_RESOURCES_PATH
PLUGINS_RESOURCES_PATH
PLUGINS_INTERNAL_LOCK_PATH
PLUGINS_PACKAGES_INTERNAL_PATH
PLUGINS_ARCHIVES_RESOURCES_PATH
PLUGINS_TEMP_RESOURCES_PATH
PLUGINS_INIT_PATH
SQLITE_RESOURCES_PATH
SQLITE_DB_PATH
BACKUP_RESOURCES_PATH
BACKUP_DATABASE_PATH
DUCKDB_RESOURCES_PATH
DUCKDB_PATH
GRAFANA_RESOURCES_PATH
GRAFANA_DATASOURCE_PATH
GRAFANA_DASHBOARD_PATH
MOSQUITTO_RESOURCES_PATH
MOSQUITTO_CONFIG_PATH
PORTABLE_CHECK_READLINE_PATH
DAEMON_RESOURCES_PATH
LOGS_RESOURCES_PATH
DAEMON_ERROR_LOG_PATH
CHECK_JOBS_LOCK_PATH
SYSTEMD_RESOURCES_PATH
SYSTEMD_USER_RESOURCES_PATH
SYSTEMD_ROOT_RESOURCES_PATH
SYSTEMD_JOBS_RESOURCES_PATH
SYSTEMD_LOGS_RESOURCES_PATH