Metadata-Version: 2.3
Name: ctp-summary
Version: 0.3.2a3
Summary: Extract info from the public summary page of one or more CTP instances
Keywords: XNAT,Dashboard,nicegui
Author: Patrick de Koning
Author-email: Patrick de Koning <pjhdekoning@lumc.nl>
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Healthcare Industry
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.10
Classifier: Environment :: Web Environment
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Typing :: Typed
Requires-Dist: pydantic
Requires-Dist: httpx
Requires-Dist: beautifulsoup4
Requires-Dist: typer
Requires-Python: >=3.10
Project-URL: Homepage, https://lkeb.nl
Project-URL: Repository, https://gitlab.com/lkeb/ctp_summary
Project-URL: Issues, https://gitlab.com/lkeb/ctp_summary/issues
Description-Content-Type: text/markdown

# CTP Summary

Get the size of the import queue, export queue and quarantines for one or more CTP instances. 

- [get_ctp_summary](https://gitlab.com/lkeb/ctp-summary/-/blob/main/src/ctp_summary/main.py#L45) returns a dict of pipeline name and CtpSummary objects. 
- [CtpSummary](https://gitlab.com/lkeb/ctp-summary/-/blob/main/src/ctp_summary/main.py#L14) contains the size of the import queue, export queue and quarantine size


## CLI
If you want to add this to a shell script, use `uvx ctp-summary queue-info URL` app.
This returns a JSON output for the CTP instance.

Use the [jq](https://jqlang.org) application to extract the fields needed in your scripts: 
```
uvx ctp-summary queue-info URL | jq '.[0].export_queues'
```
