Commands
Interface
Blueprint for the commands classes
-
class
pyenvbuilder.commands.interface.
Command
(name, summary)
Bases: object
-
add_args
(args)
-
run
(**kwargs)
Check
Class for YAML file validation
-
class
pyenvbuilder.commands.check.
Check
Bases: pyenvbuilder.commands.interface.Command
-
add_args
(cmd_parser)
-
run
(**kwargs)
Validates if proper files or directories were passed in
-
yaml_loader
(file_path)
Loads an yaml file and returns its contents
-
yaml_validator
(yml_file)
Validates and YAML file against a schema
and returns True if valid, False otherwise
Create
Class for the create command
-
class
pyenvbuilder.commands.create.
Create
Bases: pyenvbuilder.commands.interface.Command
-
add_args
(cmd_parser)
-
check_files
(file_list)
Validates all the files in the list
- Parameters
file_list (list) –
- Returns
Status if all files are valid
- Return type
Boolean
-
conda_create
(data)
-
run
(**kwargs)
Pack
Class for the pack-command
-
class
pyenvbuilder.commands.pack.
Pack
Bases: pyenvbuilder.commands.interface.Command
-
add_args
(cmd_parser)
-
conda_pack
(env)
Packs an environment into a tarball
- Parameters
env (string) – Environment name/path
-
run
(**kwargs)
Unpack
Class for the pack-command
-
class
pyenvbuilder.commands.unpack.
Unpack
Bases: pyenvbuilder.commands.interface.Command
-
add_args
(cmd_parser)
-
run
(**kwargs)
-
unpack
(env)
Unpacks an environment from a tarball
- Parameters
env (string) – Environment.gz name/path