Caen-libs

Latest version: v2.0.2

Safety actively analyzes 723217 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

2.0.2

-------------------

Fixes:
- Fixed regression in `caenhvwrapper.Device.subscribe_*_params` introduced in
v2.0.0 affecting all modules except R6060. The issue caused subscription
failures on systems where `socket.has_dualstack_ipv6()` returns True.

Changes:
- Changed default log directory for `caendpplib` on Windows from
`%APPDATA%\CAEN` to `%LOCALAPPDATA%\CAEN`.

2.0.1

-------------------

Fixes:
- Fix README and docstring in `caendpplib` demo.

2.0.0

-------------------

New features:
- Support for CAEN DPP Library as `caendpplib`. NumPy added as dependency
being required by this new submodule.
- Improved `caenvme` demo.

Changes:
- Removed `caenhvwrapper.lib.get_error`, useless at library class level
because requires an handle as argument. The underlying function is still
called automatically on error constructor, if appropriate.
- Removed `caenvme.DataWidth.ctypes`.

Fixes:
- Properly close event sockets on `caenhvwrapper.Device.close`.
- Improved `subscribe_*_params`/`unsubscribe_*_params` error messages
on `caenhvwrapper`.
- Force ASCII encode/decode of strings, being the only encoding supported
by the underlying C libraries.
- Fix `caenplu.lib.usb_enumerate`.
- `caenplu.BoardInfo` and `caenplu.USBDevice` were inheriting from
`ctypes.Structure` by mistake.

1.3.0

-------------------

New features:
- Dropped support for Python 3.8.
- `Device` classes of all modules has `__slots__` on Python >= 3.10,
except `caenhvwrapper` that has this feature only on Python >= 3.11.

Fixes:
- Fix `multi_write`, `get_input_conf` and `get_output_conf` on `caenvme`.

1.2.0

-------------------

New features:
- Improved register class, introduced in v1.1.0, with functions to
directly call get/set/multi_get/multi_set without `__getitem__`
and `__setitem__`.
- Introduced a new base class `error.BaseError` for handling errors
across submodules.
- Support for 32-bit PID introduced with CAEN HV Wrapper 7.0.

Fixes:
- Add missing binding of `CAENVME_GetFIFOMode` from `caenvme`.
- Fix Python < 3.12 `caenhvwrapper` support (thanks to sergey-ryzhikov)

Changes:
- Submodule-specific `ErrorCode` classes have been renamed to `Error.Code`
for consistency.
- The old `ErrorCode` names are now deprecated and will be removed in a
future version.

1.1.0

-------------------

New features:
- Support for Resol parameter property on caenhvwrapper for VME8100.
- Support for 32-bit PID on CAENComm demo.
- New way to access registers by using `__getitem__` and `__setitem__`.
This enables also read-modify-write operations in a single line
of code,using in-place operators like `dev.reg32[0x40] &= 0xFF`.
It has been added in `caenvme` (registers), `caencomm` (reg16 and
reg32) and `caenplu` (registers). Slicing is supported.

Fixes:
- Fix `caenhvwrapper` load on Linux.
- Classes inheriting `enum.Flag` now inherit enum.IntFlag to improve
the support of unknown flags. This applies to `caenvme.IRQLevels`,
`caencomm.IRQLevels` and all the classes on `caenhvwrapperflags`.
- Fix decode of `caenhvwrapper.ParamProp.enum.`
- Fix error detection on `caenhvwrapper.Device.get_XX_param_prop()`

Changes:
- Removed opened member from device class.

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.