Utilities ¶
Utility functions for the API
REPO_ROOT = Path(__file__).resolve().parent.parent module-attribute ¶
ASSETS_DIR = REPO_ROOT / 'assets' module-attribute ¶
README = 'README.md' module-attribute ¶
logger = logging.getLogger(__name__) module-attribute ¶
get_steam_credentials() ¶
Fetch Steam credentials using environment variables
get_github_token() ¶
Get GitHub token from environment variables
Source code in api/utils.py
get_repo(g) ¶
initialize_github() ¶
get_readme_content(repo) ¶
create_tree_elements(repo, files_to_update) ¶
Create tree elements for GitHub commit
Source code in api/utils.py
get_asset_paths(filename_base) ¶
Returns the absolute HTML, PNG & relative PNG path for embedding in markdown
Source code in api/utils.py
Source Code ¶
View the complete source code for this module on GitHub: api/utils.py