A Python package for easier reuseability of the System Template Regolith filter for Minecraft Bedrock Edition
Project description
A Python package that powers the System Template Regolith Filter and provides a command-line tool for creating projects based on templates defined using the System Template syntax.
Installation
pip install regolith-system-template
Command-Line Tool
This package adds the system-template command-line tool.
Before using the tool, set the REGOLITH_SYSTEM_TEMPLATE environment variable to specify the directory where your templates are stored. Templates should be organized into subfolders within this directory, using the same format as the Regolith filter.
You can verify that system-template is set up correctly by running the following command:
system-template list
This will list all available templates in the REGOLITH_SYSTEM_TEMPLATE directory.
To use a template, run:
system-template run <template-name>
This will create a new system based on the template named <template-name>.
Flags
--systems-path- Instead of using theREGOLITH_SYSTEM_TEMPLATEenvironment variable, specify the path to the template directory with this flag.--scope-path- Provide the path to a file containing the scope for template execution. This is useful when executing a template within a Regolith project. In that case, use this flag to specify the project’s global Regolith scope.--scope- Define the scope in JSON format. When using System Template as a Regolith filter, it uses the scope defined inconfig.json. This flag allows you to provide a replacement for that scope when running the command-line tool.--allow-non-empty- By default, the tool does not run in non-empty directories. Use this flag to override this behavior.--replacements- Provide a JSON object with key-value pairs to replace text in the template files. This corresponds to thereplacementssetting inconfig.jsonwhen using System Template as a Regolith filter.
For additional help, use the --help flag.
Unlike the Regolith filter, the command-line tool is not restricted to exporting only to the RP/, BP/, and data/ directories.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file regolith_system_template-1.3.0.tar.gz.
File metadata
- Download URL: regolith_system_template-1.3.0.tar.gz
- Upload date:
- Size: 20.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db74160304beb5b9add9580a05dbea00942ebc45088fe3141f3fe29390989790
|
|
| MD5 |
0b18169e6240a5ad08b12d313138fe85
|
|
| BLAKE2b-256 |
4f5a2e0f03340e85ea78b3608ca6f81ac21b7ba42502ba937633e70dca9c1b96
|
File details
Details for the file regolith_system_template-1.3.0-py3-none-any.whl.
File metadata
- Download URL: regolith_system_template-1.3.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f40435cd8cd3768acedb6a640dc6a1f2a6f86600479e4e6627d77e20c583765d
|
|
| MD5 |
242595344775f5f8714a84d7d1f3d721
|
|
| BLAKE2b-256 |
7796543c2787968d470216471f426855ff989a3e72ff8fba59080eaf2ccdf6d1
|