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.2.0.tar.gz (21.8 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.2.0-cp313-cp313-win_amd64.whl (101.1 kB view details)

Uploaded CPython 3.13Windows x86-64

squiid_parser-0.2.0-cp313-cp313-win32.whl (101.0 kB view details)

Uploaded CPython 3.13Windows x86

squiid_parser-0.2.0-cp313-cp313-musllinux_1_2_x86_64.whl (268.5 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

squiid_parser-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (206.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

squiid_parser-0.2.0-cp313-cp313-macosx_11_0_arm64.whl (176.9 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

squiid_parser-0.2.0-cp312-cp312-win_amd64.whl (101.1 kB view details)

Uploaded CPython 3.12Windows x86-64

squiid_parser-0.2.0-cp312-cp312-win32.whl (101.0 kB view details)

Uploaded CPython 3.12Windows x86

squiid_parser-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl (268.5 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

squiid_parser-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (206.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

squiid_parser-0.2.0-cp312-cp312-macosx_11_0_arm64.whl (176.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

squiid_parser-0.2.0-cp311-cp311-win_amd64.whl (101.1 kB view details)

Uploaded CPython 3.11Windows x86-64

squiid_parser-0.2.0-cp311-cp311-win32.whl (101.0 kB view details)

Uploaded CPython 3.11Windows x86

squiid_parser-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl (268.5 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

squiid_parser-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (206.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

squiid_parser-0.2.0-cp311-cp311-macosx_11_0_arm64.whl (176.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

squiid_parser-0.2.0-cp310-cp310-win_amd64.whl (101.1 kB view details)

Uploaded CPython 3.10Windows x86-64

squiid_parser-0.2.0-cp310-cp310-win32.whl (101.0 kB view details)

Uploaded CPython 3.10Windows x86

squiid_parser-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl (268.5 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

squiid_parser-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (206.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

squiid_parser-0.2.0-cp310-cp310-macosx_11_0_arm64.whl (176.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: squiid_parser-0.2.0.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for squiid_parser-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3ea283894dbdb8dd12bcf763e7dcc367b7035592e700d2f2a6c6189414cfab6
MD5 e6b3ddb91ece7fff3af2a806550deecc
BLAKE2b-256 933c296d38aae84a463e1632d53622b92206dfb2589f23a552fbdfda8a5cbb26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 7a3983354ab972fd8887f59c3598153e3143f67adc4b957178e8074484333512
MD5 aa53384407d2d395216f69bd83195807
BLAKE2b-256 60262e6aa5e821acdf15da5ea277449d9facf65a124a71a819f0875fbc745881

See more details on using hashes here.

File details

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

File metadata

  • Download URL: squiid_parser-0.2.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: CPython 3.13, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for squiid_parser-0.2.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 c7f94e4b1325977277d73417d074b2099675099a9c38bd6328f2b62b41d1a8b8
MD5 8c531a5ccec4247066d180266bfe1e86
BLAKE2b-256 fd7f2fb031dc90db84abeda9de7c5164d52d992bceb5d6d8b7dc1895c7bd2ae8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a914d67c143a4257441e8cadf4168c714890a589c31603b0f4a9081c22855da5
MD5 78cdee30ec7154fadb3861d516635642
BLAKE2b-256 2fdd53be8ca9819aed17d3f28febcede108f348de032efb00096140f30f28a7c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3f292492daed2bcf03750b35d12125a7cb15de96e6fe456d04c94bbf615b691f
MD5 c62a978f7ceb58f60c1e08a44d9fe654
BLAKE2b-256 9885fd16b987db3f8270f1866c5bde380b4ce6ef300dc1082f004b8a598a0ec2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3d38dc8ea16db6a52db12680616423bec50584cb3bda27720a06b1254c4f22f7
MD5 f8ed964a1cf96f75168e40883aafffb2
BLAKE2b-256 5af44cc64df699c8a390e244e4fd28cebcfa0f1050d1e49927ac689c2f236173

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6add1378b5b150089f5cbfd083f21285b61c5ce6985aebbfc20ec0e406b2315d
MD5 c93a75fd7bdf3fb6da77617b4fefc26d
BLAKE2b-256 5f1fd087445bc14b70744ba9953de6cdeb933ac3f5803e51c8e646d71917706c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: squiid_parser-0.2.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for squiid_parser-0.2.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 902cf15e60fc8420f226d7f73093d9ea15adcaace0b470f32d1c8556d7fe6e32
MD5 c46e376fd41fb029cffa1a11ad4392fd
BLAKE2b-256 baf99691db981fe3f3b33b64a8e1b4d1c9236fa5de69a6e253cdaf783855ba21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 fd6e60686035b6bbbc2d38b3721f571859ede298b770387471c38b05ca4ce398
MD5 71b1385ca64930aad7a6bf3fef69cddb
BLAKE2b-256 374c4bc114b73d3739b01a8d29815b154ec7503c283a8afb22d742b8faa38e31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 200db48f1b453cba5920ef3ddabd20703516333abf0adda3c1fe449581cf0495
MD5 250c5d48ecb818b15f88febf472fe86c
BLAKE2b-256 9cdcd9569f030297c4a083c73d9f1f0226bbf15d1dd549a7642cfc8160d79e4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a4233a183eb673c12ba47d0aadfe36e5cbfdde0dce11cf3df8568d0912a3e60b
MD5 7933c9860447aa004352019ef3efbdb7
BLAKE2b-256 b770fde3b744782f0453f249f74106119667161615724b650e48feeef3b1d402

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 47ed1a9e9615f66c3789b3abd6d5585593eca5ac19a2119cfd46ff530fdf1224
MD5 a64510745ebb1c2d7503e327b143cbdd
BLAKE2b-256 609ddeb9783ab8a18e763c578503fb2ce7698c6a77f26246115b5729af5a148b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: squiid_parser-0.2.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for squiid_parser-0.2.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 94dcebe0a2ed3cf63cb570385b7725e16cf68ecddbea240e125120c60c74c6c7
MD5 2365cd3ce5c21e407d220b706b8e8c87
BLAKE2b-256 44dcf23ff694290be03248cdddfd3b5be6f4e0787cc12ae8c252ba3d60d9191a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 786f980ccf6c8615206f37e121ac6c2d8498bf739fa8118dcfbe138c2d9b5e5e
MD5 4b9d6672923a9ceec1a1839d2e0826fc
BLAKE2b-256 e4607ed4f95f8cda4b922b752437f86611f5e739b180e526257c44c3d490bb0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d38feb004085d869d29e7e9803c8cb9b6345387dec1da4cb0621e3018c332698
MD5 4c599c55f44d95daa4b9364c85642009
BLAKE2b-256 5a1dfc94101dbde41fc323598c98bc871c0c0e446d5e5cc4b47080c866c86ea9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc8765d5e3db949d31d5031d58e1f54d771fc5248e727a8ff61e80e1a2320681
MD5 993b962ef187337795bc03d03ceb71b5
BLAKE2b-256 bbb55f28f85c81692c42286c88900d64723dd22db4316e46d4aa5257143a1bea

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b0c95c8648884ad799fb8bf3a8658a7bd603f65a2cac07fab14616f5d31d399f
MD5 e3c638f2e808ad35979f919a1d0d6e64
BLAKE2b-256 c3d1fcad54eeab3be39f1a3b22c3844b40c47c8aec49f5167093f6db69227dbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: squiid_parser-0.2.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 101.0 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for squiid_parser-0.2.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 af795c248d9404d2ff9483f3e8fb5a8ff0d55b908fb3b9dc821ea992a0419130
MD5 393a9e4b273157665fd122b6e6e4cecc
BLAKE2b-256 654926ef071ff9dd49cc3af564aadd565b3721df19d206ea3223c0a19884a207

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 03bfd3b870b04a3d4d99ac719ae9e2074c6819490b5fbb683e77c5a2a149a197
MD5 dfe5ecfc38b555e8d402f3921f2b9a20
BLAKE2b-256 c437902269d052646189b5da18bc0e877092d4269b85c2706229d18e6de23adb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ffdda4ec57f8e9826ac3e3b7ca438dc379703b876a3b3180f72e59ceb2bbc804
MD5 e8b3255ab2516de156fc3119f96724a0
BLAKE2b-256 c9c7f232271b78e31944fc827497b35070b8bc5906e3f383b46054a01d25f80a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for squiid_parser-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f5379371539c094d1189720c0ede76f63bd37a0c69ea26e552c01086324f6f0
MD5 adae1312e48e2897f03ebd54aed90785
BLAKE2b-256 44e795f16b9de27477c284fc7b88f7ea9b0dc5967684de3cf0662a678126e949

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