openttd-helpers
A repository full of small bits of Python code, commonly used in other projects developed for OpenTTD.
To increase maintainability and to decrease code duplication, this repository was created.
Usage
pip install openttd-helpers
See examples/ folder for example use, or look into OpenTTD repositories containing Python code.
Modules
asyncio_helper
Helpers to make the user of ayncio easier.
- task:
enable_strong_referenced_tasks()makes returned tasks fromayncio.create_taskstrong, so they are not garbage collected unexpectedly.
click_helper
Helpers to make the use of click easier.
- command: by default, add
-hto the allowed parameters. - extend: allow extending a
click.command()in other functions. - import_module: used in combination with
Choice, to auto-load modules based on the choice.
logging_helper
Setup a default logger via a click.extend() function.
sentry_helper
Setup Sentry via a click.extend() function.
Metadata
Release files for openttd-helpers 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openttd-helpers-2.0.0.tar.gz | 15.0 kB | Without provenance | Details for openttd-helpers-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openttd_helpers-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for openttd_helpers-2.0.0-py3-none-any.whl |
Total release size: 30.8 kB
Release files / openttd-helpers-2.0.0.tar.gz
| Download URL | openttd-helpers-2.0.0.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ec741d3722d3fa68753f41f2481ca9ac58ece4d65c1da5f0753458bece30de7
|
|
BLAKE2b-256 checksum How to use checksums |
ad56cb90bea31890d0656610cd08f8de15b1163f0c6066bdd4367484ae81d1e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Release files / openttd_helpers-2.0.0-py3-none-any.whl
| Download URL | openttd_helpers-2.0.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f3a159899c27b1d9e891ebdda46c87967930c112ef2a6213a560aa3247a01b8
|
|
BLAKE2b-256 checksum How to use checksums |
3d6f3e86a60f3d5f9a8c72a8154e5a12456ea5387fcf02a1c690b3f23144b3d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.11
|
Security for openttd-helpers 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.