Sample CLI
gway mail message-from-bytes
Signature
(s, *args, **kws)
Docstring
Parse a bytes string into a Message object model.
Optional _class and strict are passed to the Parser constructor.
Sample CLI
gway mail search
Signature
(subject_fragment, body_fragment=None)
Docstring
Search emails by subject and optionally body. Use "*" to match any subject.
Signature
(subject, body=None, to=None, threaded=None, **kwargs)
Docstring
Send an email with the specified subject and body, using defaults from env if available.
Parameters:
- subject: the email subject (string)
- body: the plain-text body (string). Must be provided.
- to: recipient address (string). Defaults to ADMIN_EMAIL from the environment.
- threaded: if True, send the email asynchronously; if False, block and send; if None, auto-detect.
- **kwargs: reserved for future use.
Returns:
str ("Email sent successfully to ...") or error message, unless threaded is True (returns immediately).
Sample CLI
gway odoo read-chat
Signature
(*, unread: bool = True, username: str = '[ODOO_USERNAME]') -> list[dict]
Docstring
Read chat messages from an Odoo user by username.
If unread is True, only return unread messages.
Sample CLI
gway odoo send-chat
Signature
(message: str, *, username: str = '[ODOO_USERNAME]') -> bool
Docstring
Send a chat message to an Odoo user by username.
Sample CLI
gway vbox open-remote
Signature
(server_url: str = '[SERVER_URL]', *, path: str = 'vbox', email: str = '[ADMIN_EMAIL]')
Docstring
Create a vbox on a remote system, retrieve the upload link from email, and store it locally.
- server_url: Base URL of the remote server (e.g., 'https://example.com')
- path: Path on remote server where vbox upload is handled (default 'vbox')
- email: Email address to receive the upload link (should be accessible by local mail.search)
Returns: dict of stored record fields, or None if unsuccessful.
Sample CLI
gway vbox view-uploads
References
build_url,
error,
exception,
info,
mail,
mail.send,
resource,
warning,
web,
web.app,
web.app.build_url,
web.server,
web.server.is_local Signature
(*, vbid: str = None, timeout: int = 60, files: int = 4, email: str = None, **kwargs)
Docstring
GET: Display upload interface or create a new upload box.
POST: Handle uploaded files to a specific vbid.
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)