Skip to main content

OPTIMA CLI

Project description

OPTIM CLI

OPTIM CLI is a powerful command-line interface tool designed to streamline the management and interaction with optimization problems. It provides an efficient way to create, upload, and manage optimization problems and their associated files through simple commands.

Features

  • 🚀 Quick problem creation and management
  • 📁 Easy file upload system for problems and instances
  • 📋 Comprehensive problem type visualization
  • 💻 Both CLI and Python package functionality
  • 🔄 Interactive prompts for missing parameters
  • 📝 Metadata and README management capabilities

Installation

Prerequisites

  • Python 3.11 or higher

    # Check your Python version
    python --version
    
    # Install Python via Homebrew (MacOS)
    brew install python@3.11
    
    # Or use Conda
    conda create -n optim-env python=3.11
    conda activate optim-env
    

Installing OPTIM-CLI

pip install optima-cli

Usage

Command Line Interface

Basic Commands

# View all available commands
op

# View problems and problem types
op view-problems
op view-problem-types

Problem Management

# Create a new problem
op create [-u <username>]

# Upload problem files
op upload [-u <username>] [-prob <problem_abbr>] [-p <src_path>]

# Upload problem instances
op upload-instances [-u <username>] [-prob <problem_abbr>] [-p <src_path>]

# Upload README file
op upload-readme [-u <username>] [-prob <problem_abbr>] [-p <src_path>]

# Upload metadata
op upload-metadata [-u <username>] [-prob <problem_abbr>] [-p <src_path>]# View all available commands
op

# View problems and problem types
op view-problems
op view-problem-types

Note: All command parameters are optional. If omitted, OPTIM CLI will interactively prompt for the required information.

Python Package Usage

Currently, only the viewing functions are available as a Python package. Other functionality (create, upload, etc.) is still under development and will be added in future releases.

Available functions:

from optima.commands.op_view import view_problems, view_problem_types

# View available problems
view_problems()

# View problem types
view_problem_types()

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

optima_cli-1.0.4.tar.gz (47.5 MB view details)

Uploaded Source

Built Distribution

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

optima_cli-1.0.4-py3-none-any.whl (48.3 MB view details)

Uploaded Python 3

File details

Details for the file optima_cli-1.0.4.tar.gz.

File metadata

  • Download URL: optima_cli-1.0.4.tar.gz
  • Upload date:
  • Size: 47.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for optima_cli-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0ae70acf355f34682d9e849fffe923f296dc2c49509fb1aa011ac21d3ae7cb41
MD5 31ba32da2c569528270e1b1637cbfd44
BLAKE2b-256 c32b61b1d35dd3382383a6ff2e6862f18a854c3fc8601317189e7f05a78df36a

See more details on using hashes here.

File details

Details for the file optima_cli-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: optima_cli-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 48.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for optima_cli-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 64defd7b511aee5d734af2e7390b512450449c6ffa6d8d3f95c2c4ff3dfdea10
MD5 da06bdad3b24b48a9746d7bf5aa9000b
BLAKE2b-256 2e535c06f4c9b5b1a5f3e31f1da6bbe4b04ea57f44fd0780074908fb45c3c0b1

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