Skip to main content

An API for Minecraft: Bedrock Edition and Minecraft: Java Edition written in Python

Installation

To install PyPacks it is recommended to create a virtual environment first

python -m venv .venv

Once the virtual environment is created then activate it

.venv\\Scripts\\activate.bat

Finally, you can install PyPacks

pip install pypacks

Usage

Here is an example of usage for PyPacks

import pypacks

# Create the PyPack
example = pypacks.PyPack("example", "Example Pack")

# Define a function in the PyPack that says "Hello World!"
hello = pypacks.Function("hello")
hello.add_command("say", "Hello")
hello.add_command("say", "World!")
hello.attach(example)

# Define another function in the PyPack
yello = pypacks.Function("yello")
yello.attach(example)

# Build the PyPack for Bedrock and Java
example.build(pypacks.PyPackType.JAVA, "Example")
example.build(pypacks.PyPackType.BEDROCK, "Example")

Metadata

Release files for pypacks 1.1.0

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

Source distribution (sdist)

Source distribution for pypacks 1.1.0
File Size Uploaded
pypacks-1.1.0.tar.gz 15.0 kB Details

Built distribution (wheel)

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

Total release size: 30.5 kB

Release files / pypacks-1.1.0.tar.gz

Download URL pypacks-1.1.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8bd03a70542f31e7eb451b867b7dedb15b1e2606f8eb42c4f414070380017241
BLAKE2b-256 checksum
How to use checksums
0b760e91929b06227987fcf884252f3c0f2bc0f8922a6e3d49a70250a0e9572c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / pypacks-1.1.0-py3-none-any.whl

Download URL pypacks-1.1.0-py3-none-any.whl
Size 15.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9570eae5f3570ba5b773472386b121db48ccac355433a1eeb00aa909f033e63d
BLAKE2b-256 checksum
How to use checksums
9603ae487489be110bccb92a76369f4f4523195851dca886056de1691e7dd620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

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