CLI for Middleman GPU compute platform
Project description
Middleman CLI
Command-line interface for the Middleman GPU compute platform.
Installation
pip install middleman-cli
Quick Start
# Authenticate with your API key
middleman login
# Submit a training job
middleman run train.py --gpu a100
# Check job status
middleman jobs list
middleman jobs status <job-id>
# View logs
middleman jobs logs <job-id> --follow
# Check credit balance
middleman credits
Commands
Authentication
# Login with API key
middleman login
# Show current user
middleman whoami
# Logout
middleman logout
Running Jobs
# Basic job submission
middleman run train.py --gpu t4
# Advanced options
middleman run train.py \
--gpu a100 \
--name "my-experiment" \
--framework pytorch \
--max-runtime 8 \
--env WANDB_API_KEY=xxx \
--requirements requirements.txt \
--wait
# GPU options: t4, v100, a100, a100-80gb, h100
# Framework options: pytorch, tensorflow, jax, custom
Managing Jobs
# List jobs
middleman jobs list
middleman jobs list --status running
middleman jobs list --all
# Get job status
middleman jobs status <job-id>
middleman jobs status <job-id> --watch
# View logs
middleman jobs logs <job-id>
middleman jobs logs <job-id> --tail 200
middleman jobs logs <job-id> --follow
# Cancel job
middleman jobs cancel <job-id>
Credits
# Show credit balance
middleman credits
Configuration
# Show config
middleman configure --show
# Set custom API URL
middleman configure --api-url https://custom.api.url
# Reset config
middleman configure --reset
Configuration
Configuration is stored in ~/.middleman/config.yaml:
api_key: mdlm_xxxxx
api_url: https://api.middleman.run/api/v1
Environment Variables
MIDDLEMAN_API_KEY- API key (overrides config file)MIDDLEMAN_API_URL- API URL (overrides config file)
Get Your API Key
- Sign up at https://middleman.run
- Go to https://app.middleman.run/dashboard/api-keys
- Create a new API key
- Run
middleman login
Support
- Documentation: https://docs.middleman.run
- Email: support@middleman.run
- Dashboard: https://app.middleman.run
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
middleman_cli-0.1.1.tar.gz
(8.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file middleman_cli-0.1.1.tar.gz.
File metadata
- Download URL: middleman_cli-0.1.1.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
895f443c02423531724bf18b50b9f14ba204886826c6f442250efcbfc24adc48
|
|
| MD5 |
b950d1e6827b609f4b49b4f6455f9a8c
|
|
| BLAKE2b-256 |
82f4efae4bbae32a3a0d5729becd681ec639133d7b0401784cc70dd094df98b3
|
File details
Details for the file middleman_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: middleman_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56579ec5f2d58968c69763f0d277b5eefc146cb3967df180bf748e96009eb1c8
|
|
| MD5 |
78412fc3b798849fc772e48132d49440
|
|
| BLAKE2b-256 |
250e829daa626da945542354527185063bbaaa3c1510ce516a2421317e08d92b
|