cookiecutter_python.backend package¶
Subpackages¶
- cookiecutter_python.backend.error_handling package
- cookiecutter_python.backend.generator package
- cookiecutter_python.backend.hosting_services package
- Submodules
- cookiecutter_python.backend.hosting_services.check_engine module
- cookiecutter_python.backend.hosting_services.check_service module
- cookiecutter_python.backend.hosting_services.check_web_hosting_service module
- cookiecutter_python.backend.hosting_services.checker module
- cookiecutter_python.backend.hosting_services.checkers module
- cookiecutter_python.backend.hosting_services.exceptions module
- cookiecutter_python.backend.hosting_services.extract_name module
- cookiecutter_python.backend.hosting_services.handle_hosting_service_check module
- cookiecutter_python.backend.hosting_services.handler module
- cookiecutter_python.backend.hosting_services.value_extractor module
- cookiecutter_python.backend.hosting_services.web_hosting_service module
- Module contents
- cookiecutter_python.backend.sanitization package
- Subpackages
- cookiecutter_python.backend.sanitization.string_sanitizers package
- Submodules
- cookiecutter_python.backend.sanitization.string_sanitizers.base_sanitizer module
- cookiecutter_python.backend.sanitization.string_sanitizers.sanitize_reg_input module
- cookiecutter_python.backend.sanitization.string_sanitizers.sanitize_reg_module_name module
- cookiecutter_python.backend.sanitization.string_sanitizers.sanitize_reg_version module
- Module contents
- cookiecutter_python.backend.sanitization.string_sanitizers package
- Submodules
- cookiecutter_python.backend.sanitization.input_sanitization module
- cookiecutter_python.backend.sanitization.interpreters_support module
- Module contents
- Subpackages
Submodules¶
cookiecutter_python.backend.check_server_result module¶
- class cookiecutter_python.backend.check_server_result.CheckWebServerResult[source]¶
Bases:
ABC
Interface for checking the result of a web server request.
- abstract property future¶
- abstract property name: str¶
The name of the resource requested to search on the web server.
- Returns:
the name of the resource (ie python package slug, rtd project)
- Return type:
str
- abstract property service_name: str¶
The name of the web server.
- Returns:
the name (slug) of the web server
- Return type:
str
cookiecutter_python.backend.gen_docs_common module¶
Internal configuration for Documentation Generation.
- cookiecutter_python.backend.gen_docs_common.get_docs_gen_internal_config() → Dict[str, str][source]¶
Derive the internal configuration for Documentation Generation.
- Information included:
the folder where we each docs builder will generate the docs. We locate the template folder for each docs builder, which is the Single Source of Truth for the docs builder’s output folder.
cookiecutter_python.backend.helpers module¶
cookiecutter_python.backend.load_config module¶
- cookiecutter_python.backend.load_config.get_interpreters_from_yaml(config_file: str) → Mapping[str, Sequence[str]] | None[source]¶
Parse the ‘interpreters’ variable out of the user’s config yaml file.
- Parameters:
config_file (str) – path to the user’s config yaml file
- Raises:
InvalidYamlFormatError – if yaml parser fails to load the user’s config
UserYamlDesignError – if yaml does not contain the ‘default_context’ key
- Returns:
- dictionary with intepreters as a sequence of strings,
mapped to the ‘supported-interpreters’ key
- Return type:
GivenInterpreters
cookiecutter_python.backend.main module¶
- cookiecutter_python.backend.main.generate(no_input=False, offline=False, extra_context=None, replay=False, overwrite=False, output_dir='.', config_file=None, skip_if_file_exists=False, default_config=False, password=None, directory=None, checkout=None) → str[source]¶
Create Python Project, with CI/CD pipeline, from the project template.
Generate/Scaffold a new Python Project, including configuration enabling automations such as CI and Continuous Delivery of Docker and Python ‘artifacts’, and Continuous Documentation of the Python Project.
cookiecutter_python.backend.post_main module¶
cookiecutter_python.backend.pre_main module¶
cookiecutter_python.backend.proxy module¶
cookiecutter_python.backend.request module¶
- class cookiecutter_python.backend.request.Request(*, config_file: str, default_config: bool, web_servers: List[str], no_input: bool, extra_context: dict, check: Any | None = None, check_results: None | Iterable[CheckWebServerResult] = None, offline: bool = False)[source]¶
Bases:
object
- check: Any¶
- check_results: None | Iterable[CheckWebServerResult]¶
- config_file: str¶
- default_config: bool¶
- extra_context: dict¶
- no_input: bool¶
- offline: bool¶
- web_servers: List[str]¶
cookiecutter_python.backend.user_config_proxy module¶
Module contents¶
- exception cookiecutter_python.backend.CheckWebServerError[source]¶
Bases:
Exception
Raised on Connection Error, when Requesting a Web Server’s Future.
- cookiecutter_python.backend.generate(no_input=False, offline=False, extra_context=None, replay=False, overwrite=False, output_dir='.', config_file=None, skip_if_file_exists=False, default_config=False, password=None, directory=None, checkout=None) → str[source]¶
Create Python Project, with CI/CD pipeline, from the project template.
Generate/Scaffold a new Python Project, including configuration enabling automations such as CI and Continuous Delivery of Docker and Python ‘artifacts’, and Continuous Documentation of the Python Project.
- cookiecutter_python.backend.get_docs_gen_internal_config() → Dict[str, str][source]¶
Derive the internal configuration for Documentation Generation.
- Information included:
the folder where we each docs builder will generate the docs. We locate the template folder for each docs builder, which is the Single Source of Truth for the docs builder’s output folder.