python-edition: COBOL → Python translation of core programs#33
Open
DukeDeSouth wants to merge 1 commit into
Open
python-edition: COBOL → Python translation of core programs#33DukeDeSouth wants to merge 1 commit into
DukeDeSouth wants to merge 1 commit into
Conversation
Translates 30,175 lines of COBOL/CICS/VSAM into ~400 lines of Python with a modern web interface, 49 passing tests, and 14 bug fixes identified in the original source code. Includes: - models.py: Data models from COBOL copybooks (CVACT01Y, CVCUS01Y, etc.) - services.py: All 18 business operations (sign-on through batch reporting) - app.py: Flask web application replacing CICS/BMS - index.html: Modern UI replacing 3270 green-screen terminal - test_carddemo.py: 49 comprehensive tests - README.md: Full translation mapping and bug documentation Made-with: Cursor
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.
Hey, I was playing around with the CardDemo codebase and ended up translating the main COBOL programs to Python. Figured it might be useful for anyone exploring modernization options or just wanting to understand the business logic without reading COBOL.
What's in there
python-edition/folder with:models.py— data models from the copybooksservices.py— 18 operations (auth, accounts, cards, transactions, users, batch)app.py— simple Flask app so you can poke around in a browsertest_carddemo.py— 49 tests, all greenindex.html— basic web UIHow to run
Notes
No pressure to merge, just thought someone might find it handy.