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.1.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.1.0
File Size Uploaded Provenance Actions
apheris_foundry_sdk-2.1.0.tar.gz 83.8 kB With provenance Details for apheris_foundry_sdk-2.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 183.4 kB

Release files / apheris_foundry_sdk-2.1.0.tar.gz

Download URL apheris_foundry_sdk-2.1.0.tar.gz
Size 83.8 kB
Tags Source
SHA-256 checksum
How to use checksums
cc7b1f4d336ffa21dbd67794b22068c8aead7f4a74f7536fe02f65b249ec4772
BLAKE2b-256 checksum
How to use checksums
3ee89654162413a148be8069abf4d1e922790b0876e73542a94f0f8ce5414c1a
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.1.0-py3-none-any.whl

Download URL apheris_foundry_sdk-2.1.0-py3-none-any.whl
Size 99.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4f1f3f5f81cd1605b8aaf44aeb951c8555ca456076b187582c7c0d6ffa31f58
BLAKE2b-256 checksum
How to use checksums
0a15e85bbe54e14bb0b568ad549241c3a275eb074d4bad02f8427f0e01b6dd1e
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.1.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.1.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