Skip to main content

Recognize a family medical archive into tracked Obsidian Markdown, delegating OCR to pro-ledin-ocr.

Project description

pro-ledin-healthos

skills.sh

Recognize an external family medical archive (PDFs, scans, photos) into tracked Obsidian Markdown that mirrors the source folder structure one-to-one. OCR is delegated to the pro-ledin-ocr package, imported as a library. HealthOS never interprets medical content — it only transcribes and mirrors.

  • Import name: pro.ledin.healthos
  • Console script: healthos
  • PyPI: pro-ledin-healthos

Install

pip install pro-ledin-healthos            # pulls in pro-ledin-ocr
pip install "pro-ledin-healthos[vision]"  # + OpenAI-compatible vision engine
pip install "pro-ledin-healthos[easyocr]" # + EasyOCR
pip install "pro-ledin-healthos[paddle]"  # + PaddleOCR

System binaries poppler and tesseract are required for the local OCR path.

Configure

Set the AGENT_HEALTH_* environment variables (see skills/healthos/SKILL.md for the full list):

export AGENT_HEALTH_SOURCE_DIR=/absolute/path/to/source   # ':'-separated for many
export AGENT_HEALTH_TARGET_DIR=/path/to/vault/03-areas/health
export AGENT_HEALTH_CACHE_DIR=~/Library/Caches/healthos
export AGENT_HEALTH_OCR_ENGINE=vision
# vision engine also needs:
export AGENT_HEALTH_VISION_API_URL=http://127.0.0.1:1234/v1
export AGENT_HEALTH_VISION_API_KEY=token
export AGENT_HEALTH_VISION_MODEL=model-name

Never store real credentials in tracked files.

vision sends medical document images to the configured external endpoint. Use it only with explicit user consent and an endpoint whose access, retention, training, and deletion policies are acceptable for protected health information. Leave AGENT_HEALTH_VISION_API_URL unset only when intentionally using OpenAI's default endpoint.

Upgrade from 0.5

Rename AGENT_HEALTH_OCR_ENGINE=vision-api to AGENT_HEALTH_OCR_ENGINE=vision. The old value is rejected.

Run

healthos index            # recognize + mirror into the target
healthos index --check    # verify cache/outputs without writing

By default HealthOS imports the installed pro-ledin-ocr package. Set AGENT_HEALTH_OCR_SCRIPT=/path/to/ocr.py to load an alternative ocr.py-shaped module from a file instead (importlib escape hatch).

Development

Local dev resolves pro-ledin-ocr from a sibling ../ocr checkout via [tool.uv.sources] in pyproject.toml:

uv run --extra dev pytest
uv build

To test against the published pro-ledin-ocr from PyPI instead (as CI does), add --no-sources:

uv run --no-sources --extra dev pytest
uv build --no-sources

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pro_ledin_healthos-0.6.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pro_ledin_healthos-0.6.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pro_ledin_healthos-0.6.0.tar.gz.

File metadata

  • Download URL: pro_ledin_healthos-0.6.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pro_ledin_healthos-0.6.0.tar.gz
Algorithm Hash digest
SHA256 92ba1d13bf94cf6f6d622bee27985dfec117c7f363543d645910bfa65e7d0276
MD5 f884ea297be3571c15c7cc5934a3f14f
BLAKE2b-256 6ece319ef703d2e4ebfd57e2023b698f4b0d645357ecf27b219b9311d18ae105

See more details on using hashes here.

File details

Details for the file pro_ledin_healthos-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: pro_ledin_healthos-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pro_ledin_healthos-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c6988ecd057719cac5af8b9473a723818c600ffa6296f07196fbf8dc8be66175
MD5 209ca40bfc46c97d0ca80903baf1b28d
BLAKE2b-256 d0b2981cac763771a8963bfeb0c15a3a190bdc4e186103215c9ccb3dac799e4b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page