A hypermodern, type-safe, zero-dependency python library for the Boltwood II & III cloud sensors.
Project description
Boltwood
Modern, type-safe, zero-dependency python library for controlling the Boltwood III observing conditions sensor.
Installation
uv add boltwood
or
using your preferred environment / package manager of choice, e.g., poetry, conda or pip:
pip install boltwood
poetry add boltwood
conda install boltwood
Usage
from boltwood import (
BoltwoodIIIConditionsMonitorDeviceInterface,
BoltwoodIIIConditionsMonitorDeviceParameters,
)
# Define the parameters for the BoltwoodIII monitor device:
params: BoltwoodIIIConditionsMonitorDeviceParameters = BoltwoodIIIConditionsMonitorDeviceParameters(
name="Boltwood III Conditions Monitor",
description="Boltwood III Conditions Monitor",
port=port,
baudrate=baudrate,
latitude=33.87047,
longitude=-118.24708,
elevation=0.0,
did="0", # Device ID
vid="", # Vendor ID
pid="", # Product ID
)
# Create a new Boltwood III Conditions Monitor device interface:
monitor = BoltwoodIIIConditionsMonitorDeviceInterface(
id=0,
params=params,
)
# Initialise the monitor:
monitor.initialise()
# Get the current status of the monitor:
status = monitor.get_status()
...
As the boltwood instance is fully typed, you can use your IDE's autocompletion to see all the available methods and properties.
We have also provided further usage examples in the examples directory.
Milestones
- Type-safe modern 3.6+ Python
- Fully unit tested
- Simpler API (modelled around the ASCOM Alpaca API)
- Integration testing with HIL testing (hardware-in-the-loop)
- Zero-external dependencies (no numpy, astropy etc for portability)
- Example API usage
- Fully supported Observing Conditions Sensor operations
- Fully supported Alert Threshold operations
- ASCOM Alpaca APIs w/Fast API
Disclaimer
This project is not affiliated with Diffraction Limited in any way. It is a community-driven project. All trademarks and logos are the property of their respective owners.
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file boltwood-0.1.0.tar.gz.
File metadata
- Download URL: boltwood-0.1.0.tar.gz
- Upload date:
- Size: 39.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24ae3718611cb9a2ed81355d30b2d3c932ea5de614070999daacd2e6ab5a6920
|
|
| MD5 |
df0b4c709510fa6f260ba43ab5c8a167
|
|
| BLAKE2b-256 |
951fa742473baa51895f0c4dedc9eb397f1c368847b81a97006a7cdb70db7ad3
|
Provenance
The following attestation bundles were made for boltwood-0.1.0.tar.gz:
Publisher:
publish.yml on michealroberts/boltwood
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boltwood-0.1.0.tar.gz -
Subject digest:
24ae3718611cb9a2ed81355d30b2d3c932ea5de614070999daacd2e6ab5a6920 - Sigstore transparency entry: 219203985
- Sigstore integration time:
-
Permalink:
michealroberts/boltwood@fcf15215d8d115ba475e08bf0345943e3abb631b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/michealroberts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fcf15215d8d115ba475e08bf0345943e3abb631b -
Trigger Event:
release
-
Statement type:
File details
Details for the file boltwood-0.1.0-py3-none-any.whl.
File metadata
- Download URL: boltwood-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1838788d16a6912a0397ea63133b5b0c76226e2602e8698bc3214d4489612062
|
|
| MD5 |
f64536fb8d70e3da6becd68929f0d602
|
|
| BLAKE2b-256 |
7fd54c995233241dedbf963a09d6adb3551e0d3e29a822d063d2abe80efc97ed
|
Provenance
The following attestation bundles were made for boltwood-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on michealroberts/boltwood
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
boltwood-0.1.0-py3-none-any.whl -
Subject digest:
1838788d16a6912a0397ea63133b5b0c76226e2602e8698bc3214d4489612062 - Sigstore transparency entry: 219203988
- Sigstore integration time:
-
Permalink:
michealroberts/boltwood@fcf15215d8d115ba475e08bf0345943e3abb631b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/michealroberts
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@fcf15215d8d115ba475e08bf0345943e3abb631b -
Trigger Event:
release
-
Statement type: