Skip to main content

Python Bot EXpression (PyBEX)

A simple Interpreted Dynamic Programming Language for describing chat bot commands and behavior.

Installing PyBEX

PyBEX is available on PyPI:

python -m pip install -U pybex

Language Elements

String

"Hello, World"

'single or double - doesn\'t matter'

"""multiline
ones"""

'''are
supported'''

Number

# integers
69
420
1_000_000  # 1000000

# and floats
3.1415
5e-10

Variable

args
sender
_underscore

Funcalls

f()
f(g())
f(69, 420, 3.1415)
f("can take in any other language element")

Interactive mode

use command:

python -m pybex
bex> say(99,
 ... "bottles of beer",
 ... "on the wall.")
99 bottles of beer on the wall.
bex> if(1, "pi", 3.1415)
'pi'

Interpret from the file

use command:

python -m pybex <file_path>

(replace <file_path> with path of your script file)

say(if(
    int(input()),
    "non-zero input",
    "zero input"
))

Inspiration for the project

Metadata

Release files for pybex 0.0.2

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

Source distribution (sdist)

Source distribution for pybex 0.0.2
File Size Uploaded
pybex-0.0.2.tar.gz 9.2 kB Details

Built distribution (wheel)

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

Total release size: 18.8 kB

Release files / pybex-0.0.2.tar.gz

Download URL pybex-0.0.2.tar.gz
Size 9.2 kB
Tags Source
SHA-256 checksum
How to use checksums
77170b089e99c0a147d36f0bb79629a9e10f40e27417b343d003c71fc107c470
BLAKE2b-256 checksum
How to use checksums
fb1f16ec68624a6e96be43a2519848ed24ec0cb404fcf1d13609772f47eca688
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0rc1

Release files / pybex-0.0.2-py3-none-any.whl

Download URL pybex-0.0.2-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0dc39b551926809117ed35ce2624a935d85e9032a779f1c410561d6b45b6fded
BLAKE2b-256 checksum
How to use checksums
7f88ac3b73439dd975966b1161bb4f0c0fb560a4d055394cf39c6811706b3d8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0rc1

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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