Skip to main content

Small helpers common in most Python applications for OpenTTD

Project description

openttd-helpers

GitHub License GitHub Tag GitHub commits since latest release

GitHub Workflow Status (Testing) GitHub Workflow Status (Release)

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.1.tar.gz (5.4 kB view hashes)

Uploaded Source

Built Distribution

openttd_helpers-1.0.1-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page