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
| #!/usr/bin/env python3 | |
| """Thai National ID Card Reader - Refactored for Python 3. | |
| Author: Kawin Viriyaprasopsook<kawin.v@kkumail.com> | |
| Date: 2025-06-15 | |
| Requirements: sudo apt-get -y install pcscd python3-pyscard python3-pil | |
| Refactoring improvements: | |
| - Context manager support for automatic resource cleanup | |
| - Enum for status words and constants |