Skip to main content

tscan.lib

tscan.lib provides Python bindings for the TOSUN TSCAN API. The Python import package remains libTSCANAPI for compatibility with existing applications.

Requirements

  • Python 3.6 or newer.
  • Windows x86, Windows x64, or Linux x64.
  • A supported TOSUN TSCAN device.

Installation

Install the package with pip:

python -m pip install tscan.lib

For offline environments, install the package file provided by TOSUN:

python -m pip install <package-file>

Basic Usage

from ctypes import c_int32

from libTSCANAPI import finalize_lib_tscan, initialize_lib_tscan, tscan_scan_devices

initialize_lib_tscan(True, True, False)

device_count = c_int32(0)
result = tscan_scan_devices(device_count)
print("scan result:", result)
print("device count:", device_count.value)

finalize_lib_tscan()

Platform Notes

  • Windows supports the core TSCAN APIs and BLF APIs.
  • Linux supports the core TSCAN APIs. BLF APIs are disabled on Linux and return a controlled unavailable result.
  • If Linux device connection returns a permission error, install the udev rule from libTSCANAPI/rules/99-tosun.rules.

Optional Integrations

To use the libtosun interface through python-can, set IS_ADD_PYTHON_CAN in libTSCANAPI/config.py to True, then import libTSCANAPI once.

To enable TOSUN-specific DBC parsing for automatic CAN and CAN FD message creation, set IS_ADD_CANTOOLS in libTSCANAPI/config.py to True, then import libTSCANAPI once.

Keep both options disabled unless the integration is required by your application.

Metadata

Release files for tscan.lib 1.5.9

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

Source distribution (sdist)

Source distribution for tscan.lib 1.5.9
File Size Uploaded Provenance
tscan_lib-1.5.9.tar.gz 23.7 MB Without provenance Details

Release files / tscan_lib-1.5.9.tar.gz

Download URL tscan_lib-1.5.9.tar.gz
Size 23.7 MB
Tags Source
SHA-256 checksum
How to use checksums
d83e5f6d0afd9b363a8346127df52624ab7cefbc4064835ce232a6b6f67c674c
BLAKE2b-256 checksum
How to use checksums
50f856400590493c66d5a6ad215f2d15fc01a6f2f9f8f70e392b34a655be4566
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.9

Security for tscan.lib 1.5.9

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.

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