This Python script provides an interface for users to input an ID either manually or through a card reader. It presents the user with a menu to choose between the two options and processes the input accordingly.
- Read ID from a card reader by swiping a card.
- Manually input an ID through keyboard entry.
- Error handling for invalid input choices.
- Easy-to-use interface.
- Python 3.x
- Windows operating system (for card reader functionality using
msvcrt
) - Integrated terminal (for optimal usage in environments like Visual Studio Code)
- Run the script (
main.py
). - Follow the on-screen prompts:
- Choose option 1 to read the ID from the card reader.
- Choose option 2 to manually enter the ID.
- Choose option 3 to exit the program.
- If selecting option 1, swipe the card when prompted.
- If selecting option 2, enter the ID manually when prompted.
- The entered ID will be displayed on the screen.
-
Clone the repository:
git clone https://github.com/your-username/id-input-system.git
-
Navigate to the project directory:
cd id-input-system
-
Run the script:
python main.py