Skip to main content

Python code analyzer.

Project description

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

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

pybex-0.0.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

pybex-0.0.2-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pybex-0.0.2.tar.gz.

File metadata

  • Download URL: pybex-0.0.2.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pybex-0.0.2.tar.gz
Algorithm Hash digest
SHA256 77170b089e99c0a147d36f0bb79629a9e10f40e27417b343d003c71fc107c470
MD5 9192d692202f511eb9250a1f84e59a91
BLAKE2b-256 fb1f16ec68624a6e96be43a2519848ed24ec0cb404fcf1d13609772f47eca688

See more details on using hashes here.

File details

Details for the file pybex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: pybex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pybex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0dc39b551926809117ed35ce2624a935d85e9032a779f1c410561d6b45b6fded
MD5 c92ac08b9cd51e26f3cec6716ad731a7
BLAKE2b-256 7f88ac3b73439dd975966b1161bb4f0c0fb560a4d055394cf39c6811706b3d8b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page