Skip to main content

CCRE

Overview

This is a simple Python library for reading smart cards and extracting their unique card serial numbers (CSN). It provides basic functionality to interact with smart card readers and perform operations like selecting AID files and retrieving card serial numbers.

Example Usage

# FIND card reader
reader = find_card_reader()  # or find card reader by get_card_reader_list()

if reader:
    # MAKE a connection
    connection = create_new_reader_connection(reader, 'T0')

    # SELECT aid file of financial
    select_network_aid(connection, 'financial')

    # GET card serial number
    csv = get_card_serial_number(connection)
    print(f"Card serial number: {csv}")

else:
    print("No reader found.")

Dependencies

This library requires the following dependencies:

  • pyscard: For interacting with smart card readers.

Install dependencies using:

pip install pyscard

Features

  • Detect available smart card readers.
  • Establish a connection with a smart card reader.
  • Select specific AID files on the card.
  • Retrieve the unique card serial number (CSN).

License

This project is licensed under the MIT License.

Metadata

Release files for CCRE-Card-Unique-ID-Exporter 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CCRE-Card-Unique-ID-Exporter 0.0.3
File Size Uploaded
ccre_card_unique_id_exporter-0.0.3.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for CCRE-Card-Unique-ID-Exporter 0.0.3
File Interpreter ABI Platform
ccre_card_unique_id_exporter-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / ccre_card_unique_id_exporter-0.0.3.tar.gz

Download URL ccre_card_unique_id_exporter-0.0.3.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fd3360b58f46747ec4d21216410b4136cd199f3e79bab081e15fce6382d6680b
BLAKE2b-256 checksum
How to use checksums
5eac6481d7356aaa8934a6aae77af30eee818a3254bc34cd43f6c0c91c455f08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / ccre_card_unique_id_exporter-0.0.3-py3-none-any.whl

Download URL ccre_card_unique_id_exporter-0.0.3-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f0d9d3d7552a11f46355e7c45905a2c1198a6e56b61e386aa7bd0f033f476a36
BLAKE2b-256 checksum
How to use checksums
bea00859f689b4a51628530b36f21bfe68dc2fb531093b2220f99988781ea38c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page