cqc-quam-state 2025.6.4__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.
Potentially problematic release.
This version of cqc-quam-state might be problematic. Click here for more details.
- cqc_quam_state-2025.6.4/PKG-INFO +78 -0
- cqc_quam_state-2025.6.4/README.md +61 -0
- cqc_quam_state-2025.6.4/cqc_quam_state/__init__.py +9 -0
- cqc_quam_state-2025.6.4/cqc_quam_state/cli.py +38 -0
- cqc_quam_state-2025.6.4/cqc_quam_state/utils.py +30 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/PKG-INFO +78 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/SOURCES.txt +14 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/dependency_links.txt +1 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/entry_points.txt +2 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/requires.txt +1 -0
- cqc_quam_state-2025.6.4/cqc_quam_state.egg-info/top_level.txt +2 -0
- cqc_quam_state-2025.6.4/load-cqc-quam +3 -0
- cqc_quam_state-2025.6.4/pyproject.toml +66 -0
- cqc_quam_state-2025.6.4/quam_state/state.json +1708 -0
- cqc_quam_state-2025.6.4/quam_state/wiring.json +110 -0
- cqc_quam_state-2025.6.4/setup.cfg +4 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cqc-quam-state
|
|
3
|
+
Version: 2025.6.4
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author-email: JUNIQ Software Team <info-juniq@fz-juelich.de>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state
|
|
8
|
+
Project-URL: Repository, https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: click>=8.0.0
|
|
17
|
+
|
|
18
|
+
# CQC QUAM State
|
|
19
|
+
|
|
20
|
+
A command-line tool for managing CQC QuAM state.
|
|
21
|
+
|
|
22
|
+
## Features
|
|
23
|
+
|
|
24
|
+
The `cqc-quam-state` CLI provides the following commands:
|
|
25
|
+
|
|
26
|
+
- `set`: Set configuration values for IP and calibration db location
|
|
27
|
+
- `info`: Display information about the current state
|
|
28
|
+
- `load`: Set the environment $QUAM_STATE to the current state
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
You can install this package using `uv` or `pip`:
|
|
33
|
+
|
|
34
|
+
```fish
|
|
35
|
+
# Using uv
|
|
36
|
+
uv venv
|
|
37
|
+
source .venv/bin/activate.fish
|
|
38
|
+
uv pip install -e .
|
|
39
|
+
|
|
40
|
+
# Using pip
|
|
41
|
+
pip install -e .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
Once installed, you can use the CLI as follows:
|
|
47
|
+
|
|
48
|
+
### Get Help
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
cqc-quam-state --help
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This will display all available commands and options.
|
|
55
|
+
|
|
56
|
+
### Set Command
|
|
57
|
+
|
|
58
|
+
Use this command to set configuration values:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
cqc-quam-state set
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Info Command
|
|
65
|
+
|
|
66
|
+
Use this command to display information about the current state:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
cqc-quam-state info
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Load Command
|
|
73
|
+
|
|
74
|
+
Use this command to load data or configuration:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
cqc-quam-state load
|
|
78
|
+
```
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# CQC QUAM State
|
|
2
|
+
|
|
3
|
+
A command-line tool for managing CQC QuAM state.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
The `cqc-quam-state` CLI provides the following commands:
|
|
8
|
+
|
|
9
|
+
- `set`: Set configuration values for IP and calibration db location
|
|
10
|
+
- `info`: Display information about the current state
|
|
11
|
+
- `load`: Set the environment $QUAM_STATE to the current state
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
You can install this package using `uv` or `pip`:
|
|
16
|
+
|
|
17
|
+
```fish
|
|
18
|
+
# Using uv
|
|
19
|
+
uv venv
|
|
20
|
+
source .venv/bin/activate.fish
|
|
21
|
+
uv pip install -e .
|
|
22
|
+
|
|
23
|
+
# Using pip
|
|
24
|
+
pip install -e .
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Usage
|
|
28
|
+
|
|
29
|
+
Once installed, you can use the CLI as follows:
|
|
30
|
+
|
|
31
|
+
### Get Help
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
cqc-quam-state --help
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
This will display all available commands and options.
|
|
38
|
+
|
|
39
|
+
### Set Command
|
|
40
|
+
|
|
41
|
+
Use this command to set configuration values:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
cqc-quam-state set
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### Info Command
|
|
48
|
+
|
|
49
|
+
Use this command to display information about the current state:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cqc-quam-state info
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Load Command
|
|
56
|
+
|
|
57
|
+
Use this command to load data or configuration:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
cqc-quam-state load
|
|
61
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""CQC QuAM State management package."""
|
|
2
|
+
|
|
3
|
+
from .utils import get_quam_state_path
|
|
4
|
+
|
|
5
|
+
# Define QUAM_STATE_PATH that points to the installed quam_state directory
|
|
6
|
+
QUAM_STATE_PATH = get_quam_state_path()
|
|
7
|
+
|
|
8
|
+
# Export the variable in package namespace
|
|
9
|
+
__all__ = ['QUAM_STATE_PATH']
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import click
|
|
2
|
+
import os
|
|
3
|
+
from .utils import get_quam_state_path
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@click.group()
|
|
7
|
+
def cli():
|
|
8
|
+
"""A CLI tool for managing CQC QuAM state."""
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@cli.command()
|
|
13
|
+
def set():
|
|
14
|
+
"""Set a configuration value."""
|
|
15
|
+
click.echo("Set command called")
|
|
16
|
+
# Add your set logic here
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@cli.command()
|
|
20
|
+
def info():
|
|
21
|
+
"""Display information."""
|
|
22
|
+
click.echo("Info command called")
|
|
23
|
+
# Add your info logic here
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@cli.command()
|
|
27
|
+
def load():
|
|
28
|
+
"""Load data or configuration."""
|
|
29
|
+
# Run `cqc-quam-state load`
|
|
30
|
+
# Get QuAM state path using the utility function
|
|
31
|
+
quam_state_path = str(get_quam_state_path())
|
|
32
|
+
# print(f"QuAM state path: {type(quam_state_path)}")
|
|
33
|
+
|
|
34
|
+
click.echo(f"export QUAM_STATE_PATH={quam_state_path}")
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
if __name__ == "__main__":
|
|
38
|
+
cli()
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"""Utility functions for CQC QuAM State."""
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
from importlib.resources import files
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
def get_quam_state_path():
|
|
8
|
+
"""
|
|
9
|
+
Get the path to the QuAM state directory.
|
|
10
|
+
|
|
11
|
+
Returns:
|
|
12
|
+
str: The absolute path to the QuAM state directory.
|
|
13
|
+
"""
|
|
14
|
+
try:
|
|
15
|
+
# For Python 3.9+
|
|
16
|
+
# Access quam_state as a resource within the cqc_quam_state package
|
|
17
|
+
p = files('quam_state')
|
|
18
|
+
# p = files('cqc_quam_state').joinpath('quam_state')
|
|
19
|
+
quam_state_path = str(p._paths[0])
|
|
20
|
+
except Exception as e:
|
|
21
|
+
# Fallback for older Python versions
|
|
22
|
+
# This fallback might also need adjustment if __file__ is not reliable
|
|
23
|
+
# depending on how the package is installed/used.
|
|
24
|
+
# For now, assuming it's a simple local structure.
|
|
25
|
+
libs_dir = os.path.dirname(os.path.dirname(__file__))
|
|
26
|
+
quam_state_path = os.path.join(libs_dir, 'quam_state')
|
|
27
|
+
# print(f"Warning: Using fallback path for quam_state: {quam_state_path}")
|
|
28
|
+
quam_state_path = str(quam_state_path)
|
|
29
|
+
|
|
30
|
+
return quam_state_path
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cqc-quam-state
|
|
3
|
+
Version: 2025.6.4
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author-email: JUNIQ Software Team <info-juniq@fz-juelich.de>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state
|
|
8
|
+
Project-URL: Repository, https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state
|
|
9
|
+
Classifier: Development Status :: 3 - Alpha
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
Requires-Dist: click>=8.0.0
|
|
17
|
+
|
|
18
|
+
# CQC QUAM State
|
|
19
|
+
|
|
20
|
+
A command-line tool for managing CQC QuAM state.
|
|
21
|
+
|
|
22
|
+
## Features
|
|
23
|
+
|
|
24
|
+
The `cqc-quam-state` CLI provides the following commands:
|
|
25
|
+
|
|
26
|
+
- `set`: Set configuration values for IP and calibration db location
|
|
27
|
+
- `info`: Display information about the current state
|
|
28
|
+
- `load`: Set the environment $QUAM_STATE to the current state
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
You can install this package using `uv` or `pip`:
|
|
33
|
+
|
|
34
|
+
```fish
|
|
35
|
+
# Using uv
|
|
36
|
+
uv venv
|
|
37
|
+
source .venv/bin/activate.fish
|
|
38
|
+
uv pip install -e .
|
|
39
|
+
|
|
40
|
+
# Using pip
|
|
41
|
+
pip install -e .
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Usage
|
|
45
|
+
|
|
46
|
+
Once installed, you can use the CLI as follows:
|
|
47
|
+
|
|
48
|
+
### Get Help
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
cqc-quam-state --help
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This will display all available commands and options.
|
|
55
|
+
|
|
56
|
+
### Set Command
|
|
57
|
+
|
|
58
|
+
Use this command to set configuration values:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
cqc-quam-state set
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Info Command
|
|
65
|
+
|
|
66
|
+
Use this command to display information about the current state:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
cqc-quam-state info
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Load Command
|
|
73
|
+
|
|
74
|
+
Use this command to load data or configuration:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
cqc-quam-state load
|
|
78
|
+
```
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
load-cqc-quam
|
|
3
|
+
pyproject.toml
|
|
4
|
+
cqc_quam_state/__init__.py
|
|
5
|
+
cqc_quam_state/cli.py
|
|
6
|
+
cqc_quam_state/utils.py
|
|
7
|
+
cqc_quam_state.egg-info/PKG-INFO
|
|
8
|
+
cqc_quam_state.egg-info/SOURCES.txt
|
|
9
|
+
cqc_quam_state.egg-info/dependency_links.txt
|
|
10
|
+
cqc_quam_state.egg-info/entry_points.txt
|
|
11
|
+
cqc_quam_state.egg-info/requires.txt
|
|
12
|
+
cqc_quam_state.egg-info/top_level.txt
|
|
13
|
+
quam_state/state.json
|
|
14
|
+
quam_state/wiring.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
click>=8.0.0
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=42", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "cqc-quam-state"
|
|
7
|
+
version = "2025.06.04"
|
|
8
|
+
description = "Add your description here"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
authors = [
|
|
12
|
+
{ name = "JUNIQ Software Team", email = "info-juniq@fz-juelich.de" },
|
|
13
|
+
]
|
|
14
|
+
license = {text = "MIT"}
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
]
|
|
22
|
+
dependencies = [
|
|
23
|
+
"click>=8.0.0" # Add click dependency
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
[project.urls]
|
|
27
|
+
Homepage = "https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state"
|
|
28
|
+
Repository = "https://gitlab.jsc.fz-juelich.de/qip/cqc/cqc-quam-state"
|
|
29
|
+
|
|
30
|
+
[project.scripts]
|
|
31
|
+
cqc-quam-state = "cqc_quam_state.cli:cli" # Update script entry point
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
# Explicitly define where the package can be found
|
|
35
|
+
# [tool.setuptools]
|
|
36
|
+
# packages = ["cqc_quam_state"]
|
|
37
|
+
# include-package-data = true
|
|
38
|
+
|
|
39
|
+
# [tool.setuptools.package-data]
|
|
40
|
+
# cqc_quam_state = ["quam_state/*.json"]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# ## As on the docs
|
|
44
|
+
# [tool.setuptools.packages.find]
|
|
45
|
+
# where = ["cqc_quam_state"]
|
|
46
|
+
|
|
47
|
+
# [tool.setuptools.package-data]
|
|
48
|
+
# "cqc_quam_state" = ["*.txt"]
|
|
49
|
+
# "cqc_quam_state.quam_state" = ["*.json"]
|
|
50
|
+
|
|
51
|
+
# # From scratch
|
|
52
|
+
# [tool.setuptools]
|
|
53
|
+
# packages = ["cqc_quam_state"] # Only list the actual package
|
|
54
|
+
# include-package-data = true
|
|
55
|
+
|
|
56
|
+
# [tool.setuptools.package-data]
|
|
57
|
+
# "cqc_quam_state" = ["*.txt", "quam_state/*.json"]
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
[tool.setuptools]
|
|
61
|
+
packages = ["cqc_quam_state","quam_state"]
|
|
62
|
+
include-package-data = true
|
|
63
|
+
script-files = ["load-cqc-quam"]
|
|
64
|
+
|
|
65
|
+
[tool.setuptools.package-data]
|
|
66
|
+
"quam_state" = ["*.json"]
|