Skip to main content

cardscan-client

The official python client for the CardScan API

Requirements.

Python 3.8+

Installation & Usage

pip install cardscan-client

Getting Started

Please follow the installation procedure and then run the following:

from cardscan_client.api_client import ApiClient
from cardscan_client.api.card_scan_api import CardScanApi
from cardscan_client.configuration import Configuration
from cardscan_client.exceptions import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://sandbox.cardscan.ai/v1
# See configuration.py for a list of all supported configuration parameters.

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearerAuth
configuration = Configuration(
    api_key=os.environ['API_KEY'],
    environment='sandbox'
)


def main():
    client = CardScanApi(api_client=ApiClient(configuration=configuration))

    try:
        api_response = client.full_scan(front_image_path="test/cards/front.jpg")

        pprint(api_response)
    except ApiException as e:
        print("Exception when calling FullScan->full_scan: %s\n" % e)


if __name__ == "__main__":
    main()

Documentation for API Endpoints

All URIs are relative to https://sandbox.cardscan.ai/v1

Class Method HTTP request Description
CardScanApi create_card POST /cards Creates a new card
CardScanApi create_eligibility POST /eligibility Create Eligibility Record
CardScanApi delete_card_by_id DELETE /cards/{card_id} Delete Card
CardScanApi direct_upload POST /cards/{card_id}/upload Direct Upload
CardScanApi generate_card_upload_url POST /cards/{card_id}/generate-upload-url Card - Generate Upload URL
CardScanApi generate_magic_link GET /generate-magic-link Generate Magic Link
CardScanApi generate_upload_url GET /generate-upload-url Generate an upload URL
CardScanApi get_access_token GET /access-token Access Token
CardScanApi get_card_by_id GET /cards/{card_id} Get Card by ID
CardScanApi get_eligibility_by_id GET /eligibility/{eligibility_id} Get Eligibility
CardScanApi get_scan_metadata GET /scans/{scan_id}/metadata Get Scan Metadata
CardScanApi list_cards GET /cards List Cards
CardScanApi list_eligibility GET /eligibility List Eligibility
CardScanApi search_cards GET /cards/search Search Cards (200) OK
CardScanApi validate_magic_link GET /validate-magic-link Validate Magic Link

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

Author

Metadata

Release files for cardscan-client 0.12.0

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

Source distribution (sdist)

Source distribution for cardscan-client 0.12.0
File Size Uploaded Provenance
cardscan_client-0.12.0.tar.gz 103.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cardscan-client 0.12.0
File Interpreter ABI Platform
cardscan_client-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 428.1 kB

Release files / cardscan_client-0.12.0.tar.gz

Download URL cardscan_client-0.12.0.tar.gz
Size 103.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f76281ce95a8578f5900f276289c92573a7ec599b117e31cd96537bd4c9468ed
BLAKE2b-256 checksum
How to use checksums
09639b7c005ff05501bdc6a58df0ca780af7e9cdd43f0ef9fd8817f92b72e1a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.8 Darwin/23.3.0

Release files / cardscan_client-0.12.0-py3-none-any.whl

Download URL cardscan_client-0.12.0-py3-none-any.whl
Size 324.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08f8e2b895059c547136c7caefcf7c43cf2eda4823fec5073075c15d7ddf21ad
BLAKE2b-256 checksum
How to use checksums
f1cca9529dd2fb2b4957148cda44d8e6190230c38af9c13c8c5e002acb986b6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.13.8 Darwin/23.3.0

Security for cardscan-client 0.12.0

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