A suite tool command line for rez.
Project description
rez_tools
A suite tool command line for rez.
This tool requires you to install rez in advance.
Installing
You can install via pip.
pip install rez_tools
or through clone from Github.
git clone https://github.com/loonghao/rez-tools.git
Install package.
cd rez_tools
python setup.py install
QuickStart
rez_tools
will find all tools via reztoolsconfig:tool_paths
.
> set REZ_TOOL_CONFIG=C:\Users\hao.long\PycharmProjects\rez_tools\examples\reztoolsconfig.py
> rt
rt
will dynamically generate a command line and bind it to the rt namespace
based on the content defined in the found .rt
file.
type rt
will list all tools found. like the below.
Usage: rt [OPTIONS] PLUGIN [PLUGIN OPTIONS]
Options:
-h, --help Show this message and exit.
Plugin Commands:
conan_python2 A rez plugin - conan_python2.
conan_python3 A rez plugin - conan_python3.
python Python3.
Tool Options:
rez_tools run other tools with their own options and argument patterns,
however, all tool has the following hidden options:
--ignore-cmd Ignore standard tool command when running the command,Remember
to provide an argument which will be used as the command to
run.Examples: rt conan --ignore-cmd python
--print Print plugin details and exit.
Define the suite description of rez-tool
The file format is .rt, the syntax is yaml
The following fields are now supported:
Key | required | description |
---|---|---|
name | no | The name of the tool, which will finally be registered in the command line. |
command | yes | The complete command line to be executed. |
requires | yes | The name of the rez package that the command line execution environment depends on |
Examples:
maya.rt
command: maya
requires:
- maya-2020
- maya_usd
- maya_mtoa
run command line
rt maya
cmake_gui.rt
command: cmke-gui
requeres:
- cmake
run command line
rt cmake_gui
python-2.rt
name: python_2
command: python
requeres:
- python-2.7
- pyside
- pyyaml
run command line
rt python_2
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 rez_tools-0.3.0.tar.gz
.
File metadata
- Download URL: rez_tools-0.3.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a3b258afa8251f31cdf3cca79fd1f080937b690f74022f0aea1766770720f74 |
|
MD5 | 8820856020606873777b2a2214bf7386 |
|
BLAKE2b-256 | 179fdab30e535c9c055653270d12a89d12d8272f147f789946be2bf993c89022 |
File details
Details for the file rez_tools-0.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: rez_tools-0.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37d7ff3f27894118775f5a833dccedc62b64b749a376e965b3b35ef7696c6ad |
|
MD5 | ac03e09a2c1d24231c8a28111ccbfc22 |
|
BLAKE2b-256 | 2814a511908aac4b63bac7b815d38530da7c2151a29723f8f859013d38885dce |