Small helpers common in most Python applications for OpenTTD
Project description
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
click_helper
Helpers to make the use of "click" easier.
- command: by default, add
-h
to 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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openttd-helpers-1.0.0.tar.gz
(4.7 kB
view details)
Built Distribution
File details
Details for the file openttd-helpers-1.0.0.tar.gz
.
File metadata
- Download URL: openttd-helpers-1.0.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 427087a962c1b94ba169b6a0f84cb01381ccf5bd3286c678b4db9e89f5bd89d5 |
|
MD5 | 1808142b84ccabe82562654e4c0bd85d |
|
BLAKE2b-256 | 1bb50d29cd2f5063741baf09ebe135bfde722babd36f1acad790af0a2c949bb8 |
File details
Details for the file openttd_helpers-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: openttd_helpers-1.0.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53183e28bc56f18d03e86a6a0850aff83cd9f28476a452026d4149642041345d |
|
MD5 | 8eb5e4402778181802b2a59edf23ce3a |
|
BLAKE2b-256 | ee028de7003c9018b1e0b820c7673201668df6f6dd7890815bdac0c7eb61ae6a |