awire 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- awire-0.1.0/.gitignore +3 -0
- awire-0.1.0/LICENSE +19 -0
- awire-0.1.0/PKG-INFO +4 -0
- awire-0.1.0/README.md +41 -0
- awire-0.1.0/awire/__init__.py +13 -0
- awire-0.1.0/awire/_binding.c +4537 -0
- awire-0.1.0/awire/main.py +2134 -0
- awire-0.1.0/build_extension.py +634 -0
- awire-0.1.0/examples/capture.py +56 -0
- awire-0.1.0/examples/list_cameras.py +41 -0
- awire-0.1.0/examples/list_settings.py +97 -0
- awire-0.1.0/examples/set_metadata.py +89 -0
- awire-0.1.0/examples/set_settings.py +135 -0
- awire-0.1.0/examples/tester.py +128 -0
- awire-0.1.0/hatch_build.py +40 -0
- awire-0.1.0/libs/libusbk/amd64/libusbK.dll +0 -0
- awire-0.1.0/libs/libusbk/libusbk.h +5285 -0
- awire-0.1.0/libs/libusbk/lusbk_shared.h +409 -0
- awire-0.1.0/libs/mingw/Wia.h +1039 -0
- awire-0.1.0/libs/mingw/libuuid.a +0 -0
- awire-0.1.0/pyproject.toml +43 -0
- awire-0.1.0/src/aw/aw-backend.c +18 -0
- awire-0.1.0/src/aw/aw-backend.h +103 -0
- awire-0.1.0/src/aw/aw-const.h +1344 -0
- awire-0.1.0/src/aw/aw-control.c +5510 -0
- awire-0.1.0/src/aw/aw-control.h +635 -0
- awire-0.1.0/src/aw/aw-device-list.c +251 -0
- awire-0.1.0/src/aw/aw-device-list.h +164 -0
- awire-0.1.0/src/aw/aw-log.c +50 -0
- awire-0.1.0/src/aw/aw-log.h +90 -0
- awire-0.1.0/src/aw/aw-util.c +26 -0
- awire-0.1.0/src/aw/aw-util.h +9 -0
- awire-0.1.0/src/aw/aw.h +8 -0
- awire-0.1.0/src/aw/platform/ip/aw-backend-ip.c +1032 -0
- awire-0.1.0/src/aw/platform/ip/aw-backend-ip.h +13 -0
- awire-0.1.0/src/aw/platform/ip/http-client.c +262 -0
- awire-0.1.0/src/aw/platform/ip/http-client.h +83 -0
- awire-0.1.0/src/aw/platform/libusb/aw-backend-libusb.c +634 -0
- awire-0.1.0/src/aw/platform/libusb/aw-backend-libusb.h +57 -0
- awire-0.1.0/src/aw/platform/osx/aw-backend-iokit.c +1096 -0
- awire-0.1.0/src/aw/platform/osx/aw-backend-iokit.h +61 -0
- awire-0.1.0/src/aw/platform/usb-const.c +14 -0
- awire-0.1.0/src/aw/platform/usb-const.h +48 -0
- awire-0.1.0/src/aw/platform/windows/aw-backend-libusbk.c +971 -0
- awire-0.1.0/src/aw/platform/windows/aw-backend-libusbk.h +86 -0
- awire-0.1.0/src/aw/platform/windows/aw-backend-wia.c +643 -0
- awire-0.1.0/src/aw/platform/windows/aw-backend-wia.h +53 -0
- awire-0.1.0/src/aw/platform/windows/win-utils.c +108 -0
- awire-0.1.0/src/aw/platform/windows/win-utils.h +9 -0
- awire-0.1.0/src/mlib/marena.c +311 -0
- awire-0.1.0/src/mlib/marena.h +120 -0
- awire-0.1.0/src/mlib/mlib-file-stdlib.c +62 -0
- awire-0.1.0/src/mlib/mlib-log-stdlib.c +93 -0
- awire-0.1.0/src/mlib/mlib.c +2108 -0
- awire-0.1.0/src/mlib/mlib.h +1172 -0
- awire-0.1.0/src/mlib/msock.c +404 -0
- awire-0.1.0/src/mlib/msock.h +104 -0
- awire-0.1.0/src/mlib/mtest.h +95 -0
- awire-0.1.0/src/mlib/mxml.c +163 -0
- awire-0.1.0/src/mlib/mxml.h +56 -0
- awire-0.1.0/src/mlib/utf8.c +237 -0
- awire-0.1.0/src/mlib/utf8.h +59 -0
awire-0.1.0/.gitignore
ADDED
awire-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2026 Mark Watson
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
awire-0.1.0/PKG-INFO
ADDED
awire-0.1.0/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
Install dependencies:
|
|
3
|
+
|
|
4
|
+
pip install --upgrade build twine
|
|
5
|
+
|
|
6
|
+
Build:
|
|
7
|
+
|
|
8
|
+
python -m build
|
|
9
|
+
|
|
10
|
+
Install:
|
|
11
|
+
|
|
12
|
+
pip install dist/awire-0.1.0-*.whl --force-reinstall
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
Compatibility:
|
|
16
|
+
|
|
17
|
+
The package is built using the Python Stable ABI (Limited API), meaning a single wheel
|
|
18
|
+
should work on all CPython versions from 3.9 onwards for a given platform.
|
|
19
|
+
For Apple Silicon (arm64), the wheel is tagged with `macosx_11_0_arm64` for maximum compatibility
|
|
20
|
+
across macOS 11 and newer.
|
|
21
|
+
|
|
22
|
+
Upload:
|
|
23
|
+
|
|
24
|
+
twine upload dist/*
|
|
25
|
+
|
|
26
|
+
Development & Debugging:
|
|
27
|
+
|
|
28
|
+
# Remove current awire installation
|
|
29
|
+
pip uninstall awire -y
|
|
30
|
+
|
|
31
|
+
# Install in development mode, you can edit the source code and see changes immediately
|
|
32
|
+
pip install -e .
|
|
33
|
+
|
|
34
|
+
# Build the c extension shared library as needed
|
|
35
|
+
python build_extension.py --debug
|
|
36
|
+
|
|
37
|
+
# To support IDE development you can build only if the shared library dependant source files change (i.e. cffi)
|
|
38
|
+
# python build_extension.py --debug --only-if-changed
|
|
39
|
+
|
|
40
|
+
# Run tester
|
|
41
|
+
python examples\tester.py
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .main import (
|
|
2
|
+
# device list
|
|
3
|
+
AwDeviceInfo, AwDevice, AwDeviceList,
|
|
4
|
+
# Control
|
|
5
|
+
AwControl, AwPtpProperty,
|
|
6
|
+
AwSonyProtocolVersion, AwPtpEventCode, AwPtpEvent,
|
|
7
|
+
AwControlCode, AwPropertyCode,
|
|
8
|
+
AwDialMode, AwExposureProgramMode, AwCaptureMode, AwWhiteBalance, AwFocusMode,
|
|
9
|
+
AwFocusArea, AwAutoFocusStatus, AwAspectRatio, AwShutterType, AwSilentMode, AwIso,
|
|
10
|
+
# Logging
|
|
11
|
+
AwLogLevel, log_set_level, log_set_func, log, log_info, log_warn, log_error,
|
|
12
|
+
# Capturing
|
|
13
|
+
AwCaptureStage, AwImageCaptureWorkflow, AwCapturedFile)
|