Skip to content

Conversation

tolap22
Copy link

@tolap22 tolap22 commented Jun 27, 2025

This PR updates the ssh-otp.py script to ensure compatibility with both Python 2.7 and Python 3, removing the dependency on the yaml library. The script now uses a minimal internal YAML loader/dumper for configuration, and includes a default fallback mechanism if configuration loading fails.
Details:
Ensures the script runs seamlessly on both Python 2.7 and Python 3.
Removes the need for the external yaml dependency.
Adds a minimal YAML parser and dumper within the script for basic key-value configuration.
Implements a default configuration fallback if loading fails, improving robustness.
Updated QRCode URL which had been discontinued
No changes to the user-facing interface or command-line usage.
Motivation:
This change improves portability and ease of use, especially on systems where installing extra Python dependencies is not desirable or possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant