Command line utilities for DiamondFire templates
Project description
pyrecli
Command line utilities for DiamondFire templates
Installation
Run the following command in a terminal:
pip install pyrecli
Commands
scan: Scan all templates on the plot and dump them to a text file (requires CodeClient)send: Send template items to DiamondFire (requires CodeClient)rename: Rename all occurences of a variable (including text codes)script: Generate python scripts from template datagrabinv: Save all templates in your Minecraft inventory to a file (requires CodeClient)docs: Generate markdown documentation from template data
What is this useful for?
- Backing up a plot
- Getting an accurate text representation of DF code
- Open sourcing
- Version control
- Large scale refactoring
Example Usage
These two commands will scan your plot, convert each template into a python script, then place the scripts into a directory called myplot.
pyrecli scan templates.dfts
pyrecli script templates.dfts myplot
If you prefer the templates to be outputted to a single file, use the --onefile flag:
pyrecli scan templates.dfts
pyrecli script templates.dfts myplot.py --onefile
For more information about generating scripts, run pyrecli script -h.
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
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 pyrecli-0.1.1.tar.gz.
File metadata
- Download URL: pyrecli-0.1.1.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-71-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2aae7618c3a7113cc8c2b642c3a9e619995ba4a7fe43d98a5fef58282f299da
|
|
| MD5 |
4658486d68c5a9626e9cd8f91ce3d362
|
|
| BLAKE2b-256 |
a060274520acecdebce8fba47649e515cc9f8efda8802480025c9d3296d577da
|
File details
Details for the file pyrecli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyrecli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.8.0-71-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d52fd8ecba88a5754d5539ad24d264d91bf5e90e9778e9c22bf0eb5a23f415f
|
|
| MD5 |
e6ecff2e6d9decc755d4d171e798c21e
|
|
| BLAKE2b-256 |
7761f7438c27c70d7f6a7f0dd74eedfdf491dcbed082341624fb2d802a4cf3b0
|