Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wicked-expressions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wicked-expressions

Extension of bolt-expressions written in Bolt.

  • 1.6.3
  • PyPI
  • Socket score

Maintainers
1

wicked-expressions

GitHub Actions

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

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc