This project has been archived by its maintainers, and is no longer receiving any updates.
wicked-expressions
Extension of bolt-expressions written in Bolt.
Introduction
This is an extension of the bolt-expressions package. I highly recommend getting accustom to the original before using this one. This package is meant to build upon it by adding more functionality.
from wicked_expressions:api import Scoreboard, Var, Float
foo = Scoreboard('demo')['$foo']
bar = Var(Float, 3.14159)
foo = 123
data_0 = 30
if foo == 1:
tellraw @a "foo == 1"
else:
tellraw @a "foo != 1"
if bar == 3.14159:
tellraw @a "yes :3"
else:
tellraw @a "no :<"
Installation
pip install wicked_expressions
Getting started
The library is designed to be used within any bolt script (either a .mcfunction or bolt file) inside a bolt enabled project.
require:
- bolt
- wicked_expressions
pipeline:
- mecha
Once you've required bolt and wicked_expressions, you are able to import the package's api module directly inside your bolt script.
Most of the imports come from the wicked_expressions:api module as shown below.
from wicked_expressions:api import Scoreboard
Now you're free to use the API. Use simple and complex expressions, compare expressions and have access to many more features of the library!
Documentation
Docs available here.
Features
- Most if not all the functionality of bolt-expressions.
- Built in score & data comparison using python's comparison operators.
- Useful functions and methods especially for bolt library developers such as
.store()and.get(). - Anonymous runtime variables.
- DataStash feature allowing per-entity data.
License - MIT
Metadata
Release files for wicked-expressions 1.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wicked_expressions-1.6.3.tar.gz | 14.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wicked_expressions-1.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.9 kB
Release files / wicked_expressions-1.6.3.tar.gz
| Download URL | wicked_expressions-1.6.3.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1185b632ee57a3e9a0f7e2e0b3b11cc2e580ae3483485c7358d531cbd335c98c
|
|
BLAKE2b-256 checksum How to use checksums |
2f3a89844d91b389d146b33c3b4c55873f929757df478e1261640b8e72f95819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.1.0 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.1
|
Release files / wicked_expressions-1.6.3-py3-none-any.whl
| Download URL | wicked_expressions-1.6.3-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab469378f614e756a0042c96f8df35e64d63bb1e55a62311599e3d1cc2786d7d
|
|
BLAKE2b-256 checksum How to use checksums |
f25928954433c3e6f53f36e4f5809acd53277802b4a775c29556c7bca1c6238a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/42.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.1.0 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.3.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.12.1
|