Python package e3sertools
Handy tools for working with Zuken E3.series API using e3series package.
Functionality
This package provides this functionality:
- Resolve PID of target E3 process in meaningful way:
check corresponding environment variable (
E3_SERIES_PID), if it is not set then check parent processes, if nothing from above works then just ask a user which e3series process to connect to. This functionality is available asApplication.resolve_e3_pid()withApplicationfrome3sertools.extensionsmodule. - Control COM-connection initialization and finalization by code.
This functionality is available as
ReleaseComObject()method implemented for classes ine3sertools.extensionsmodule. They also implementContextManagerprotocol and close connection on context exit. - Have global context variables for
ApplicationandJobconnections to reuse them between modules. Context variables forApplicationandJobclasses are available asappandjobfrome3sertools.contextvarsmodule.
Examples
import e3series as e3
import e3sertools.contextvars
import e3sertools.extensions
# Resolve target E3.series application
app = e3.Application(e3sertools.extensions.Application.resolve_e3_pid())
# Cnotrol COM-connection using context manager and context variables.
with e3sertools.contextvars.job.set(app.CreateJobObject()):
... # do things with job
Release files for e3sertools 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| e3sertools-0.3.0.tar.gz | 10.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| e3sertools-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.9 kB
Release files / e3sertools-0.3.0.tar.gz
| Download URL | e3sertools-0.3.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b060f97c817d69b9fdb51e4f80f9dd9b0d84a66aa5e950da4ff0e99579a176d4
|
|
BLAKE2b-256 checksum How to use checksums |
83eaaa2e77678d6ca41e3bd98212863c9bbef6ccddafbca3b91548fdb2262589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / e3sertools-0.3.0-py3-none-any.whl
| Download URL | e3sertools-0.3.0-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
323b0c65f1d146661adb9a8c8f3e01d4f55eeb4e24e267fd0940d3f1e2227547
|
|
BLAKE2b-256 checksum How to use checksums |
888e8c8521dfb9b7caf261af99726f009a961a9b24bc26263b2981055fd28c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|