Metadata-Version: 2.4
Name: openst133
Version: 0.1.0
Summary: Open driver, ost command and Python bindings for Princeton Instruments ST-133 USB camera controllers
Keywords: ST-133,Princeton Instruments,CCD,spectroscopy,SPE,camera,libusb
License-Expression: MIT
License-File: LICENSE
License-File: THIRD_PARTY_NOTICES.md
License-File: packaging/licenses/libusb/AUTHORS
License-File: packaging/licenses/libusb/COPYING
License-File: packaging/licenses/libusb/SOURCE.txt
License-File: packaging/licenses/mingw-w64/copyright
License-File: packaging/licenses/mingw-w64/gcc-copyright
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: C
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Topic :: System :: Hardware :: Hardware Drivers
Project-URL: Homepage, https://github.com/roncofaber/openst133
Project-URL: Documentation, https://github.com/roncofaber/openst133/tree/main/docs/user
Project-URL: Issues, https://github.com/roncofaber/openst133/issues
Project-URL: Changelog, https://github.com/roncofaber/openst133/blob/main/CHANGELOG.md
Requires-Python: >=3.10
Requires-Dist: numpy>=1.23
Requires-Dist: tifffile
Requires-Dist: h5py>=3.8; python_version < "3.15"
Provides-Extra: characterization
Requires-Dist: emva1288; extra == "characterization"
Requires-Dist: numpy<2; extra == "characterization"
Requires-Dist: scipy<1.12; extra == "characterization"
Requires-Dist: matplotlib<3.9; extra == "characterization"
Requires-Dist: contourpy<1.3; extra == "characterization"
Description-Content-Type: text/markdown

# openst133

openst133 is an independent, MIT-licensed C library, `ost` command-line program and Python package for selected Princeton Instruments ST-133 USB camera interfaces. It acquires spectroscopy frames and reads and writes SPE data files.

**This is early development software.** Current hardware evidence comes from the tested configuration below. Replay and simulation do not establish camera compatibility.

## Start here

```sh
python3 -m venv ~/openst133-venv && . ~/openst133-venv/bin/activate
python -m pip install openst133
openst133 setup --dat PI133B.DAT --dll PICHIPDB.dll   # once: USB access and startup data from your licensed WinSpec files
ost acquire --exposure 0.1 --out first-frame.spe
```

Complete the [safety checklist](docs/user/safety.md) before the acquire step.

- **Linux:** follow the [quickstart](docs/user/quickstart.md) for each step with its expected output and the safety checklist.
- **Windows:** follow the [Windows setup guide](docs/user/windows.md), which adds binding Windows' built-in WinUSB driver; no camera workflow has been tested on Windows.
- **All platforms:** use the [user guide](docs/user/README.md) for acquisition, readout modes, cooling, Python and integrations.

Real-camera acquisition requires private [startup data](docs/user/startup-data.md) built from your own legally obtained, licensed WinSpec installation. The project never distributes this startup data.

## Supported hardware and status

| Configuration or capability | Status |
| --- | --- |
| Linux, ST-133 USB 2.0 (`0bd7:a010`), Spec-10:100B with EEV 100x1340B detector (detector 98, 1340 x 100 pixels) | Tested configuration: discovery, identification, temperature, frames, series, streams, selected ROI and binning modes, 100 kHz and 1 MHz readout, and SPE output have been observed |
| Spec-10:400B and Spec-10:400BR | Development targets; not observed |
| Windows | Wheels are built and tested in CI; no Windows camera run is established |
| SPE 2.x and SPE 3.0 files | Read and write support; pixel values are uncalibrated |
| Other camera configurations | Not verified; the same USB ID alone does not establish compatibility |

No workflow is recorded as user-tested. Cooled operation has not been validated. External Sync and PreOpen are unsupported, and unsupported detector or readout combinations are refused rather than guessed. See the [feature support matrix](docs/user/support-matrix.md) for exact behavior and evidence limits.

## How it was developed

openst133 is a clean-room implementation built with the [theseus](https://github.com/roncofaber/theseus-lab) framework. One group of agents examined a licensed WinSpec installation and the camera's USB traffic and wrote protocol reports in their own words. A separate group of agents, which never saw vendor code, wrote openst133 from those reports and public documentation. The repository contains no vendor code, firmware or data files.

## Legal

openst133 is an independent project, not affiliated with or endorsed by Teledyne Princeton Instruments or Roper Scientific. Product names are trademarks of their respective owners and are used only to identify compatible hardware.

No vendor software, firmware or vendor data files are included or downloaded by this project. Real-camera use requires your own legally obtained, licensed WinSpec installation, for example the copy supplied with the camera, from which you build private startup data. You are responsible for complying with the WinSpec license. openst133 never distributes the resulting startup data.

openst133 is provided without warranty. Use it at your own risk with valuable hardware, and complete the [safety checklist](docs/user/safety.md) before camera use.

## License

openst133 is available under the [MIT License](LICENSE). Copyright 2026 DATM group, The Molecular Foundry, Lawrence Berkeley National Laboratory. Runtime and bundled components are listed in the [third-party notices](THIRD_PARTY_NOTICES.md).
