first init

This commit is contained in:
ISMAIL MASSERAN
2026-09-01 12:22:43 +08:00
parent ca6e55f853
commit 1e6cebc163
718 changed files with 1048 additions and 203719 deletions
+20
View File
@@ -38,6 +38,26 @@ The CLI example (`example_cli.py`) demonstrates:
- Sending escape commands (Get Reader Info example)
- Interactive mode for custom commands
### MyKad Reader (macOS and Windows)
Uses the same PC/SC stack (`API.py` + `pyscard`) to read JPN data from a Malaysian MyKad (name, NRIC, address, photo). Insert the card into the ACR39U contact-side down.
```bash
# GUI
python MyKad_Reader.py
# CLI (prints JSON, writes photo.jpg)
python mykad.py
python mykad.py --list-readers
# Local helper API for Laravel (binds 127.0.0.1 only)
python mykad_api.py
# curl http://127.0.0.1:17321/status
# curl -X POST http://127.0.0.1:17321/read
# open http://127.0.0.1:17321/demo
```
Optional photo preview in the GUI: `pip install pillow`.
## Advanced Usage
For developers who wish to integrate smart card functionality into their own Python applications, please refer to the [API Reference (API_REFERENCE.md)](./API_REFERENCE.md) for detailed programmatic examples and function documentation.