Metadata-Version: 2.4
Name: sct-py
Version: 0.21.0
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Classifier: Typing :: Typed
License-File: LICENSE
Summary: Local-first SNOMED CT queries powered by the sct Rust engine
Keywords: snomed,healthcare,terminology,clinical,local-first
Author-email: Marcus Baw <marcus@bawmedical.co.uk>
License-Expression: AGPL-3.0-or-later
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://pacharanero.github.io/sct/sdk/python/
Project-URL: Repository, https://github.com/pacharanero/sct

# sct-py

Python bindings for the local-first [`sct`](https://github.com/pacharanero/sct) SNOMED CT engine.

```sh
pip install sct-py
```

The package performs no network calls and contains no terminology content. Supply a `snomed.db` created from SNOMED CT content that you are licensed to use:

```python
from sct_py import Snomed

with Snomed("snomed.db") as snomed:
    concept = snomed.concept("22298006")
    hits = snomed.search("heart attack", limit=20)
    descendants = snomed.expand("<<73211009")
```

For local development:

```sh
python -m venv .venv
. .venv/bin/activate
python -m pip install maturin pytest
maturin develop --locked
pytest
```

The code is licensed under AGPL-3.0-or-later. SNOMED CT content has separate licensing requirements and is never bundled in the wheel.

