init instance class #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
helix/instance.py
Added the
Instance
class to manage Helix instances with methods for deployment, status checking, starting, stopping, and deletion. The class handles instance lifecycle management and port mapping, with support for both running and non-running states.helix/client.py
Enhanced the
Client
class to integrate with the newInstance
class for automatic instance management. The client now handles instance deployment and cleanup.examples/cookbook/instance_demo.py
Created a demonstration script to test the
Instance
class. The script performs a sequence of operations (deploy, status check, stop, start, delete) on a Helix instance, providing a practical example of how to use the new class.examples/cookbook/client_demo.py
Created a demonstration script based on the cookbook example in docs to test the
Client
class.Type of Change
Testing
Checklist