Skip to main content

Supercharge Minecraft commands with Python

Project description

Bolt

GitHub Actions PyPI PyPI - Python Version Code style: black Discord

Supercharge Minecraft commands with Python.

infinite_invisibility = {
    Id: 14,
    Duration: 999999,
    Amplifier: 1,
    ShowParticles: false,
}

def summon_chicken_army(n):
    for i in range(n):
        summon chicken ~i ~ ~ {
            Tags: [f"quack{i}"],
            IsChickenJockey: true,
            Passengers: [{
                id: zombie,
                IsBaby: true,
                ActiveEffects: [infinite_invisibility]
            }]
        }

say Go forth, my minions!
summon_chicken_army(16)

Installation

The package can be installed with pip.

$ pip install bolt

Contributing

Contributions are welcome. Make sure to first open an issue discussing the problem or the new feature before creating a pull request. The project uses poetry.

$ poetry install

You can run the tests with poetry run pytest.

$ poetry run pytest

The project must type-check with pyright. If you're using VSCode the pylance extension should report diagnostics automatically. You can also install the type-checker locally with npm install and run it from the command-line.

$ npm run watch
$ npm run check

The code follows the black code style. Import statements are sorted with isort.

$ poetry run isort bolt tests
$ poetry run black bolt tests
$ poetry run black --check bolt tests

License - MIT

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bolt-0.17.3.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

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

bolt-0.17.3-py3-none-any.whl (40.5 kB view details)

Uploaded Python 3

File details

Details for the file bolt-0.17.3.tar.gz.

File metadata

  • Download URL: bolt-0.17.3.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for bolt-0.17.3.tar.gz
Algorithm Hash digest
SHA256 30cfe854bb70d6ba915c7b5bc811de91ee35e0048dac6907af27e46a673fc59d
MD5 878e1d5168448b8b7b4c28afecdc4ee9
BLAKE2b-256 92f0dafd1bac61da6252ba210c1450c57883dbd84f9cd9f330ce544baace8003

See more details on using hashes here.

File details

Details for the file bolt-0.17.3-py3-none-any.whl.

File metadata

  • Download URL: bolt-0.17.3-py3-none-any.whl
  • Upload date:
  • Size: 40.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/35.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.64.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.13

File hashes

Hashes for bolt-0.17.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b72e6a638b463fabd4c5c750161be3f414fe4256bb9164d0143a63d79b7cf7dd
MD5 ed54ebcd03e2ceda89ebd7517094aee1
BLAKE2b-256 c301cd44f2f725bd61955213cdf1b1cc9ea178dc2d048524f6a15a62bd6a5539

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