A library and actor to communicate with an STA Archon controller.
Project description
archon
A library and actor to communicate with an STA Archon controller.
Installation
In general you should be able to install archon
by doing
pip install sdss-archon
To build from source, use
git clone git@github.com:sdss/archon
cd archon
pip install .
Docker
The actor can run as a Docker container; new images for main
(pointing to tag latest
) and tags are created via a GitHub Action. The images are stored in the GitHub Container Registry. To pull the latest image run
docker pull ghcr.io/sdss/archon:latest
To run a container
docker run --name archon --rm --detach --network host ghcr.io/sdss/archon:latest
This assumes that RabbitMQ is running on the default port in the host computer and that the Archon controllers are accessible over the host network.
Development
archon
uses poetry for dependency management and packaging. To work with an editable install it's recommended that you setup poetry
and install archon
in a virtual environment by doing
poetry install
Or in editable mode
pip install -e .
Note that the latter will only install the production dependencies, not the development ones. You'll need to install those manually (see pyproject.toml
[tool.poetry.dev-dependencies]
).
Style and type checking
This project uses the black code style with 88-character line lengths for code and docstrings. It is recommended that you run black
on save. Imports must be sorted using isort. The GitHub test workflow checks all the Python file to make sure they comply with the black formatting.
Linting uses flake8 and isort rules implemented using ruff.
For Visual Studio Code, the following project file is compatible with the project configuration:
{
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports.ruff": "explicit"
},
"editor.wordWrap": "off",
"editor.tabSize": 4,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"[markdown]": {
"editor.wordWrapColumn": 88
},
"[restructuredtext]": {
"editor.wordWrapColumn": 88
},
"[json]": {
"editor.quickSuggestions": {
"strings": true
},
"editor.suggest.insertMode": "replace",
"gitlens.codeLens.scopes": ["document"],
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.tabSize": 2
},
"[yaml]": {
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.tabSize": 2,
"editor.autoIndent": "advanced",
"gitlens.codeLens.scopes": ["document"]
},
"prettier.tabWidth": 2,
"editor.rulers": [88],
"editor.wordWrapColumn": 88,
"python.analysis.typeCheckingMode": "basic"
}
This assumes that the Python and Pylance extensions are installed.
This project uses type hints.
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
File details
Details for the file sdss_archon-0.15.0.tar.gz
.
File metadata
- Download URL: sdss_archon-0.15.0.tar.gz
- Upload date:
- Size: 44.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc3f55b3ac3c682c14d331c5e1ec23d8e470ebcf25fde4ee8c7aec98a6065eb0 |
|
MD5 | d341675f377e61276d7ed65e459aeaeb |
|
BLAKE2b-256 | 1aa769cc84707d7bdc50c3c2a54f3dec680c0da0935c2e30a21e4daba751b995 |
Provenance
The following attestation bundles were made for sdss_archon-0.15.0.tar.gz
:
Publisher:
release.yml
on sdss/archon
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sdss_archon-0.15.0.tar.gz
- Subject digest:
bc3f55b3ac3c682c14d331c5e1ec23d8e470ebcf25fde4ee8c7aec98a6065eb0
- Sigstore transparency entry: 147432413
- Sigstore integration time:
- Predicate type:
File details
Details for the file sdss_archon-0.15.0-py3-none-any.whl
.
File metadata
- Download URL: sdss_archon-0.15.0-py3-none-any.whl
- Upload date:
- Size: 59.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6dbcfe5f8f57a338c64b35f202a0a8ea8149ff3b3336ff684524adb5c5436fd7 |
|
MD5 | 6813327e8bb766eef3accf1f002134f6 |
|
BLAKE2b-256 | b62c58cb2fc7ad0a675b2b363c53b8cf4f0dc7fdaecc4be17633383db924ac64 |
Provenance
The following attestation bundles were made for sdss_archon-0.15.0-py3-none-any.whl
:
Publisher:
release.yml
on sdss/archon
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
sdss_archon-0.15.0-py3-none-any.whl
- Subject digest:
6dbcfe5f8f57a338c64b35f202a0a8ea8149ff3b3336ff684524adb5c5436fd7
- Sigstore transparency entry: 147432415
- Sigstore integration time:
- Predicate type: