prime-cli


Nameprime-cli JSON
Version 0.2.2 PyPI version JSON
download
home_pageNone
SummaryPrime Intellect CLI
upload_time2025-01-10 03:39:28
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords cli cloud compute gpu
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Prime Intellect CLI

<div align="center">

[![PyPI version](https://img.shields.io/pypi/v/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)
[![Python versions](https://img.shields.io/pypi/pyversions/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)
[![Downloads](https://img.shields.io/pypi/dm/prime-cli)](https://pypi.org/project/prime-cli/)

Command line interface for managing Prime Intellect GPU resources, enabling seamless deployment and management of compute pods.
</div>

## 🚀 Quick Start

```bash
# Install from PyPI
pip install prime-cli

# Set up your API key
prime config set-api-key

# List available GPU resources
prime availability list
```

## 🔧 Features

- **GPU Resource Management**: Query and filter available GPU resources
- **Pod Management**: Create, monitor, and terminate compute pods
- **SSH Access**: Direct SSH access to running pods
- **Team Support**: Manage resources across team environments

## 📦 Installation

### From PyPI
```bash
pip install prime-cli
```

### For Development
```bash
# Clone the repository
git clone https://github.com/PrimeIntellect-ai/prime-cli
cd prime-cli

# Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # On Windows: .\venv\Scripts\activate

# Install in development mode
pip install -e ".[dev]"

# Set up pre-commit hooks
pre-commit install
```

## 🛠️ Usage

### Configuration
```bash
# Set up API key
prime config set-api-key

# Configure SSH key for pod access
prime config set-ssh-key-path

# View current configuration
prime config view
```

### GPU Resources
```bash
# List all available GPUs
prime availability list

# Filter by GPU type
prime availability list --gpu-type H100_80GB

# Show available GPU types
prime availability gpu-types
```

### Pod Management
```bash
# List your pods
prime pods list

# Create a pod
prime pods create
prime pods create --id <ID>     # With specific GPU config
prime pods create --name my-pod # With custom name

# Monitor and manage pods
prime pods status <pod-id>
prime pods terminate <pod-id>
prime pods ssh <pod-id>
```

### Team Management
```bash
# Set team context
prime config set-team-id
```

## 💻 Development

### Code Quality
```bash
# Format code
ruff format src/prime_cli

# Run linter
ruff check src/prime_cli

# Run tests
pytest
```

### Release Process
We use semantic versioning. Releases are automatically created when changes are merged to main.

## 🤝 Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Run code quality checks
   ```bash
   ruff format .
   ruff check .
   pytest
   ```
4. Commit your changes (`git commit -m 'Add amazing feature'`)
5. Push to the branch (`git push origin feature/amazing-feature`)
6. Open a Pull Request

## 📝 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## 🔗 Links

- [Documentation](https://docs.primeintellect.ai)
- [PyPI Package](https://pypi.org/project/prime-cli/)
- [Issue Tracker](https://github.com/PrimeIntellect-ai/prime-cli/issues)
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "prime-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "cli, cloud, compute, gpu",
    "author": null,
    "author_email": "Prime Intellect <contact@primeintellect.ai>",
    "download_url": "https://files.pythonhosted.org/packages/41/c0/da7b1da671148e3d6ecfc3271aa82486e28baad3c88542a63fb20be6e73c/prime_cli-0.2.2.tar.gz",
    "platform": null,
    "description": "# Prime Intellect CLI\n\n<div align=\"center\">\n\n[![PyPI version](https://img.shields.io/pypi/v/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)\n[![Python versions](https://img.shields.io/pypi/pyversions/prime-cli?cacheSeconds=60)](https://pypi.org/project/prime-cli/)\n[![Downloads](https://img.shields.io/pypi/dm/prime-cli)](https://pypi.org/project/prime-cli/)\n\nCommand line interface for managing Prime Intellect GPU resources, enabling seamless deployment and management of compute pods.\n</div>\n\n## \ud83d\ude80 Quick Start\n\n```bash\n# Install from PyPI\npip install prime-cli\n\n# Set up your API key\nprime config set-api-key\n\n# List available GPU resources\nprime availability list\n```\n\n## \ud83d\udd27 Features\n\n- **GPU Resource Management**: Query and filter available GPU resources\n- **Pod Management**: Create, monitor, and terminate compute pods\n- **SSH Access**: Direct SSH access to running pods\n- **Team Support**: Manage resources across team environments\n\n## \ud83d\udce6 Installation\n\n### From PyPI\n```bash\npip install prime-cli\n```\n\n### For Development\n```bash\n# Clone the repository\ngit clone https://github.com/PrimeIntellect-ai/prime-cli\ncd prime-cli\n\n# Create and activate virtual environment\npython -m venv venv\nsource venv/bin/activate  # On Windows: .\\venv\\Scripts\\activate\n\n# Install in development mode\npip install -e \".[dev]\"\n\n# Set up pre-commit hooks\npre-commit install\n```\n\n## \ud83d\udee0\ufe0f Usage\n\n### Configuration\n```bash\n# Set up API key\nprime config set-api-key\n\n# Configure SSH key for pod access\nprime config set-ssh-key-path\n\n# View current configuration\nprime config view\n```\n\n### GPU Resources\n```bash\n# List all available GPUs\nprime availability list\n\n# Filter by GPU type\nprime availability list --gpu-type H100_80GB\n\n# Show available GPU types\nprime availability gpu-types\n```\n\n### Pod Management\n```bash\n# List your pods\nprime pods list\n\n# Create a pod\nprime pods create\nprime pods create --id <ID>     # With specific GPU config\nprime pods create --name my-pod # With custom name\n\n# Monitor and manage pods\nprime pods status <pod-id>\nprime pods terminate <pod-id>\nprime pods ssh <pod-id>\n```\n\n### Team Management\n```bash\n# Set team context\nprime config set-team-id\n```\n\n## \ud83d\udcbb Development\n\n### Code Quality\n```bash\n# Format code\nruff format src/prime_cli\n\n# Run linter\nruff check src/prime_cli\n\n# Run tests\npytest\n```\n\n### Release Process\nWe use semantic versioning. Releases are automatically created when changes are merged to main.\n\n## \ud83e\udd1d Contributing\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Run code quality checks\n   ```bash\n   ruff format .\n   ruff check .\n   pytest\n   ```\n4. Commit your changes (`git commit -m 'Add amazing feature'`)\n5. Push to the branch (`git push origin feature/amazing-feature`)\n6. Open a Pull Request\n\n## \ud83d\udcdd License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## \ud83d\udd17 Links\n\n- [Documentation](https://docs.primeintellect.ai)\n- [PyPI Package](https://pypi.org/project/prime-cli/)\n- [Issue Tracker](https://github.com/PrimeIntellect-ai/prime-cli/issues)",
    "bugtrack_url": null,
    "license": null,
    "summary": "Prime Intellect CLI",
    "version": "0.2.2",
    "project_urls": {
        "Changelog": "https://github.com/PrimeIntellect-ai/prime-cli/blob/main/CHANGELOG.md",
        "Documentation": "https://github.com/PrimeIntellect-ai/prime-cli#readme",
        "Homepage": "https://github.com/PrimeIntellect-ai/prime-cli",
        "Repository": "https://github.com/PrimeIntellect-ai/prime-cli.git"
    },
    "split_keywords": [
        "cli",
        " cloud",
        " compute",
        " gpu"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "97f0287a07cb064322989d13eba693c05add373ce5e0eafe561e1b11c7afaea9",
                "md5": "20a2add5f5ed09d29b1de0f8c7f01675",
                "sha256": "3d6c92e40cea3381b83f47e3ebb37e5f667f5406cb2a32ccc7c189efd22df6b4"
            },
            "downloads": -1,
            "filename": "prime_cli-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "20a2add5f5ed09d29b1de0f8c7f01675",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 19686,
            "upload_time": "2025-01-10T03:39:26",
            "upload_time_iso_8601": "2025-01-10T03:39:26.070466Z",
            "url": "https://files.pythonhosted.org/packages/97/f0/287a07cb064322989d13eba693c05add373ce5e0eafe561e1b11c7afaea9/prime_cli-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "41c0da7b1da671148e3d6ecfc3271aa82486e28baad3c88542a63fb20be6e73c",
                "md5": "25c10ede35546c950c7cc18ec86cbd75",
                "sha256": "cbb2ec51a3b433bc1cb4b3a37667083dd5ef0b0e2920878de0dfee0f489fd1a9"
            },
            "downloads": -1,
            "filename": "prime_cli-0.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "25c10ede35546c950c7cc18ec86cbd75",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 22319,
            "upload_time": "2025-01-10T03:39:28",
            "upload_time_iso_8601": "2025-01-10T03:39:28.295241Z",
            "url": "https://files.pythonhosted.org/packages/41/c0/da7b1da671148e3d6ecfc3271aa82486e28baad3c88542a63fb20be6e73c/prime_cli-0.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-10 03:39:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "PrimeIntellect-ai",
    "github_project": "prime-cli",
    "github_not_found": true,
    "lcname": "prime-cli"
}
        
Elapsed time: 0.42876s