Skip to main content

pyobs for ZWO ASI cameras

This is a pyobs module for ZWO ASI cameras.

ASI SDK

The Linux libraries of the ASI SDK 1.41 (armv6, armv7, armv8, x64, x86) and asi.rules are included in the sdk/ folder, as published by ZWO under the license in sdk/license.txt. See https://www.zwoastro.com/software/product-sdk/ for the official download and newer versions. Do not use the 1.37 libraries from third-party repositories, they return corrupt frames on the ASI2600MM Pro.

Install the library for your platform to /usr/local/lib and update the linker cache, e.g. on x86-64:

sudo install sdk/x64/libASICamera2.so.1.41 /usr/local/lib
sudo ln -sf libASICamera2.so.1.41 /usr/local/lib/libASICamera2.so
sudo ldconfig

Then install the udev rules and reconnect the camera:

sudo install sdk/asi.rules /etc/udev/rules.d/99-asi.rules
sudo udevadm control --reload && sudo udevadm trigger

The rules also set usbfs_memory_mb to 200, which large sensors need. Check it with cat /sys/module/usbcore/parameters/usbfs_memory_mb. Instead of installing the library, you can also pass its path to the sdk parameter of the camera (see below).

Install pyobs-asi

Clone the repository:

git clone https://github.com/pyobs/pyobs-asi.git
cd pyobs-asi

Install it with uv:

uv sync

Alternatively, with plain venv/pip:

python3 -m venv .venv
source .venv/bin/activate
pip install .

Configuration

The AsiCamera class is derived from BaseCamera (see pyobs documentation) and adds some new parameters:

camera:
    Name of camera to acquire driver for.
sdk:
    Path to .so file from ASI SDK.

Therefore, a basic module configuration would look like this:

class: pyobs_asi.AsiCamera
name: ASI camera
camera: ZWO ASI071MC Pro

For cameras with cooling, use AsiCoolCamera instead, which adds a setpoint parameter for the initial cooling setpoint in degrees Celsius:

class: pyobs_asi.AsiCoolCamera
name: ASI camera
camera: ZWO ASI071MC Pro
setpoint: -20

The setpoint is changed in steps (default 2 degC/min when cooling down, 1 degC/min when warming up, and the cooler is switched off only after warming up). Use cooling_rate_cool, cooling_rate_warm and cooling_ramp_step to change this, see CoolingRampMixin in pyobs-core.

GUI

For testing a camera without a full pyobs setup, install the optional gui extra:

uv sync --extra gui

and run:

uv run asi-gui [path/to/libASICamera2.so]

Dependencies

  • pyobs-core for the core functionality.
  • zwoasi as a Python wrapper for the ASI SDK.
  • Astropy for FITS file handling.
  • NumPy for array handling.

Metadata

Release files for pyobs-asi 2.2.0

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

Source distribution (sdist)

Source distribution for pyobs-asi 2.2.0
File Size Uploaded Provenance Actions
pyobs_asi-2.2.0.tar.gz 5.8 MB Without provenance Details for pyobs_asi-2.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyobs-asi 2.2.0
File Interpreter ABI Platform Actions
pyobs_asi-2.2.0-py3-none-any.whl Python 3 none any Details for pyobs_asi-2.2.0-py3-none-any.whl

Total release size: 5.8 MB

Release files / pyobs_asi-2.2.0.tar.gz

Download URL pyobs_asi-2.2.0.tar.gz
Size 5.8 MB
Tags Source
SHA-256 checksum
How to use checksums
49eb7d282d5696621b42d06be15ee2ee97d5f34eaf4a6ca858b9a2c55638aa2a
BLAKE2b-256 checksum
How to use checksums
8774bc258a03ed3c3c1b478d425e7f91b017e80c4c4fcf701a38d1bf7db6743b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyobs_asi-2.2.0-py3-none-any.whl

Download URL pyobs_asi-2.2.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
74f3110a273c8889e9d19e2c283b5188e45b6d7c4d4032fd78a5c191b4e25ddf
BLAKE2b-256 checksum
How to use checksums
4b3a0f503439a4e7762c3d50eb29aa7835ac3ea294704d526d3fd04f8795de61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.8 {"installer":{"name":"uv","version":"0.13.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyobs-asi 2.2.0

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.

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files No provenance

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