CLI interface to control SURF VMs
Project description
🏄♂️ Surf Controller
🌊 Overview
Surf Controller is a powerful CLI tool for managing your cloud workspaces with ease! It provides a user-friendly interface to monitor, pause, and resume your virtual machines (VMs) effortlessly.
🚀 Features
- 📊 Interactive CLI interface
- 🔄 Real-time VM status updates
- ⏸️ Pause and ▶️ resume VMs with a single keystroke
- 📋 Multi-select functionality for batch operations
- 📜 Live log viewing
🛠️ Installation
Use rye Rye to install surf-controller globally or add it to your local environment. Of course, you can also use pip to install it.
rye tools install surf-controller
rye add surf-controller
pip install surf-controller
This installs the surfcontroller
command.
🔑 First-time Setup
You can find the documentation for the API hier: API Documentation
On your profile you can create your own API token.
You can obtain the CSRF tokens by authorizing directly with the Surf API. Use the green lock icon in the top right corner to authorize with your API-token and obtain the CSRF token by executing a request.
Copy both tokens and use them during configuration.
Run the configuration by starting the controller:
surfcontroller
On first run, Surf Controller will:
- 📁 Create a configuration directory in your home folder
- 📄 Copy a default configuration file
- 🔒 Prompt you for API and CSRF tokens
🎮 Usage
Run the controller:
surfcontroller
🕹️ Controls
navigate / select
j
: Move cursor downk
: Move cursor upEnter
: Select/deselect VMa
: toggle Select all VMs- 'f': toggle Filter VMs (by username)
- 'n': rename username
- 'l': toggle view logs
Actions
p
: Pause selected VMsr
: Resume selected VMs- 'u': Update VM list
- 's': ssh into selected VM (select just one VM)
📝 Configuration
Edit ~/.surf_controller/config.toml
to customize your settings.
🤝 Contributing
Contributions are welcome!
📜 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
- Thanks to https://claude.ai/ for help with the curses implementation
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
Built Distribution
File details
Details for the file surf_controller-0.3.8.tar.gz
.
File metadata
- Download URL: surf_controller-0.3.8.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5902841654418d47e45b98e87afb1ac8d90b9812e6cbc012c90772ec86e44030 |
|
MD5 | 0c8e78dfab027e4b7d60ec7ca69cd779 |
|
BLAKE2b-256 | 8d3402c8e1475fd1e89835f77ead80b221f6076083d2fefb59c4ac0434334588 |
File details
Details for the file surf_controller-0.3.8-py3-none-any.whl
.
File metadata
- Download URL: surf_controller-0.3.8-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb0e4cdd0592e08c216815427a3c5cf1de7924c075607bc5973b8f29ffae587c |
|
MD5 | 3142c8d6a2d1d24da1329958b695ff99 |
|
BLAKE2b-256 | 57bcb37548c7d51da90f81eb4dafed08b1700397b1087f962e52589103d1ca36 |