Skip to main content

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 data
  • grabinv: 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


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.2.0.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrecli-0.2.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file pyrecli-0.2.0.tar.gz.

File metadata

  • Download URL: pyrecli-0.2.0.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyrecli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 efed0040a4cea79e0c99e5ba54439aae6800ce343375e999548dbc2e33ec0762
MD5 d4d155ac0c8cbb8c3902ab6b2ad6fd06
BLAKE2b-256 9c5c4ddcea08fe9c128aa98548dc06baf30788019ab1a6b2b4fbf97bc5f3c24f

See more details on using hashes here.

File details

Details for the file pyrecli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyrecli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pyrecli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f643f1fc92a556a7271a4c42e28fa624e10815c0c6f7062838a84e7f138ebb9
MD5 1626858f88519d1f091cf41010c1fb56
BLAKE2b-256 66d02ff0731e0c9c2bdb84fdd84a72a3bd7b65c63c1b9361404e23e7f7a7b764

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page