Skip to main content

Apheris Foundry SDK

Reference Python SDK for building Apheris Foundry per-module CLIs.

Usage

Declare a task — a plain function plus a pydantic config model — and foundry builds a typed CLI for it. See the usage guide to get started.

Portable task resources

@task(requirements={"cpu": 4, "memory": "16 GiB", "gpu": 1,
                    "disk": "50 GiB", "compute_class": "gpu_inference"})
  • describe publishes normalized resources; image annotations and the Nextflow generator use the same contract.
  • CPU/memory/disk/GPU values describe the task's defaults. Deployment policy supplies placement, ceilings and any higher CPU/memory floors.
  • compute_class is a portable capability name, not an instance type or executor profile.
  • Memory and disk accept explicit decimal (MB, GB, TB) or binary (MiB, GiB, TiB) units and round up to whole MiB.
  • Missing requirements remain absent, so consumers can identify older contracts and require explicit fallback defaults. See the Nextflow 25.10.0 process directives for cpus, memory, disk, accelerator and label.

Nextflow generation

  • For a single directory input, repeat --input-directory-file ligands.csv for each consumed file to make it an explicit staging and cache input.
  • This does not change the task's working directory: the generated command still passes the staged directory through --input. It does not replace that argument with ..
  • Use --generated-at 2026-01-01T00:00:00Z for deterministic generation.

Development

This project uses pixi to manage the toolchain and environments.

pixi run install-dev   # install the git hooks (pre-commit + commit-msg)
pixi run test          # run the test suite
pixi run lint          # check formatting and lint with ruff
pixi run fix           # auto-fix formatting and lint issues
pixi run build         # build the wheel and sdist

Commits follow Conventional Commits; the commit-msg hook enforces this via commitizen.

Project structure

src/apheris_foundry_sdk/   # SDK package
tests/         # test suite
docs/          # usage guide

License

This package is licensed under the Apheris Foundry Software License. The full license text is also included in every published distribution as LICENSE.

Support

Contact support@apheris.com for access and deployment assistance.

Metadata

Release files for apheris-foundry-sdk 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apheris-foundry-sdk 2.0.0
File Size Uploaded Provenance Actions
apheris_foundry_sdk-2.0.0.tar.gz 83.4 kB With provenance Details for apheris_foundry_sdk-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apheris-foundry-sdk 2.0.0
File Interpreter ABI Platform Actions
apheris_foundry_sdk-2.0.0-py3-none-any.whl Python 3 none any Details for apheris_foundry_sdk-2.0.0-py3-none-any.whl

Total release size: 182.7 kB

Release files / apheris_foundry_sdk-2.0.0.tar.gz

Download URL apheris_foundry_sdk-2.0.0.tar.gz
Size 83.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4fdeec0a69900a74faddab3bb606f00e6d17db5dcc2c6747befd2b89f749c3c1
BLAKE2b-256 checksum
How to use checksums
f1a7703b0af780e04aed33f7ca3ed177d890e80eb724199d7ee4dca2bf827c9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Release files / apheris_foundry_sdk-2.0.0-py3-none-any.whl

Download URL apheris_foundry_sdk-2.0.0-py3-none-any.whl
Size 99.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0461901252683a63fad5b9115e22e28c5abc9be3070a348b3412a54a416e4c27
BLAKE2b-256 checksum
How to use checksums
03babf0efd07788c60a3304028d3d1a2393b70cd5d7a256b75b41ca27ccf9471
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

Security for apheris-foundry-sdk 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apheris_foundry_sdk-2.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page