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
pyrecli-0.1.3.tar.gz
(7.7 kB
view details)
File details
Details for the file pyrecli-0.1.3.tar.gz.
File metadata
- Download URL: pyrecli-0.1.3.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6581112cc016919bbad70e2ce5e745ccb7ee02c26d85ba207c35e592c5cb55fe
|
|
| MD5 |
8ee79d5158baea0d4e420b42345f9014
|
|
| BLAKE2b-256 |
0a3828cda5d57432c225b376cd929d75473138d22c38d0fef2fd2f4959d592de
|