Skip to main content

Python SDK for HLA-Compass bioinformatics platform - Build powerful modules for immuno-peptidomics analysis

Project description

HLA-Compass Python SDK

PyPI version Python Versions

The official Python SDK (Python 3.11+) for developing modules on the HLA-Compass platform.

🚀 Quick Start

# 1. Install (requires Python 3.11+)
pip install hla-compass

# 2. Setup
hla-compass auth login --env dev

# 3. Create
hla-compass init my-module --template no-ui
cd my-module

# 4. Test
hla-compass test --input examples/sample_input.json

# 5. Ship
hla-compass build --tag my-module:1.0.0 --push
hla-compass publish --env dev --image-ref my-module:1.0.0 --generate-keys

📚 New to HLA-Compass? Try the Ten-Minute Tutorial.


🤖 AI-Assisted Development

Every module scaffolded by hla-compass init includes two reference files designed for both human developers and AI coding assistants:

File Purpose
SKILL.md Complete development reference. Covers the full Module API, all self.api / self.data / self.storage / self.db methods, manifest schema, data access patterns, MCP integration, testing, publishing, and common recipes. Point your AI assistant here first.
CLAUDE.md Concise AI context file. Quick-reference for architecture, key commands, and import conventions. References SKILL.md for details.

Tip: When using an AI coding assistant (Claude, Copilot, etc.), ensure it reads SKILL.md in your module directory. It contains everything needed to build a correct, production-ready HLA-Compass module without guessing at API signatures or platform conventions.


🛠️ CLI Entry Points

Command Description
init Scaffold a new module (includes SKILL.md reference guide)
validate Validate module structure and manifest
test Run module execution (local or remote context)
build Build Docker image
publish Sign and register module with the platform
auth Manage platform login and keys

🔧 Local SDK Development

When iterating on the SDK itself, build images against your local checkout:

hla-compass build --sdk-path ../sdk/python
# or set HLA_COMPASS_SDK_PATH=../sdk/python for dev/test/serve/build

To target a specific architecture:

hla-compass build --platform linux/amd64

Multi-arch builds require --platform linux/amd64,linux/arm64 --push.


💎 Key Features

  • Module-first CLI: Scaffold, build, test, and publish with a single toolchain.
  • Signed publishing: Keys + manifest signing baked into publish.
  • Data helpers: Storage + data access helpers for module runtimes.
  • Local dev loop: Containerized dev/serve/test flow that matches production.

📖 Advanced Documentation


🤝 Support & Issues

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

hla_compass-2.1.0.tar.gz (126.3 kB view details)

Uploaded Source

Built Distribution

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

hla_compass-2.1.0-py3-none-any.whl (147.5 kB view details)

Uploaded Python 3

File details

Details for the file hla_compass-2.1.0.tar.gz.

File metadata

  • Download URL: hla_compass-2.1.0.tar.gz
  • Upload date:
  • Size: 126.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for hla_compass-2.1.0.tar.gz
Algorithm Hash digest
SHA256 56149129968544852d03724c7d39b32debfb85089640d42775c64aba2345c2c0
MD5 b80f8118ae24d7d4ab59617b0d83f2a4
BLAKE2b-256 797b74b9b0f6c00f7b20e3a6d961e9cc6bb6451b03c421e1deba19f702e931d8

See more details on using hashes here.

File details

Details for the file hla_compass-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: hla_compass-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 147.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for hla_compass-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c312dcc8d23a918e7f8316a8574b0104180ccb16d7f5e81b6cac5a6a6c097161
MD5 0ac5165de4b842318d5f937caf244ed8
BLAKE2b-256 a9506e6085ce49a72bbfbcb47901589e2339fe802aea7c1cc1fa096baa563643

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