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.1.1.tar.gz (6.7 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.1.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

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

Hashes for pyrecli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a2aae7618c3a7113cc8c2b642c3a9e619995ba4a7fe43d98a5fef58282f299da
MD5 4658486d68c5a9626e9cd8f91ce3d362
BLAKE2b-256 a060274520acecdebce8fba47649e515cc9f8efda8802480025c9d3296d577da

See more details on using hashes here.

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

Hashes for pyrecli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4d52fd8ecba88a5754d5539ad24d264d91bf5e90e9778e9c22bf0eb5a23f415f
MD5 e6ecff2e6d9decc755d4d171e798c21e
BLAKE2b-256 7761f7438c27c70d7f6a7f0dd74eedfdf491dcbed082341624fb2d802a4cf3b0

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