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 (
inttoNumber,strtoString) - 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.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dfpyre-0.11.8.tar.gz | 565.9 kB | Without provenance | Details for dfpyre-0.11.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dfpyre-0.11.8-py3-none-any.whl | Python 3 | none | any | Details for dfpyre-0.11.8-py3-none-any.whl |
Total release size: 1.1 MB
Release files / dfpyre-0.11.8.tar.gz
| Download URL | dfpyre-0.11.8.tar.gz |
|---|---|
| Size | 565.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6c74056bfa23daded492d60ae274127f6afbbb0ac2f43ca9d83d1481bef616c
|
|
BLAKE2b-256 checksum How to use checksums |
e3bc8843eadeca62157e3b0ed758e263f5e8007875064abf41cdf2819c344c8b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / dfpyre-0.11.8-py3-none-any.whl
| Download URL | dfpyre-0.11.8-py3-none-any.whl |
|---|---|
| Size | 581.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15c4ee8d1d6d3b083f3caedecabb3d602968b9967d4c85c867e05755676f1e86
|
|
BLAKE2b-256 checksum How to use checksums |
723b602c15d2ada5e7b755ddaff9e32dd9e220230caa52e9fa9670acc1c02db6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Security for dfpyre 0.11.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.