Metadata-Version: 2.4
Name: dfpyre
Version: 0.10.1
Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
License-Expression: MIT
License-File: LICENSE
Keywords: diamondfire,minecraft,template,item
Author: Amp
Requires-Python: >=3.10
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Provides-Extra: dev
Requires-Dist: mcitemlib (>=0.5.2)
Requires-Dist: pytest (>=9.0.2) ; extra == "dev"
Requires-Dist: rapidnbt (>=1.3.5)
Requires-Dist: twine (>=6.2.0) ; extra == "dev"
Requires-Dist: websocket-client (>=1.9.0)
Project-URL: Repository, https://github.com/Amp63/pyre
Description-Content-Type: text/markdown

# pyre

A tool for creating and modifying code templates for the DiamondFire Minecraft server.

PyPi Link: https://pypi.org/project/dfpyre/

## Features
- All codeblock types and actions
- All code items
- Direct sending to DF via CodeClient
- Fully documented and typed actions
- Automatic type conversion (`int` to `Number`, `str` to `String`)
- Shorthand format for variables
- Convert existing templates into equivalent Python code


## Quick Start

To get started with pyre, install the module with pip:

```sh
pip install dfpyre
```

I also highly recommend you install CodeClient and enable `CodeClient API` in its General config tab. This will allow you to quickly send your templates to DiamondFire. [You can download it here on Modrinth.](https://modrinth.com/mod/codeclient)

Basic Template Example:

```py
from dfpyre import *

PlayerEvent.Join(codeblocks=[
    PlayerAction.SendMessage(Text('%default has joined!'), target=Target.ALL_PLAYERS),
    PlayerAction.GiveItems([Item('diamond_sword'), Item('steak', 10)])
]).build_and_send()
```


**For more information and examples, check out the [Wiki](https://github.com/Amp63/pyre/wiki) on Github.**

