Sample CLI
gway recipe run
Signature
(*script: str, **context)
Sample CLI
gway release changes
Signature
(*, files=None, staged=False, context=3, max_bytes=200000, clip=False)
Docstring
Returns a unified diff of all recent textual changes in the git repo.
- Shows added/removed lines (ignores binary files).
- Includes unstaged (working directory) by default. Use staged=True to see only staged.
- 'files': Optionally filter by path(s) or file glob(s).
- 'context': Number of context lines in the diff (default 3).
- 'max_bytes': Truncate diff if too large (default 200,000).
Sample CLI
gway ocpp.csms setup-app
References
cdv,
cdv.validate,
debug,
error,
exception,
info,
mail,
mail.send,
resolve,
resource,
unwrap_one,
warn Signature
(*, app=None, allowlist=None, denylist=None, location=None, authorize=<function authorize_balance at
0x00000256F2C3F1A0>, email=None)
Sample CLI
gway ocpp.evcs simulate-cp
Signature
(cp_idx, host, ws_port, rfid, cp_path, duration, session_count)
Docstring
Simulate a single CP session (possibly many times if session_count>1).
Sample CLI
gway web.app current-endpoint
Docstring
Return the canonical endpoint path for the current request (the project route prefix).
Falls back to gw.context['current_endpoint'], or None.
Sample CLI
gway web.app setup
References
abort,
context,
debug,
info,
resource,
to_html,
to_json,
unwrap_one,
verbose,
version,
web,
web.auth,
web.auth.is_authorized,
web.error,
web.error.redirect,
web.error.unauthorized Signature
(*, app=None, project='web.site', path=None, home: str = None, views: str = 'view', apis: str =
'api', static='static', shared='shared', css='global', js='global', auth_required=False,
engine='bottle')
Docstring
Setup Bottle web application with symmetrical static/shared public folders.
Only one project per app. CSS/JS params are used as the only static includes.
Sample CLI
gway web.nav view-style-switcher
Signature
(*, css=None, project=None)
Docstring
Shows available styles (global + project), lets user choose, preview, and see raw CSS.
If cookies are accepted, sets the style via cookie when changed in dropdown.
If cookies are not accepted, only uses the css param for preview.
Sample CLI
gway web.server is-local
Signature
(request=None, host=None)
Docstring
Returns True if the active HTTP request originates from the same machine
that the server is running on (i.e., local request). Supports both
Bottle and FastAPI (ASGI/WSGI).
Args:
request: Optionally, the request object (Bottle, Starlette, or FastAPI Request).
host: Optionally, the bound host (for override or testing).
Returns:
bool: True if request is from localhost, else False.
Signature
(*args, **kwargs)
Docstring
Build a fully-qualified context-aware URL given a path sequence and query params.
Sample CLI
gway build-ws-url
Signature
(*args, **kwargs)
Docstring
Build a fully-qualified context-aware URL given a path sequence and query params.
Signature
(*script: str, **context)
Sample CLI
gway run-recipe
Signature
(*script: str, **context)
Docstring
Run commands parsed from a .gwr file, falling back to the 'recipes/' resource bundle.
Recipes are gway scripts composed of one command per line with optional comments.