Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 11, 2025

CLI Implementation with Typer

This PR implements the CLI tool for the VLM Run Python SDK using Typer instead of Click.

Changes

  • Add CLI implementation with Typer
  • Implement subcommands: files, fine-tuning, models, generate, hub
  • Add comprehensive tests for all subcommands
  • Configure CLI entry point in pyproject.toml
  • Add required dependencies: typer, rich, pytest

Testing

✅ All tests have been implemented and are passing
✅ Manual testing of CLI commands performed
✅ Test coverage includes all subcommands and their operations

Notes

  • The CLI uses the vlmrun command name
  • API key can be provided via --api-key option or VLMRUN_API_KEY environment variable
  • Rich tables are used for displaying lists
  • All subcommands support help text via --help

Link to Devin run: https://app.devin.ai/sessions/54162170110b41db929450cde9fedecd

devin-ai-integration bot and others added 2 commits January 11, 2025 00:56
- Add CLI structure under vlmrun/cli/cli.py
- Add subcommands under vlmrun/cli/_cli/
- Implement Client class with required methods
- Add typer and rich to requirements.txt

Implements all required subcommands:
- files: list, upload, delete, get
- fine-tuning: create, list, get, cancel, status
- models: list
- generate: image, video, document
- hub: version, list, submit

Co-Authored-By: Sudeep Pillai <[email protected]>
- Add CLI implementation with Typer instead of Click
- Implement subcommands: files, fine-tuning, models, generate, hub
- Add comprehensive tests for all subcommands
- Configure CLI entry point in pyproject.toml
- Add required dependencies: typer, rich, pytest

Co-Authored-By: Sudeep Pillai <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@spillai spillai merged commit a5e8f50 into main Jan 11, 2025
1 check passed
@spillai spillai deleted the devin/1736556738-add-cli-implementation branch January 23, 2025 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants