Skip to main content

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:

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.

Basic Template Example:

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 on Github.

Metadata

Release files for dfpyre 0.11.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dfpyre 0.11.7
File Size Uploaded
dfpyre-0.11.7.tar.gz 563.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dfpyre 0.11.7
File Interpreter ABI Platform
dfpyre-0.11.7-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / dfpyre-0.11.7.tar.gz

Download URL dfpyre-0.11.7.tar.gz
Size 563.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ef5335c100b89a8aa2646fee01d59936dd1d14b487b0f804de089770f29745a1
BLAKE2b-256 checksum
How to use checksums
42abd0b8b2d544d9b462c5f9bfe7a4ae5f24c3c0944678f53be146e1e9337ea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / dfpyre-0.11.7-py3-none-any.whl

Download URL dfpyre-0.11.7-py3-none-any.whl
Size 579.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
113a6df4071ab1357ccca413c6bcd75b4727a3ff725c499310328b2ad50b62b8
BLAKE2b-256 checksum
How to use checksums
45f72aa864e1b0760ce06d8940d18d3684f390a16b51ac3f6257ffb78559fa53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.11.7 This release

2 release files

0.11.6

2 release files

0.11.5

2 release files

0.11.4

2 release files

0.11.3

2 release files

0.11.0

2 release files

0.10.7

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.21

2 release files

0.8.20

2 release files

0.8.19

2 release files

0.8.18

2 release files

0.8.17

2 release files

0.8.16

2 release files

0.8.15

2 release files

0.8.9

2 release files

0.8.8

2 release files

0.8.7

2 release files

0.8.6

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.9

2 release files

0.7.8

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.3.3

1 release file

0.3.1

1 release file

0.3.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page