Skip to main content

CAP Automation for CrysAlisPro

cap-auto now contains only the CrysAlisPro automation tooling.

The native .rodhypix reader was split into a standalone package:

  • Old import: from cap_auto.rod_image_reader import ...
  • New import: from rodhypix import ...

Scope

This package provides:

  • CAPInstance for CAP listen mode control
  • CAP command execution, batching, and macro helpers
  • Log capture and error/warning parsing
  • Native Windows directory monitoring via pywin32
  • Optional socket server support for remote control

Installation

pip install cap-auto

cap-auto is Windows-focused and expects a local CrysAlisPro installation.

Quick Start

from cap_auto.cap_control import CAPInstance

with CAPInstance() as cap:
    result = cap.execute("dc proffit")
    print(result.success)
    print(result.execution_time)

Core Usage

Execute one command

cap = CAPInstance(start_now=True)
result = cap.execute("dc proffit")
cap.stop()

Execute multiple commands

cap = CAPInstance(start_now=True)

results = cap.execute_batch([
    "gt o 0",
    "gt k 90",
    "gt p 0",
])

macro_result = cap.execute_macro([
    "dc proffit",
    "dc rrp",
    "xx saveub",
])

cap.stop()

Process several experiments

cap = CAPInstance(start_now=True)

results = cap.execute_on_multiple_experiments(
    commands=["dc proffit", "dc rrp"],
    par_files=["exp1.par", "exp2.par", "exp3.par"],
    use_macro=True,
)

cap.stop()

Examples

The root examples/ directory now contains only CAP automation material.

  • examples/02_cap_automation.ipynb
  • examples.py
  • cap_server_gui.py
  • cap_client_gui.py

The reader notebook and benchmark moved into the standalone rodhypix tree in this workspace.

Project Layout

  • cap_auto/cap_control.py: CAP automation API
  • examples/02_cap_automation.ipynb: CAP notebook
  • QUICKREF.md: compact API cheatsheet

Related Package

The extracted reader package lives under rodhypix in this workspace and is intended to become its own repository and distribution.

Metadata

Release files for cap-auto 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cap-auto 0.1.1
File Size Uploaded
cap_auto-0.1.1.tar.gz 17.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cap-auto 0.1.1
File Interpreter ABI Platform
cap_auto-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.5 kB

Release files / cap_auto-0.1.1.tar.gz

Download URL cap_auto-0.1.1.tar.gz
Size 17.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb9add583aef1fd1b9880c41c49a34b702e675b2ad31bbf65936643e13028f4a
BLAKE2b-256 checksum
How to use checksums
e84ceef50daaefbb7be5397f596554a3b3d51c12ec5e4b3a536548dda85ad659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.

Transparency log

Release files / cap_auto-0.1.1-py3-none-any.whl

Download URL cap_auto-0.1.1-py3-none-any.whl
Size 15.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7fda239bdfbfbf3d4fe238cb7fe149b1025ba52004ad039969f99a88c948042d
BLAKE2b-256 checksum
How to use checksums
553ced26be2604715b443f183352f8ca7596a2279bae5e5cabbb4c61df568b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

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