Skip to main content

Command line utilities for DiamondFire templates

Project description

pyrecli

Command line utilities for DiamondFire templates

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.0.tar.gz (6.6 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.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyrecli-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 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.0.tar.gz
Algorithm Hash digest
SHA256 796965f0b781a9a0aa7e8c49485dede18dec988151d7adf1cdda62c711bdd84f
MD5 aee61c07292fba48b7f0fe47a8eae3ea
BLAKE2b-256 dc173c2fc71b72a3c6b316a6ffa248cd9edfe4be72777064028c6d1cce04897c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyrecli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 896d9b60be59e008c74e2d9e01834cc96d9b85dea76560115d90f2aaa8608ec1
MD5 23aabaec0167e7db2baa6973591bd68c
BLAKE2b-256 027597315d41a3f7997fd6d87d6c7f50a6e0d64769b5aecb683c2008140a7585

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