other devices which implement TWAIN, for the Windows platform. It provides the
functionality to allow a Python application to connect to the scanner/camera and
to retrieve images from that device.
The Python TWAIN module supports 32bit Windows only. It does not run on Apple
Computer Platforms or on UNIX based Platforms.
Example: Retrieve an image from a scanner
import twain
sm = twain.SourceManager(0)
ss = sm.OpenSource()
ss.RequestAcquire(0,0)
rv = ss.XferImageNatively()
if rv:
(handle, count) = rv
twain.DIBToBMFile(handle, 'image.bmp')
Metadata
Release files for twain 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| twain-1.0.5.win32-py2.7.exe | Details | |||
| twain-1.0.5.win32-py2.6.exe | Details |
Total release size: 467.0 kB
Release files / twain-1.0.5.win32-py2.7.exe
| Download URL | twain-1.0.5.win32-py2.7.exe |
|---|---|
| Size | 233.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
934b87a53d07fe31454af4e61b0289a9d9ee58c557523ca57d871d2ffc074a68
|
|
BLAKE2b-256 checksum How to use checksums |
0eafc27fd93aabc2c9bb35e96ff4b02d2aaaf423715e4a42197c94f874beaf64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / twain-1.0.5.win32-py2.6.exe
| Download URL | twain-1.0.5.win32-py2.6.exe |
|---|---|
| Size | 233.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c2cf1bf335535285b756de94c11f75f3a05f4bee1ed8bcd6e1e8ed44b1a844e2
|
|
BLAKE2b-256 checksum How to use checksums |
d818d0d5560cd08bf3df5370b267764904be5473b091d5da33d32cf600f11611
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for twain 1.0.5
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.