Skip to main content

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 the REGOLITH_SYSTEM_TEMPLATE environment 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 in config.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 the replacements setting in config.json when 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.

Metadata

Release files for regolith-system-template 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for regolith-system-template 1.4.0
File Size Uploaded
regolith_system_template-1.4.0.tar.gz 20.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for regolith-system-template 1.4.0
File Interpreter ABI Platform
regolith_system_template-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.7 kB

Release files / regolith_system_template-1.4.0.tar.gz

Download URL regolith_system_template-1.4.0.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
09809661cf7798cc3d2c1bb97e861f8b299424d0a507fdb5873a673268c2a1a1
BLAKE2b-256 checksum
How to use checksums
89977c1699617d1b44fc113e3574270b177cb27559a1e0435d79195af5430d7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release files / regolith_system_template-1.4.0-py3-none-any.whl

Download URL regolith_system_template-1.4.0-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6fd3c583e00883a940ea375ebe5376a67213d8f96a81f223427d5176956f489
BLAKE2b-256 checksum
How to use checksums
437db89043df6f8e88d1a8635cec6432c580af7a3e645364d905336218d40363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page