Add Python API with decode_text.py module and test files for Harappan script decoder#1
Draft
Add Python API with decode_text.py module and test files for Harappan script decoder#1
Conversation
Co-authored-by: EmergentMonk <73952179+EmergentMonk@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add decode_text script and test files
Add Python API with decode_text.py module and test files for Harappan script decoder
Oct 15, 2025
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.
This PR adds a Python package structure and API for the undeciphered script decoder, along with test fixtures for Harappan script input/output.
Changes
New Python Package:
undec_script_decoderCreated a proper Python package structure with three key files:
__init__.py- Package initialization that exports thedecodefunctionundec.py- Core decode function that wraps the existingblackbox_indus_decoderdecode_text.py- Command-line interface wrapper with usage instructionsThe module can be invoked from the command line:
python -m undec_script_decoder.decode_text "unicorn-seal"This will decode the input using the existing Indus script decoder logic and output JSON with decoded patterns, possible meanings, confidence scores, and AI remix lore.
Test Files
Added a
tests/directory with two test fixture files:test_harappan_input.txt- Example Harappan script input stringexpected_harappan_output.txt- Expected decoded output from the Harappan script inputThese files provide test cases for future integration testing of the decoder functionality.
Infrastructure
Updated
.gitignoreto exclude Python cache files (__pycache__/,*.pyc, etc.) to keep the repository clean.Usage Example
Technical Details
The implementation properly integrates with the existing
undec_script_blackbox.pydecoder by:blackbox_indus_decoderThis lays the groundwork for building more comprehensive testing and API features around the Harappan/Indus script decoder functionality.
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.