Skip to main content

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 ID of the scanned card.

Installation: macOS

Download for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smartcard_identifier-1.8.9.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smartcard_identifier-1.8.9-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file smartcard_identifier-1.8.9.tar.gz.

File metadata

  • Download URL: smartcard_identifier-1.8.9.tar.gz
  • Upload date:
  • Size: 18.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for smartcard_identifier-1.8.9.tar.gz
Algorithm Hash digest
SHA256 0b2f477855b9e289d06e725607de0fa8306af35da2efe1c885de903aff4b632b
MD5 4d26a0b2030ae863509e420157177a70
BLAKE2b-256 26e55510698a17e278fb4c9035f87742c82427fce2cafad50c450791dea5f705

See more details on using hashes here.

File details

Details for the file smartcard_identifier-1.8.9-py3-none-any.whl.

File metadata

File hashes

Hashes for smartcard_identifier-1.8.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3553cc13f879c4976c1136cbf86a31c741fe5d17ccf7a9553471d196d1eda70e
MD5 8db9a2640d3e0d9574f032cff48772f9
BLAKE2b-256 f90a67fa1d3c86d1e709ab06cb447bc905962c9b1893dd85a45a0030d37ea6d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page