Skip to main content

Python wrapper for Digital Check DLL

Project description

Digital Check DLL Python Wrapper

Python Version License

⚠️ Legal Disclaimer ⚠️
This project is NOT affiliated with, endorsed by, or supported by Digital Check Corporation.
The Digital Check SDK DLL (buicap32.dll) and related components are copyrighted property of Digital Check Corporation.
By using this wrapper, you acknowledge that:

  • You possess a valid developer license from Digital Check Corporation
  • You legally obtained all required DLLs through official channels
  • You will only use this software with Digital Check scanners (SB500, SB600, TS240, CX35, CX30, etc.)

Python bindings for interacting with Digital Check's native DLL functions. This wrapper provides a Pythonic interface to safely access and utilize the functionality exposed by the Digital Check SDK DLL.

🔑 Critical Requirements

  • Digital Check Hardware: Only works with scanners purchased from Digital Check Corporation
  • Official DLL Files: You must obtain these separately from Digital Check:
    • buicap32.dll (Primary SDK Library)
    • Ts2Dll.dll, Ts5Dll.dll, TsEDll.dll, wdapi1200.dll (DLL Dependencies)
  • Windows Environment: 7/8.1/10/11 (x86/x64)
  • Python 3.8+ 32 bits

🚀 Features

  • Pure Python implementation using ctypes
  • Object-oriented API abstraction
  • Type-safe interface with error handling
  • Context manager for automatic resource cleanup
  • Windows service integration support

📦 Installation

pip install git+https://github.com/tomjod/buicap-py.git

Basic Usage

import buicap_py as dcc
from pathlib import Path

# Path to legally obtained Digital Check DLL
DLL_PATH = Path("C:/Path/To/buicap32.dll") 

try:
    api = dcc.ScannerIntegrationAPI(dll_path=DLL_PATH)
    
    # Set Path to Scanner Configuration File or  "NOINI" 
    # see DLL Manual for more information
    INI_PATH = Path("C:/Path/To/BUICSCAN.INI")
    api.buic_set_param_string(
        iParameter=dcc.ConfigPaths.CFG_INIPATH,
        sParamString=INI_PATH
    )
    
    # Initialize scanner
    if api.buic_init() < 0:
        raise RuntimeError("Scanner initialization failed")

    # Perform scan
    path_documents = Path(__file__).parent.parent / "scanned_documents"

    timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")

    front = path_documents / f"front_{timestamp}.jpg"
    back =  path_documents / f"back_{timestamp}.jpg"

    scan_result = dcc.api.dcc_scan(
        front_jpeg=str(front),
        back_jpeg=str(back)
    )
finally:
    api.close()  

🤝 Contributing

We welcome contributions! Please follow these guidelines for Pull Requests:

Before You Start

  1. Legal Compliance

    • Confirm you have a valid Digital Check developer license.
    • Never include Digital Check DLLs/INI files in your PR.
  2. Pre-requisites

PR Process

  1. Branch Strategy
    git checkout -b feat/your-feature-name  # For new features
    git checkout -b fix/issue-number        # For bug fix
    

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

buicap_py-0.1.1.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

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

buicap_py-0.1.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file buicap_py-0.1.1.tar.gz.

File metadata

  • Download URL: buicap_py-0.1.1.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for buicap_py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7c63df096ae147523ce6bbe94d4b1f789fd0a0405827be3665140f3367934701
MD5 1186afedf9d0c547a5f15753d0d05285
BLAKE2b-256 80bbbce08aa66ba51ff06128fcd0aa8040b2ed6ae35232a84b7de81306b64514

See more details on using hashes here.

File details

Details for the file buicap_py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: buicap_py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for buicap_py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c9facabdcf1a2b0120bbe5a8a29ead618995fd2a1f9c8e98eeb008124f497a1e
MD5 c1480ffec9a0af16908c635e720d3b8e
BLAKE2b-256 db89653279a467a1420c6bb82e609b4f2599be7ee5be2c5b2451e7654c45fbfa

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