Skip to main content

Project scaffolder for OpenMedAxis

Project description

openmedaxis-init

A command-line scaffolder that creates ready-to-run OpenMedAxis projects with a fully configured Python environment, PyTorch stack, and all standard dependencies pre-installed.


Requirements

  • uv 0.5 or later

Usage

uvx openmedaxis-init <project-name> [OPTIONS]

No installation needed. uvx runs the tool directly from PyPI in an isolated environment.

This single command will:

  1. Create a new project directory named <project-name>
  2. Generate a pyproject.toml with the correct uv/PyTorch index configuration
  3. Create a virtual environment via uv sync
  4. Install the full dependency stack
  5. Run a smoke test to verify the environment

Options

Option Choices Default Description
--template modern modern Project template to use
--torch-backend cu118, cpu cu118 PyTorch backend (CUDA 11.8 or CPU-only)
--oma any version string latest OpenMedAxis version to pin (e.g. 0.4.2)

Examples

GPU project (CUDA 11.8, latest OpenMedAxis):

uvx openmedaxis-init my-segmentation-project

CPU-only project:

uvx openmedaxis-init my-project --torch-backend cpu

Pin a specific OpenMedAxis version:

uvx openmedaxis-init my-project --oma 0.4.2

What Gets Installed

Every modern template project installs the following packages:

Package Version
torch 2.6.0
torchvision 0.21.0
torchaudio 2.6.0
openmedaxis latest or pinned
lightning 2.5.2
einops 0.8.1
matplotlib 3.10.0
nibabel 5.4.0
numpy 2.1.2
pip latest
scikit-image 0.25.2
scipy 1.16.0
torchmetrics 1.7.3
tqdm 4.67.1

Generated Project Structure

my-project/
├── pyproject.toml          # Project config with uv/PyTorch index settings
├── .python-version         # Pins Python 3.11
├── .gitignore
├── README.md
└── src/
    └── my_project/
        ├── __init__.py
        └── train.py        # Entry point: uv run python -m my_project.train

After Scaffolding

cd my-project
uv run python -m my_project.train

Development

To work on openmedaxis-init itself:

git clone <repo-url>
cd openmedaxis_init
uv sync
uv run openmedaxis-init --help

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

openmedaxis_init-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

openmedaxis_init-0.1.2-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file openmedaxis_init-0.1.2.tar.gz.

File metadata

  • Download URL: openmedaxis_init-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"18.04","id":"bionic","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openmedaxis_init-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2e9ca5bff97ae8a8497f670e2a77a3d58b532a4a4dcbdb8fcedd3319f59367b0
MD5 a8960bb8d585c840396e64301d012744
BLAKE2b-256 b11cd08c8a8e965c7e8a2d52fb81c143c50616ea91ab1b130a2fb62c39afd589

See more details on using hashes here.

File details

Details for the file openmedaxis_init-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: openmedaxis_init-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"18.04","id":"bionic","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for openmedaxis_init-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56eaa1c9bdfa53fb37e4b4070107bdc172e6ef9b3e5ba6becbc061a7e44230ad
MD5 dbff82d2547e0004f843b477c5bae8d1
BLAKE2b-256 2df423d59c4d88ac36ebbf4a8514b8a54e11e124ed5072e76d928a77edfef573

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