Skip to main content

Squiid Parser Python bindings

Project description

Squiid Parser Python Bindings

codecov

Python bindings for the parser portion of Squiid calculator. The parser is used to convert algebraic/infix notation to postfix notation that the engine can evaluate.

More documentation is coming soon, however the source code is strongly typed and well-documented.

Simple Demo:

import squiid_parser

p = squiid_parser.SquiidParser()
result = p.parse("(3+5*7)")

assert result == ["3", "5", "7", "*", "+"]

# squiid currently doesn't support symbols, but rather commands
# iterate through the list and convert symbols to commands
for index, value in enumerate(result):
    if value == "*":
        result[index] = "multiply"
    elif value == "+":
        result[index] = "add"
    elif value == "-":
        result[index] = "subtract"
    elif value == "/":
        result[index] = "divide"
    elif value == "^":
        result[index] = "power"
    elif value == "%":
        result[index] = "mod"

assert result == ["3", "5", "7", "multiply", "add"]

# and now pass this array to the engine...

This demo can also be found in this directory

Also see squiid-engine for evaluating RPN expressions.

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

squiid_parser-0.3.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distributions

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

squiid_parser-0.3.0-cp313-cp313-win_amd64.whl (108.0 kB view details)

Uploaded CPython 3.13Windows x86-64

squiid_parser-0.3.0-cp313-cp313-win32.whl (108.0 kB view details)

Uploaded CPython 3.13Windows x86

