app
¶
VERSION_CHECK_TTL_SECONDS = 86400
module-attribute
¶
app = typer.Typer(rich_markup_mode='rich', invoke_without_command=True, context_settings={'help_option_names': ['-h', '--help']})
module-attribute
¶
cli_folder_path = pathlib.Path(__file__).parent
module-attribute
¶
folder_name = file.parent.name
module-attribute
¶
full_module = f'{__package__}.{folder_name}.{py_file_name}'
module-attribute
¶
module = importlib.import_module(full_module)
module-attribute
¶
py_file_name = file.stem
module-attribute
¶
cli_command_no_args(ctx, version_requested=None)
¶
RenderCV is a command-line tool for rendering CVs from YAML input files. For more information, see https://docs.rendercv.com.
Source code in src/rendercv/cli/app.py
fetch_and_cache_latest_version()
¶
Fetch the latest version from PyPI and write it to the cache file.
fetch_latest_version_from_pypi()
¶
Fetch the latest RenderCV version string from PyPI, or None on failure.
Source code in src/rendercv/cli/app.py
get_cache_dir()
¶
Return the platform-appropriate cache directory for RenderCV.
Source code in src/rendercv/cli/app.py
get_version_cache_file()
¶
read_version_cache()
¶
Read the cached version check data, or None if unavailable/corrupt.
Source code in src/rendercv/cli/app.py
warn_if_new_version_is_available()
¶
Check for a newer RenderCV version using a stale-while-revalidate cache.
Why
Uses a disk cache with background refresh so the CLI never blocks on network I/O. If the cache is stale or missing, a daemon thread refreshes it for the next invocation.
Source code in src/rendercv/cli/app.py
write_version_cache(version_string)
¶
Write the latest version string and current timestamp to the cache file.