pycudal 1.0.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.
- pycudal-1.0.0/LICENSE +21 -0
- pycudal-1.0.0/MANIFEST.in +7 -0
- pycudal-1.0.0/PKG-INFO +208 -0
- pycudal-1.0.0/README.md +154 -0
- pycudal-1.0.0/assets/logo.png +0 -0
- pycudal-1.0.0/cudal/__init__.py +21 -0
- pycudal-1.0.0/cudal/__main__.py +5 -0
- pycudal-1.0.0/cudal/cli.py +361 -0
- pycudal-1.0.0/cudal/core.py +391 -0
- pycudal-1.0.0/cudal/cusp1.py +175 -0
- pycudal-1.0.0/cudal/cusp2.py +233 -0
- pycudal-1.0.0/cudal/disp1.py +158 -0
- pycudal-1.0.0/cudal/disp2.py +173 -0
- pycudal-1.0.0/cudal/gui.py +1854 -0
- pycudal-1.0.0/cudal/logo.png +0 -0
- pycudal-1.0.0/extras/cudal_gui_pyside6.py +1843 -0
- pycudal-1.0.0/pycudal.egg-info/PKG-INFO +208 -0
- pycudal-1.0.0/pycudal.egg-info/SOURCES.txt +24 -0
- pycudal-1.0.0/pycudal.egg-info/dependency_links.txt +1 -0
- pycudal-1.0.0/pycudal.egg-info/entry_points.txt +3 -0
- pycudal-1.0.0/pycudal.egg-info/requires.txt +25 -0
- pycudal-1.0.0/pycudal.egg-info/top_level.txt +1 -0
- pycudal-1.0.0/pyproject.toml +40 -0
- pycudal-1.0.0/requirements.txt +9 -0
- pycudal-1.0.0/setup.cfg +4 -0
- pycudal-1.0.0/tests/test_cudal.py +76 -0
pycudal-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Moaz El-Essawey
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
pycudal-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pycudal
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Parametric acceptance limits for USP <905> Content Uniformity and USP <711> Dissolution (mirrors SAS CALCUSPx/CALDISPx, EVCUSPx/EVDISPx, SMPCUSPx/SMPDISPx).
|
|
5
|
+
Author-email: Moaz El-Essawey <moazelessawey@gmail.com>
|
|
6
|
+
License: MIT License
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2026 Moaz El-Essawey
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
27
|
+
Project-URL: Homepage, https://github.com/moazelessawey/cudal
|
|
28
|
+
Project-URL: Repository, https://github.com/moazelessawey/cudal
|
|
29
|
+
Project-URL: Issues, https://github.com/moazelessawey/cudal/issues
|
|
30
|
+
Keywords: USP,content uniformity,dissolution,acceptance limits,pharmacopeia
|
|
31
|
+
Requires-Python: >=3.12
|
|
32
|
+
Description-Content-Type: text/markdown
|
|
33
|
+
License-File: LICENSE
|
|
34
|
+
Requires-Dist: numpy==2.5.2
|
|
35
|
+
Requires-Dist: pandas==3.0.5
|
|
36
|
+
Requires-Dist: scipy==1.18.1
|
|
37
|
+
Provides-Extra: plot
|
|
38
|
+
Requires-Dist: matplotlib==3.11.1; extra == "plot"
|
|
39
|
+
Provides-Extra: xlsx
|
|
40
|
+
Requires-Dist: openpyxl==3.1.5; extra == "xlsx"
|
|
41
|
+
Provides-Extra: pdf
|
|
42
|
+
Requires-Dist: reportlab==5.0.1; extra == "pdf"
|
|
43
|
+
Provides-Extra: qt
|
|
44
|
+
Requires-Dist: PySide6==6.11.2; extra == "qt"
|
|
45
|
+
Requires-Dist: matplotlib==3.11.1; extra == "qt"
|
|
46
|
+
Provides-Extra: all
|
|
47
|
+
Requires-Dist: matplotlib==3.11.1; extra == "all"
|
|
48
|
+
Requires-Dist: openpyxl==3.1.5; extra == "all"
|
|
49
|
+
Requires-Dist: reportlab==5.0.1; extra == "all"
|
|
50
|
+
Provides-Extra: dev
|
|
51
|
+
Requires-Dist: pytest; extra == "dev"
|
|
52
|
+
Requires-Dist: pyinstaller; extra == "dev"
|
|
53
|
+
Dynamic: license-file
|
|
54
|
+
|
|
55
|
+
# CuDAL
|
|
56
|
+
|
|
57
|
+
<p align="center">
|
|
58
|
+
<img src="assets/logo.png" alt="CuDAL logo" width="120"/>
|
|
59
|
+
</p>
|
|
60
|
+
|
|
61
|
+
**Parametric acceptance limits for USP <905> Content Uniformity and USP <711> Dissolution** —
|
|
62
|
+
a Python re-implementation of the SAS programs `CALCUSP1/2`, `CALDISP1/2`,
|
|
63
|
+
`EVCUSP1/2`, `EVDISP1/2`, `SMPCUSP1/2`, `SMPDISP1/2`, with a CLI and two GUIs.
|
|
64
|
+
|
|
65
|
+
[](https://github.com/moazelessawey/cudal/actions/workflows/ci.yml)
|
|
66
|
+
[](https://pypi.org/project/cudal/)
|
|
67
|
+
[](LICENSE)
|
|
68
|
+
[](https://github.com/moazelessawey/cudal/releases)
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Features
|
|
73
|
+
|
|
74
|
+
- **Computations (`cudal` package)**
|
|
75
|
+
- Content Uniformity – Sampling Plans 1 & 2 (`cusp1`, `cusp2`)
|
|
76
|
+
- Dissolution – Sampling Plans 1 & 2 (`disp1`, `disp2`)
|
|
77
|
+
- Three analysis modes each: acceptance-limit table, probability of passing, sample probability
|
|
78
|
+
- **CLI** – `python -m cudal.cli` (or installed command `cudal`)
|
|
79
|
+
- **Tkinter GUI** (`cudal-gui`, stdlib-only → tiny install): 4 tabs × 3 modes,
|
|
80
|
+
background threads with progress, scrollable parameters, live validation,
|
|
81
|
+
sortable/colored results table, CSV export, modal matplotlib plots
|
|
82
|
+
(lines + cubic spline, heatmap with 80/90 % contours), SAS-style **PDF listings**
|
|
83
|
+
(Courier, column wrapping, repeated page headers), XLSX export, settings persistence
|
|
84
|
+
- **Optional PySide6 GUI** (`extras/cudal_gui_pyside6.py`) – modern Qt theme,
|
|
85
|
+
kept *outside* the package so the pip install stays small
|
|
86
|
+
|
|
87
|
+
## Repository layout
|
|
88
|
+
|
|
89
|
+
```
|
|
90
|
+
cudal/ library: computations + CLI + Tk GUI (+ logo package data)
|
|
91
|
+
extras/ optional PySide6 GUI (not installed)
|
|
92
|
+
tests/ pytest smoke tests
|
|
93
|
+
scripts/ local exe build helper
|
|
94
|
+
.github/ CI, PyPI publish, exe release workflows
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Installation
|
|
98
|
+
|
|
99
|
+
Requires Python ≥ 3.9.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# from GitHub
|
|
103
|
+
pip install git+https://github.com/moazelessawey/cudal.git
|
|
104
|
+
|
|
105
|
+
# from a source checkout
|
|
106
|
+
pip install . # core (numpy/pandas/scipy) + CLI + Tk GUI
|
|
107
|
+
pip install .[all] # + matplotlib, openpyxl, reportlab (plots/exports)
|
|
108
|
+
pip install .[qt] # + PySide6 for the optional Qt GUI
|
|
109
|
+
pip install .[dev] # + pytest, pyinstaller
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
| Extra | Adds |
|
|
113
|
+
|---------|-------------------------------|
|
|
114
|
+
| `plot` | matplotlib (plots) |
|
|
115
|
+
| `xlsx` | openpyxl (Excel export) |
|
|
116
|
+
| `pdf` | reportlab (PDF listings) |
|
|
117
|
+
| `qt` | PySide6 (+matplotlib) Qt GUI |
|
|
118
|
+
| `all` | plot + xlsx + pdf |
|
|
119
|
+
| `dev` | pytest + pyinstaller |
|
|
120
|
+
|
|
121
|
+
## Quick start
|
|
122
|
+
|
|
123
|
+
### Python API
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
from cudal import cusp1
|
|
127
|
+
|
|
128
|
+
table = cusp1.acceptance_limit_table(10, 100.0, 95.0, 95.0, 85.1, 114.9, 0.5)
|
|
129
|
+
print(table)
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### CLI
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
cudal --help # installed console script
|
|
136
|
+
python -m cudal.cli --help # module form
|
|
137
|
+
python -m cudal --help # package __main__
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
The CLI covers the same four scenarios × three modes as the GUIs
|
|
141
|
+
(see `--help` for the exact option names).
|
|
142
|
+
|
|
143
|
+
### Tkinter GUI (included, stdlib-only)
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
cudal-gui # after pip install
|
|
147
|
+
python cudal_gui.py # from a source checkout
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Optional PySide6 GUI (extra file, not installed)
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
pip install .[qt]
|
|
154
|
+
python extras/cudal_gui_pyside6.py
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
## Result exports
|
|
158
|
+
|
|
159
|
+
- **CSV** – one click per table
|
|
160
|
+
- **XLSX** – File → *Export all results* (one sheet per tab)
|
|
161
|
+
- **PDF** – SAS-listing style: Courier, centered title block, Plan‑1 row-wrapped
|
|
162
|
+
blocks, Plan‑2 SE×SM LL/UL matrix, 2 dp right-aligned numbers, `*` for NaN,
|
|
163
|
+
**title + table headers repeated on every page**
|
|
164
|
+
- **Plots** – lines + cubic spline, or heatmap with 80/90 % threshold contours; Save PNG
|
|
165
|
+
|
|
166
|
+
## Building standalone executables
|
|
167
|
+
|
|
168
|
+
Locally (Windows):
|
|
169
|
+
|
|
170
|
+
```bat
|
|
171
|
+
scripts\build_exe.bat
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
or manually:
|
|
175
|
+
|
|
176
|
+
```bat
|
|
177
|
+
pip install .[all,qt] pyinstaller
|
|
178
|
+
pyinstaller --onefile --noconsole --name CuDAL --add-data "cudal\logo.png;cudal" cudal_gui.py
|
|
179
|
+
pyinstaller --onefile --noconsole --name CuDAL-Qt --add-data "cudal\logo.png;cudal" extras\cudal_gui_pyside6.py
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
On every **GitHub Release**, the `build-exe.yml` workflow builds
|
|
183
|
+
`CuDAL.exe` and `CuDAL-Qt.exe` and attaches them to the release automatically.
|
|
184
|
+
|
|
185
|
+
## Releasing & publishing
|
|
186
|
+
|
|
187
|
+
1. Bump `cudal/__version__` and commit.
|
|
188
|
+
2. Create a tag & GitHub release: `git tag v1.0.0 && git push origin v1.0.0`
|
|
189
|
+
(or use *Releases → Draft new release* in the UI).
|
|
190
|
+
3. Actions then:
|
|
191
|
+
- build & attach the Windows executables to the release,
|
|
192
|
+
- build the wheel/sdist and publish to PyPI (`publish.yml`).
|
|
193
|
+
|
|
194
|
+
## Development
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
pip install -e .[all,dev]
|
|
198
|
+
pytest -q
|
|
199
|
+
python -m cudal.gui --selftest
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
## License & disclaimer
|
|
203
|
+
|
|
204
|
+
MIT — see [LICENSE](LICENSE).
|
|
205
|
+
|
|
206
|
+
This software is provided for research/informational use. It does **not**
|
|
207
|
+
constitute regulatory advice; validate any output against your own
|
|
208
|
+
reference implementation before use in a GMP environment.
|
pycudal-1.0.0/README.md
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# CuDAL
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="assets/logo.png" alt="CuDAL logo" width="120"/>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
**Parametric acceptance limits for USP <905> Content Uniformity and USP <711> Dissolution** —
|
|
8
|
+
a Python re-implementation of the SAS programs `CALCUSP1/2`, `CALDISP1/2`,
|
|
9
|
+
`EVCUSP1/2`, `EVDISP1/2`, `SMPCUSP1/2`, `SMPDISP1/2`, with a CLI and two GUIs.
|
|
10
|
+
|
|
11
|
+
[](https://github.com/moazelessawey/cudal/actions/workflows/ci.yml)
|
|
12
|
+
[](https://pypi.org/project/cudal/)
|
|
13
|
+
[](LICENSE)
|
|
14
|
+
[](https://github.com/moazelessawey/cudal/releases)
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Features
|
|
19
|
+
|
|
20
|
+
- **Computations (`cudal` package)**
|
|
21
|
+
- Content Uniformity – Sampling Plans 1 & 2 (`cusp1`, `cusp2`)
|
|
22
|
+
- Dissolution – Sampling Plans 1 & 2 (`disp1`, `disp2`)
|
|
23
|
+
- Three analysis modes each: acceptance-limit table, probability of passing, sample probability
|
|
24
|
+
- **CLI** – `python -m cudal.cli` (or installed command `cudal`)
|
|
25
|
+
- **Tkinter GUI** (`cudal-gui`, stdlib-only → tiny install): 4 tabs × 3 modes,
|
|
26
|
+
background threads with progress, scrollable parameters, live validation,
|
|
27
|
+
sortable/colored results table, CSV export, modal matplotlib plots
|
|
28
|
+
(lines + cubic spline, heatmap with 80/90 % contours), SAS-style **PDF listings**
|
|
29
|
+
(Courier, column wrapping, repeated page headers), XLSX export, settings persistence
|
|
30
|
+
- **Optional PySide6 GUI** (`extras/cudal_gui_pyside6.py`) – modern Qt theme,
|
|
31
|
+
kept *outside* the package so the pip install stays small
|
|
32
|
+
|
|
33
|
+
## Repository layout
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
cudal/ library: computations + CLI + Tk GUI (+ logo package data)
|
|
37
|
+
extras/ optional PySide6 GUI (not installed)
|
|
38
|
+
tests/ pytest smoke tests
|
|
39
|
+
scripts/ local exe build helper
|
|
40
|
+
.github/ CI, PyPI publish, exe release workflows
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Installation
|
|
44
|
+
|
|
45
|
+
Requires Python ≥ 3.9.
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# from GitHub
|
|
49
|
+
pip install git+https://github.com/moazelessawey/cudal.git
|
|
50
|
+
|
|
51
|
+
# from a source checkout
|
|
52
|
+
pip install . # core (numpy/pandas/scipy) + CLI + Tk GUI
|
|
53
|
+
pip install .[all] # + matplotlib, openpyxl, reportlab (plots/exports)
|
|
54
|
+
pip install .[qt] # + PySide6 for the optional Qt GUI
|
|
55
|
+
pip install .[dev] # + pytest, pyinstaller
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
| Extra | Adds |
|
|
59
|
+
|---------|-------------------------------|
|
|
60
|
+
| `plot` | matplotlib (plots) |
|
|
61
|
+
| `xlsx` | openpyxl (Excel export) |
|
|
62
|
+
| `pdf` | reportlab (PDF listings) |
|
|
63
|
+
| `qt` | PySide6 (+matplotlib) Qt GUI |
|
|
64
|
+
| `all` | plot + xlsx + pdf |
|
|
65
|
+
| `dev` | pytest + pyinstaller |
|
|
66
|
+
|
|
67
|
+
## Quick start
|
|
68
|
+
|
|
69
|
+
### Python API
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
from cudal import cusp1
|
|
73
|
+
|
|
74
|
+
table = cusp1.acceptance_limit_table(10, 100.0, 95.0, 95.0, 85.1, 114.9, 0.5)
|
|
75
|
+
print(table)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### CLI
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
cudal --help # installed console script
|
|
82
|
+
python -m cudal.cli --help # module form
|
|
83
|
+
python -m cudal --help # package __main__
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
The CLI covers the same four scenarios × three modes as the GUIs
|
|
87
|
+
(see `--help` for the exact option names).
|
|
88
|
+
|
|
89
|
+
### Tkinter GUI (included, stdlib-only)
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
cudal-gui # after pip install
|
|
93
|
+
python cudal_gui.py # from a source checkout
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Optional PySide6 GUI (extra file, not installed)
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
pip install .[qt]
|
|
100
|
+
python extras/cudal_gui_pyside6.py
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## Result exports
|
|
104
|
+
|
|
105
|
+
- **CSV** – one click per table
|
|
106
|
+
- **XLSX** – File → *Export all results* (one sheet per tab)
|
|
107
|
+
- **PDF** – SAS-listing style: Courier, centered title block, Plan‑1 row-wrapped
|
|
108
|
+
blocks, Plan‑2 SE×SM LL/UL matrix, 2 dp right-aligned numbers, `*` for NaN,
|
|
109
|
+
**title + table headers repeated on every page**
|
|
110
|
+
- **Plots** – lines + cubic spline, or heatmap with 80/90 % threshold contours; Save PNG
|
|
111
|
+
|
|
112
|
+
## Building standalone executables
|
|
113
|
+
|
|
114
|
+
Locally (Windows):
|
|
115
|
+
|
|
116
|
+
```bat
|
|
117
|
+
scripts\build_exe.bat
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
or manually:
|
|
121
|
+
|
|
122
|
+
```bat
|
|
123
|
+
pip install .[all,qt] pyinstaller
|
|
124
|
+
pyinstaller --onefile --noconsole --name CuDAL --add-data "cudal\logo.png;cudal" cudal_gui.py
|
|
125
|
+
pyinstaller --onefile --noconsole --name CuDAL-Qt --add-data "cudal\logo.png;cudal" extras\cudal_gui_pyside6.py
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
On every **GitHub Release**, the `build-exe.yml` workflow builds
|
|
129
|
+
`CuDAL.exe` and `CuDAL-Qt.exe` and attaches them to the release automatically.
|
|
130
|
+
|
|
131
|
+
## Releasing & publishing
|
|
132
|
+
|
|
133
|
+
1. Bump `cudal/__version__` and commit.
|
|
134
|
+
2. Create a tag & GitHub release: `git tag v1.0.0 && git push origin v1.0.0`
|
|
135
|
+
(or use *Releases → Draft new release* in the UI).
|
|
136
|
+
3. Actions then:
|
|
137
|
+
- build & attach the Windows executables to the release,
|
|
138
|
+
- build the wheel/sdist and publish to PyPI (`publish.yml`).
|
|
139
|
+
|
|
140
|
+
## Development
|
|
141
|
+
|
|
142
|
+
```bash
|
|
143
|
+
pip install -e .[all,dev]
|
|
144
|
+
pytest -q
|
|
145
|
+
python -m cudal.gui --selftest
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
## License & disclaimer
|
|
149
|
+
|
|
150
|
+
MIT — see [LICENSE](LICENSE).
|
|
151
|
+
|
|
152
|
+
This software is provided for research/informational use. It does **not**
|
|
153
|
+
constitute regulatory advice; validate any output against your own
|
|
154
|
+
reference implementation before use in a GMP environment.
|
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"""
|
|
2
|
+
CuDAL -- Content Uniformity and Dissolution Acceptance Limits
|
|
3
|
+
|
|
4
|
+
Python translation of the legacy SAS/AF application (CuDAL.sas, cusp1.sas,
|
|
5
|
+
Cusp2.sas, Disp1.sas, Disp2.sas) used to derive parametric (tolerance
|
|
6
|
+
interval) acceptance limits for the USP <905> Content Uniformity and
|
|
7
|
+
USP <711> Dissolution tests.
|
|
8
|
+
|
|
9
|
+
Modules
|
|
10
|
+
-------
|
|
11
|
+
core : shared probability primitives (content_uniformity_bound, dissolution_bound)
|
|
12
|
+
cusp1 : Content Uniformity, Sampling Plan 1 (single location)
|
|
13
|
+
cusp2 : Content Uniformity, Sampling Plan 2 (multiple locations)
|
|
14
|
+
disp1 : Dissolution, Sampling Plan 1 (single location)
|
|
15
|
+
disp2 : Dissolution, Sampling Plan 2 (multiple locations)
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
from . import core, cusp1, cusp2, disp1, disp2
|
|
19
|
+
|
|
20
|
+
__version__ = "1.0.0"
|
|
21
|
+
__all__ = ["core", "cusp1", "cusp2", "disp1", "disp2"]
|