Read smart card ID number and emulate a keyboard to paste it as text.
Project description
Smartcard Identifier
This is an extremely simple smartcard system that reads only the smart card's ID number, and pastes it as text into the currently open application. This can be used for applications that rely on nothing more than the identity of the scanned card, such as an authentication system in a low-security environment.
Installation: macOS
- Install the package above. This will also add python3 to the security settings which you'll enable the in the next two steps.
- Open System Settings -> Privacy & Security -> Automation and enable permissions for python3.
- Open System Settings -> Privacy & Security -> Accessibility and enable permissions for python3.
If you can't find python3 in the list, click the "+" button, then press Command+Shift+G and type /usr/bin/python3
Installation: Linux/Windows
https://pypi.org/project/smartcard-identifier/
$ pip3 install smartcard-identifier
$ smartcard-identifier --help
Release Process
To sign the macOS release you will need to have the relevant Developer Certificate installed in your Keychain, which you can download from https://developer.apple.com/account/resources/certificates/list . Make sure you also have Apple's intermediate certificates installed, which you can download from the bottom of the page at https://developer.apple.com/account/resources/certificates/add . Without these, the Developer Certificate will show up as "untrusted" in Keychain Access.
To build & publish a release, first increment the version in pyproject.toml, then run the following to build and upload to Github and PyPI:
$ make release
Notes
If you run into the following error installing via pip3 install smartcard-identifier
on macOS:
× Building wheel for pyscard (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [5 lines of output]
running bdist_wheel
running build
running build_py
Install swig and try again
then you can fix the above error by running brew install swig
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smartcard_identifier-1.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 465f14c1e995f3bc96077b7e50e40b6167c217a8cfaeba93a6688cf427f195a8 |
|
MD5 | 1dd27cf50d9609c43f179d567b6fdf0f |
|
BLAKE2b-256 | b880def55a839970de3431b0901f59661f00a5f44774f8858b5460feeba37afa |
Hashes for smartcard_identifier-1.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f753fa3577d21f9aa894567d9a2fa6b4bf904936e86152e6c7f6a3815676d38 |
|
MD5 | 2cff9a9a2c81b8f61543ad2a9bee5ee2 |
|
BLAKE2b-256 | a5eecde380677d3bc2a1f11f95dd0e2565bdf74469de5d613e7ec05af8c14eab |