Repository navigation
Production readiness: README, license, CI, and code cleanup - #1
Merged
Merged
Conversation
- Rewrite README with features, setup, usage and limitations - Add MIT LICENSE, .gitignore, flake8 config and requirements.txt - Move the GUI into main() behind a __main__ guard so Encode/Decode can be imported - Replace star import with explicit tkinter import - Handle missing key, invalid mode and undecodable input instead of raising - Add docstrings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LICENSE(MIT, copyright 2026 Diganta Datta), Python.gitignore,.flake8andrequirements.txt(no third-party packages are used; the file documents that and how to get tkinter on Linux).github/workflows/ci.yml: runspy_compileandflake8on Python 3.9 and 3.12 (runner pinned toubuntu-24.04becauseubuntu-latestno longer provides Python 3.9). It runs on this PR and passes.MessageEncodeDecode.py: the GUI is now built insidemain()behindif __name__ == '__main__':, soEncodeandDecodecan be imported without opening a window. Thefrom tkinter import *import is replaced byimport tkinter as tk, which also removes the shadowing oftkinter.Textby a variable. Window layout, widget positions, labels and algorithm are unchanged.ZeroDivisionError), an unknown mode, and text that cannot be decoded now show a message in the result field instead of raising an error in the callback. Mode input is trimmed and case-insensitive.Verification
python -m py_compileandflake8pass locally (Python 3.12) and in CI (3.9 and 3.12).Encode/Decodeagainst the original implementation for several inputs: identical output and round trip OK.Things the owner must check
LICENSEsays "Copyright (c) 2026 Diganta Datta". Change if you want a different name or license.