squiid_parser-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl (275.2 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

squiid_parser-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

squiid_parser-0.3.0-cp313-cp313-macosx_11_0_arm64.whl (183.2 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

squiid_parser-0.3.0-cp312-cp312-win_amd64.whl (108.0 kB view details)

Uploaded CPython 3.12Windows x86-64

squiid_parser-0.3.0-cp312-cp312-win32.whl (108.0 kB view details)

Uploaded CPython 3.12Windows x86

squiid_parser-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl (275.2 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

squiid_parser-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

squiid_parser-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (183.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

squiid_parser-0.3.0-cp311-cp311-win_amd64.whl (108.0 kB view details)

Uploaded CPython 3.11Windows x86-64

squiid_parser-0.3.0-cp311-cp311-win32.whl (108.0 kB view details)

Uploaded CPython 3.11Windows x86

squiid_parser-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl (275.2 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

squiid_parser-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.1 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

squiid_parser-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (183.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

squiid_parser-0.3.0-cp310-cp310-win_amd64.whl (108.0 kB view details)

Uploaded CPython 3.10Windows x86-64

squiid_parser-0.3.0-cp310-cp310-win32.whl (108.0 kB view details)

Uploaded CPython 3.10Windows x86

squiid_parser-0.3.0-cp310-cp310-musllinux_1_2_x86_64.whl (275.2 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

squiid_parser-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (213.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

squiid_parser-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (183.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file squiid_parser-0.3.0.tar.gz.

File metadata

  • Download URL: squiid_parser-0.3.0.tar.gz
  • Upload date:
  • Size: 22.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for squiid_parser-0.3.0.tar.gz
Algorithm Hash digest
SHA256 205d5ab1a1db96921405acb89ffcc88cfde29ee39b157cf3d79e932aeef66019
MD5 bdd182a776d31205121ebd35f793beb2
BLAKE2b-256 8aeee1f8585375a676f33bc82852dac5408df39215e7522f898077d67f520832

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 246fe311926d72782e152dacb84daa36d4e2c564f4192578c55610c0c93fb641
MD5 e999e99deefb59b284f9ecbb28655f93
BLAKE2b-256 5ffc332eba7afb7ce26c4733c5fefa526d8d754e1370e2b5d375c200663fdc01

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: squiid_parser-0.3.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for squiid_parser-0.3.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 f6e2f0f76d1f84eae210490131bef877b009351286c35f20ff30b530fcc83dcb
MD5 90364653d0b19fcc77ab2eb0a2020aca
BLAKE2b-256 2251685012ff61898cdf20d5c97abe2cece2e20a576082059e836e16c03fe0b9

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 986d83202a22d29de4f765f7b081a2e91123a7fd8101c451b235f1a023451e4b
MD5 c1b1438b393dbab78953b0a34d9dc397
BLAKE2b-256 dc7721f2451edddfb9e194cc23def3e73e6c052c2d0134311298fbae9f9f7ada

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e05fba11942e7c45ee3f525d3fb7bdc4c4103861ce1203b573ac7f8d7cf8c432
MD5 a45a0cb007ebd1396f0092877291c669
BLAKE2b-256 9da09622e31c07a36fa0b6951373276c87590197e3e726dc25b1a132ec5f0ea3

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b1fa7ade4145ab80d6dc5314ebfc185a5e12945823037d2b2e6b39ef3760258
MD5 993d6cc0424a688347e1b02fa79c76d0
BLAKE2b-256 cc4751531d777de808415c2533dde7625d20d8d45981712c5c5a47de335d3ae4

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 55196ef25bb97c657fa37d1c32965f582bc7cfb31d25f7945c463d15fa6b423c
MD5 a5d031045d6b70d0b42a2c93ecb46199
BLAKE2b-256 617b4debb72cad13e7432dd5d18ad211309bd053b88cba07118f2e15c17319e4

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: squiid_parser-0.3.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for squiid_parser-0.3.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 bff0e456a7874eb2f9be35fc99c04f477f261abded0b670479abbf2895692f60
MD5 a5c7c9b302e85b16a9a60cd74b0c8e18
BLAKE2b-256 2697db3bc0e5e236d7562d6c4b17aaf6202d393a10b0f91d31b02a1a48ae2eab

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 cc878e9a1c24c3cb68bc6811f9e7571356304ec1190d787f670fefd17254bdab
MD5 ae617deec876b05610ba48b5e3badb62
BLAKE2b-256 c2d7fb4b139090a0e1578eafba812cc371889e4c6ef91005773d89b7cd619235

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 51b1d703c83449414740119fc56f2487ba245de564e8e35d0f981aaf89d60bc3
MD5 11b6ed54d6cc450e5478822e80662a77
BLAKE2b-256 666698d4980315ad83b2c4bdff6edf3bc089a577f642a27f19a1cc5f8610914a

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 17c0a2552def9fc465edc0ea268ca18f2b67bbf6b80c28a1c64c63ced716fc54
MD5 609124072a0e55add0cbbd63ce1a488b
BLAKE2b-256 87f3f142993d9ed4306546f6ad34cb9400c59c638cf4ee036aeb2da11495920e

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00886707331e7f90340dd2f47fcb8490136d0a4da099f3accdb22998cb1e54ce
MD5 66c3a1d9f5edf397d76e8af0e0b1f577
BLAKE2b-256 821fb57db55413c4fca83e28617d193ebabfbbedba85b7e8aef32a7698502523

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: squiid_parser-0.3.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for squiid_parser-0.3.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6adcb8195b37d62a245a655ec4bb932907dd7edb80a6bf3f0b79c8c0ba386c13
MD5 b6b682d4f498d2df7cbd4baa6e395cb5
BLAKE2b-256 5ced9a7cabe8dac38da6181185750750950a3e4d83b11ea4d5cd7d9000b42c55

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 ac800cdb88e9961c56a239ec45e424622e19e5f7b87475e58a9ca16d9f333f29
MD5 68ad5628ebba043809cf92f48ed1db7e
BLAKE2b-256 824e08778394af34aa4e1bcdec73663975b0e73099ee56fd5b76b87b612c8b74

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0aa45c6ea33c0e9d3cf490bf8657f7bb829cbfd9a822f0073124e4feff6065be
MD5 b473e03c85a7b33fed3ce8dbc9894548
BLAKE2b-256 65c4bde53a04cf6602f8d96d9a0090dc633802bc44355ab402be01bc48044556

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b2b2ad51891a67d3cf294c302ef2130724334f3befbf77179d2371a92efdbdc6
MD5 7a5aa930d644a96b3d0e35027651921e
BLAKE2b-256 b8726d7887959b5cc559f525f427a156b9bc1a772e73fc485241892895f8df4f

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8f507ef49de488b3dc36b61cabcda75a7f921ca69093dca0819f036fe473ed0f
MD5 207274c8c655e4c611102c626086509a
BLAKE2b-256 5fa518794653ad6d788cbbde3f77fe9704075c3f83a11c629f62005cd36f47b3

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: squiid_parser-0.3.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 108.0 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for squiid_parser-0.3.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e7b477f5e5c885fa07f6b47a9c2d13d473f9b74e7c6591389ea9b61f636f0f41
MD5 52a6fae7a6f94882d286ee633497813d
BLAKE2b-256 e6da4a44e5d088f8d32e8508ba149621577b4b67f8802cc0b2ea2e895765aa5e

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2b762a9ada689e4ceb3ea6b6c534df44cb534b551560f6603146ae20644970b4
MD5 78e87b3b55a854f3d4ccf7bd0239ba24
BLAKE2b-256 126f1713f9b117ac1c19575e28a52fc2fcfe7f7620b4122b3c3e2586db235e06

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3b5fbd6bc5ba63a78c74505082f9a8fe0d5b178e727312b13b449b46d6af0392
MD5 5e9852e3ebd298485aa4ef91412825c9
BLAKE2b-256 dd8aa28bff0e86f604e3b41dd29cf7a6fb3fb63f282d3ad1b2bc646413f3b663

See more details on using hashes here.

File details

Details for the file squiid_parser-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_parser-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 df31354e1392f27c339f4e8b922644084466d276bc70dbd1abc32ffb4c140ae2
MD5 73ad511e086a85ce1052b97ef2002c91
BLAKE2b-256 2a102bd01d75d7c053fcdf1f05f2a12395b937764149dcb2ee71b02f76ca2526

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