Skip to main content

awire

Python bindings for AlphaWire - a C library for Sony Alpha camera tethered control.

Overview

awire provides a convenient Python interface to control Sony Alpha cameras via USB or IP connections. It is based on the AlphaWire C library, which focuses on minimal dependencies and broad camera support.

Features

  • Fast and lightweight: Minimal overhead for camera control.
  • Broad Compatibility: Supports both pre-2020 and post-2020 Sony Alpha cameras.
  • Full Control: Access to PTP device properties and camera settings.
  • Tethered Capture: Trigger captures and download images directly.
  • Live View: Real-time streaming support.

Installation

pip install awire

Quick Start

List Connected Cameras

import awire
import time

def main():
    # Set logging level (optional)
    awire.log_set_level(awire.AwLogLevel.INFO)

    # Initialize device list
    device_list = awire.AwDeviceList()
    if not device_list.open():
        return

    # Start searching for cameras
    device_list.refresh()

    # Wait for discovery (or poll in a loop)
    while device_list.is_refreshing():
        device_list.poll_updates()
        time.sleep(0.1)

    # List found devices
    for device in device_list:
        print(f"Found: {device.manufacturer} {device.product} (S/N: {device.serial})")

    device_list.close()

if __name__ == "__main__":
    main()

Development

To build and install the package in development mode:

  1. Install Build Dependencies:

    pip install --upgrade build twine cffi
    
  2. Build the C extension:

    python build_extension.py --debug
    
  3. Install in editable mode:

    pip install -e .
    

Building Wheels

python -m build

Compatibility

The package is built using the Python Stable ABI (Limited API), meaning a single wheel should work on all CPython versions from 3.9 onwards for a given platform.

License

MIT License. See the main LICENSE file for details.

Note: This project is not affiliated with or endorsed by Sony. 'Sony' and 'Alpha' are trademarks or registered trademarks of Sony Corporation.

Metadata

Release files for awire 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 awire 0.1.1
File Size Uploaded
awire-0.1.1.tar.gz 491.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for awire 0.1.1
File
awire-0.1.1-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
awire-0.1.1-cp39-abi3-win32.whl CPython 3.9 abi3 Windows x86-32 Details
awire-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl CPython 3.9 abi3 Linux musl 1.2+ x86-64 Details
awire-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl CPython 3.9 abi3 Linux musl 1.2+ ARM64 Details
awire-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
awire-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
awire-0.1.1-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
awire-0.1.1-cp39-abi3-macosx_10_9_x86_64.whl CPython 3.9 abi3 macOS 10.9+ x86-64 Details

Total release size: 3.3 MB

Release files / awire-0.1.1.tar.gz

Download URL awire-0.1.1.tar.gz
Size 491.1 kB
Tags Source
SHA-256 checksum
How to use checksums
861d7eea38517d40925e58794ffa969b0d60a563f4d44b6e2c10bb25d6b66b63
BLAKE2b-256 checksum
How to use checksums
f4bc857d815184436ea287eb9c1306a544d7488b17ce2973f8973c96ff83f344
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-win_amd64.whl

Download URL awire-0.1.1-cp39-abi3-win_amd64.whl
Size 102.4 kB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
cd887fde4ec0172244491c8e5e112b748f159193c6d04e17377b5884c96eb0da
BLAKE2b-256 checksum
How to use checksums
bfa1beffda7a116eb7dd41c584f47c69c87829c1e9bc6119662bc98d4bee2c46
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-win32.whl

Download URL awire-0.1.1-cp39-abi3-win32.whl
Size 94.6 kB
Tags CPython 3.9 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
f0ad5133f6724bf4c3e3a61bc4ab2ad38bee890dbf82c5a02564b8a59ed2831c
BLAKE2b-256 checksum
How to use checksums
de5ab67ad6e49b32ace8622f26cc8e3ec207a5dfdf811d31066e0328519fcc8f
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl

Download URL awire-0.1.1-cp39-abi3-musllinux_1_2_x86_64.whl
Size 400.9 kB
Tags CPython 3.9 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
cf46639977f0c6d8a2db1665cb2d2a3dd8184cbaa3e2d41bb27ea0703751f1a8
BLAKE2b-256 checksum
How to use checksums
bc9a16f0015dbf9c19ffe35f4f6b1f2f72dc5389f316f6a8e43f8741bf933c9b
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl

Download URL awire-0.1.1-cp39-abi3-musllinux_1_2_aarch64.whl
Size 402.3 kB
Tags CPython 3.9 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
7f9bf86a7348149c9075c96b1d4d26445d2ddba1235fb9c902ff259ac1d701dd
BLAKE2b-256 checksum
How to use checksums
a70d8f37d9d71a8c25cf30e139dce9c9d5faabacc2fdeae24e7966cd5529fde3
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL awire-0.1.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 801.8 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
81e707e91a71b222ea425dc43ba2bb27f0635a3566609dc3e24b7ef5e2b75d23
BLAKE2b-256 checksum
How to use checksums
b559191d270e896e2bbddcff1a8e9430188fdddc7bcec17273355eb10487b1d7
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL awire-0.1.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 806.4 kB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
4869861ea100bc235725564568917b631548a0aace1030c6cc2f9fe55f48a6ae
BLAKE2b-256 checksum
How to use checksums
ff46d9d35f9701bd4c602b97e6b53ef9c12b56d82dbfa63f55abadbdc62656fe
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-macosx_11_0_arm64.whl

Download URL awire-0.1.1-cp39-abi3-macosx_11_0_arm64.whl
Size 109.0 kB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f57c43757bcf12ea5efedf15e6931cd786aeb2cd7a9ae2dd596a847ee749813c
BLAKE2b-256 checksum
How to use checksums
62ba2ca823d2e4d60ff93d6f551cf238459fb9c852f5c3549ef559f3074d86e2
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 Oct 5, 2026.

Transparency log

Release files / awire-0.1.1-cp39-abi3-macosx_10_9_x86_64.whl

Download URL awire-0.1.1-cp39-abi3-macosx_10_9_x86_64.whl
Size 111.2 kB
Tags CPython 3.9 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
3b292f5b81ba8012a81177f1271c3d019f539a0274616bbe53d79e770ed53d84
BLAKE2b-256 checksum
How to use checksums
ace69d12554a52ee896c782bf13383ab95ec7e59cbe9cc1a8bad5a54be78c029
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 Oct 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

9 release files

0.1.0

9 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