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.5

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.5
File Size Uploaded
tscan_lib-1.5.5.tar.gz 21.5 MB Details

Release files / tscan_lib-1.5.5.tar.gz

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

Release history Release notifications | RSS feed

This release

1.5.5 This release

1 release file

1.5.3

1 release file

1.5.2

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