pyscard - python smart card library - is a python module adding smart cards support to python.
https://pyscard.sourceforge.io/user-guide.html#pyscard-user-guide
High level API samples: See https://pyscard.sourceforge.io/pyscard-framework.html#framework-samples Low level API samples: See https://pyscard.sourceforge.io/pyscard-wrapper.html#wrapper-samples