Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Read Gulf ID card data

Python package that interfaces with the Gulf ID and EID card reader service. It uses websocket to connect to the service installed on the host machine where a USB smart card reader is connected.

Usage

  • Install the card reader service on a windows machine
  • Ensure the services are running
  • Get the IP of the machine
import aiohttp
from gulf_id_scanner import Client, ServiceError

session = aiohttp.ClientSession()
client = Client(host="192.168.3.45", web_session=session)
# validate connection
try:
    await client.connect()
except ServiceError as err:
    return False

# read card data
try:
  card_data = client.async_read_card():
    # code to process returned card data
except ServiceError as err:
    return
# detect when card is inserted and read card data
try:
  async for card_data in client.async_detect_card():
    # code to process returned card data
except ServiceError as err:
    return
await session.close()

Card Data

The CardData class provides the main card data fields that are commonly required when reading the ID. For more specific fields you can find all the data fields retrived from CardData.card_data.

Metadata

Release files for gulf-id-scanner 0.1.0b2

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

Source distribution (sdist)

Source distribution for gulf-id-scanner 0.1.0b2
File Size Uploaded Provenance Actions
gulf_id_scanner-0.1.0b2.tar.gz 8.8 kB Without provenance Details for gulf_id_scanner-0.1.0b2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gulf-id-scanner 0.1.0b2
File Interpreter ABI Platform Actions
gulf_id_scanner-0.1.0b2-py3-none-any.whl Python 3 none any Details for gulf_id_scanner-0.1.0b2-py3-none-any.whl

Total release size: 18.8 kB

Release files / gulf_id_scanner-0.1.0b2.tar.gz

Download URL gulf_id_scanner-0.1.0b2.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
03fceefd023512519b122b49e506cd2377d00d0583f2244de52f9af0c7d8d230
BLAKE2b-256 checksum
How to use checksums
9ca0a793f034b7e446ef4332680375cfae8735c3b0e72879a3151bdadf743ee9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.11 Linux/5.15.123.1-microsoft-standard-WSL2

Release files / gulf_id_scanner-0.1.0b2-py3-none-any.whl

Download URL gulf_id_scanner-0.1.0b2-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
398c9b6e068b9ae2afac71fce543a1a018f2d926ec236e5f4518d077d6e3d01d
BLAKE2b-256 checksum
How to use checksums
42edfe180a6be4d31c748f9f94bd7241a7b9507e36da2b922ddc4a8cb759178b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.10.11 Linux/5.15.123.1-microsoft-standard-WSL2

Security for gulf-id-scanner 0.1.0b2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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