{"id":19204535,"url":"https://github.com/openttd/py-helpers","last_synced_at":"2025-05-12T15:46:15.438Z","repository":{"id":48979737,"uuid":"301073787","full_name":"OpenTTD/py-helpers","owner":"OpenTTD","description":"Python libraries to support OpenTTD projects","archived":false,"fork":false,"pushed_at":"2025-04-01T00:48:57.000Z","size":47,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-15T11:39:55.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenTTD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-04T08:07:54.000Z","updated_at":"2025-02-15T13:10:42.000Z","dependencies_parsed_at":"2024-01-04T09:56:55.699Z","dependency_job_id":"6349a036-a847-4bc4-8d80-f0cc6fa8b02e","html_url":"https://github.com/OpenTTD/py-helpers","commit_stats":{"total_commits":16,"total_committers":1,"mean_commits":16.0,"dds":0.0,"last_synced_commit":"286194bf7caff068445c0a88a9cd739b2a217fb0"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fpy-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fpy-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fpy-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenTTD%2Fpy-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenTTD","download_url":"https://codeload.github.com/OpenTTD/py-helpers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253767710,"owners_count":21961163,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T13:08:40.576Z","updated_at":"2025-05-12T15:46:15.414Z","avatar_url":"https://github.com/OpenTTD.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openttd-helpers\n\n[![GitHub License](https://img.shields.io/github/license/OpenTTD/py-helpers)](https://github.com/OpenTTD/py-helpers/blob/main/LICENSE)\n\nA repository full of small bits of Python code, commonly used in other\nprojects developed for OpenTTD.\n\nTo increase maintainability and to decrease code duplication, this repository\nwas created.\n\n# Usage\n\n`pip install openttd-helpers`\n\nSee `examples/` folder for example use, or look into OpenTTD repositories containing Python code.\n\n# Modules\n\n## asyncio_helper\n\nHelpers to make the user of `ayncio` easier.\n\n- task: `enable_strong_referenced_tasks()` makes returned tasks from `ayncio.create_task` strong, so they are not garbage collected unexpectedly.\n\n## click_helper\n\nHelpers to make the use of `click` easier.\n\n- command: by default, add `-h` to the allowed parameters.\n- extend: allow extending a `click.command()` in other functions.\n- import_module: used in combination with `Choice`, to auto-load modules based on the choice.\n\n## logging_helper\n\nSetup a default logger via a `click.extend()` function.\n\n## sentry_helper\n\nSetup Sentry via a `click.extend()` function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fpy-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenttd%2Fpy-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenttd%2Fpy-helpers/lists"}