Prerequisites
Ensure you have:- Prime CLI installed and configured
- See CLI Overview for setup instructions.
- Username set on your profile
- Authenticate the CLI:
Creating a New Environment
Initialize Environment
Create a new environment with our starter template:- A README.md file (displayed on the Hub)
- A
pyproject.toml
file for managing dependencies, versioning, tags, description, etc. - A Python file containing stub code for a
load_environment
function which returns avf.Environment
object — this will be the entrypoint for downstream applications to use your Environment, and should be used encapsulate any necessary preprocessing, resource provisioning, exposing configurable args, etc.
Develop Your Environment
After initialization, you can modify and test your environment. To install your environment locally, you can run:Make sure to follow the verifiers library patterns when implementing your environment. Your environment should inherit from appropriate base classes and implement required methods.
Upload Your Environment
Once you’ve developed and tested your environment, push it to the hub:Once uploaded, your environment will be available for installation by others using
prime env install owner/environment-name
, unless you use the --visibility=PRIVATE
flag.Version Management
Updating Your Environment
When you make changes to your environment:- Update the version in
pyproject.toml
- Push the updated environment:
Getting Help
- Check the verifiers GitHub repository for examples
- Review the verifiers documentation for detailed guides
- Join our Discord community for support