Skip to main content

JustMC templating library in Python.

Project description

JustMC.py

JustMC template library in Python.

Installation

The package can be found on PYPI at JustMC.py. To install, open terminal and type in:

python3 -m pip --upgrade JustMC.py

This will install the package.

Quick Start

The package can be used under the namespace jmc. Here's an example program that generate code that counts to 10:

from jmc import *

index_variable = Variable("index")

template = Template(
    Event("player_join"),
    [
        Block(
            "repeat_multi_times",
            [
                Argument("variable", index_variable),
                Argument("amount", Number(10))
            ],
            [
                Block(
                    "player_send_message",
                    [
                        Argument("messages", PluralArgument([
                            index_variable
                        ]))
                    ]
                )
            ]
        )
    ]
)

module = Module([template])
url = module.upload()
print(f"Do \"/module loadUrl force {url}\" to load the program.")

Features

  • Templates
  • Code Blocks
  • Arguments
  • Modules

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

justmc_py-0.0.1.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

justmc_py-0.0.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file justmc_py-0.0.1.tar.gz.

File metadata

  • Download URL: justmc_py-0.0.1.tar.gz
  • Upload date:
  • Size: 9.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for justmc_py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eb3353d697ef7f908757c51f20ef49cd6fccaea43c8355b2d90fc4dec59a87f1
MD5 724e556555b88c04a471d3b3d3e2eca6
BLAKE2b-256 829ab4e27c3cad5f5a1b536472aa358eed109ba290890eba6d5de5d486acef18

See more details on using hashes here.

File details

Details for the file justmc_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: justmc_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for justmc_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53556748c371ee65db42d6b5573c9a56a9d07a9f8f45763c26b06f2fa528c827
MD5 4786bd0199719e100f870c8b342a3178
BLAKE2b-256 c7f2f946ab9ad284e8a1472f8ac9cb251dc4149ae14ba5434b79e0e0285ebfe7

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