Squiid Parser Python bindings
Project description
Squiid Parser Python Bindings
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file squiid_parser-0.1.1.tar.gz.
File metadata
- Download URL: squiid_parser-0.1.1.tar.gz
- Upload date:
- Size: 20.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13cd6d9dc7e183012bedda9460a238bb46ac54721138bacd2550c0968b1ede50
|
|
| MD5 |
c61a3bb41f4b84e8d6166c10e11d4842
|
|
| BLAKE2b-256 |
b979b498f85a62015d0b99d51db51bdef26fd51fb594a9c08d12007110dbfae0
|
File details
Details for the file squiid_parser-0.1.1-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.13, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d4a9df3622eb1c9d2653834e0c62238a210793beb01ce2e3d7c88d5533428d4
|
|
| MD5 |
57ae6693366331740351a6e12689129b
|
|
| BLAKE2b-256 |
3937db47aa42f5341bdbafb5a8bcb93c2d4658027dc5faf7bf9699539393a566
|
File details
Details for the file squiid_parser-0.1.1-cp313-cp313-win32.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp313-cp313-win32.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.13, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ace4c218f8af58c81bc905ee8fd801526ca8585a444bdb5ad0fec96383c9d02b
|
|
| MD5 |
88ccac2dbafd67a7b900320fe3ec6101
|
|
| BLAKE2b-256 |
537428ee463952a6885a10bc6dad698daf91032b46beb7dd9367a84390fe1659
|
File details
Details for the file squiid_parser-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 264.7 kB
- Tags: CPython 3.13, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bdf59b481522d41167b5e10e8519edd65d7de6c531c018ff6f8480ef7c23c153
|
|
| MD5 |
055e5ad024cb0c0addcb35c2cc28b068
|
|
| BLAKE2b-256 |
fc14ae9d0ae8b4d333ac5b97e16e2e92dc346877c53549075480677a6eb0d256
|
File details
Details for the file squiid_parser-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 202.5 kB
- Tags: CPython 3.13, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e3e8483dbddb097b4f2a4e850fb48d2e8b90a9bb3c818159e0686d1fc9c54e7
|
|
| MD5 |
093ca96b8a6537b7d0e60b8abb41d06f
|
|
| BLAKE2b-256 |
9be304f5351420dae46b760bb8180be5046b299d17b6dd39f0116c296838aca7
|
File details
Details for the file squiid_parser-0.1.1-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 176.1 kB
- Tags: CPython 3.13, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab1b84e9bdeaacbba0c88fe036aca86a184974ec6a58e19bc2fbb8f9c363f4d7
|
|
| MD5 |
c7494f07412b57ee514bff681107c935
|
|
| BLAKE2b-256 |
0cdd7fc71e65f67b55f839aa453ce381c6e9b4d0d446341e24e93acf5891c99f
|
File details
Details for the file squiid_parser-0.1.1-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
824b9b0647db367ad12607895600c07721efe0658d29aba0785aa594df995a50
|
|
| MD5 |
99cb22155d8760239d68bf142c3717ff
|
|
| BLAKE2b-256 |
6105c4e9fb43361b237aa6f9bcd2fbab72fc6d2e47a04d0e40d81953436d3318
|
File details
Details for the file squiid_parser-0.1.1-cp312-cp312-win32.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp312-cp312-win32.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.12, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc88632ef4a8bc24bf4f49bd557f2a8b03ff00676d060bf23c927bf27c9dbb83
|
|
| MD5 |
ea483d48f96e65f41d3ab1c58917296b
|
|
| BLAKE2b-256 |
8cb6c914be3c653fe93dcae97d4cd1b43b9c5e9e8298c5821e7184a269e92383
|
File details
Details for the file squiid_parser-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 264.7 kB
- Tags: CPython 3.12, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9463cd9822ddba8e063b330140c41fe4d57fcbd9d6b4eec9b5b0a8337c582f59
|
|
| MD5 |
ba9426f9646e00d8a0c332603dcfb77c
|
|
| BLAKE2b-256 |
f0cf437a05ee83e7c539f595530c4100eaa4b590b41a80faac9a62eea534acf0
|
File details
Details for the file squiid_parser-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 202.5 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
786e4e5951f9839e47343b07618bc9f8319b9c9426303e1e45c0e3a8317acfaf
|
|
| MD5 |
9c2519565db7e4b9e236f851c3cc25b4
|
|
| BLAKE2b-256 |
891f247d6d1a03cd44c81940496d5ffd18604cd30441189dc6b104672cde0c16
|
File details
Details for the file squiid_parser-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 176.1 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a576a751005eef6e06635d9594be578c55fe2ba1b58ee5b0339e91a0d3b5a2b7
|
|
| MD5 |
3bf015a405fa2f0cb4fe2f2958b0de97
|
|
| BLAKE2b-256 |
794cd4893cd5d3b0e3bd99dccd302a41ce4664f8b6c52f1bf227250e7fcc1ed7
|
File details
Details for the file squiid_parser-0.1.1-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75d0eb140fa3feef50e72e0be70a23b0b133338fb1e8ae62c886fc31b1c2c5f
|
|
| MD5 |
b36b0469ecc769a7a29ddfcd1f006d27
|
|
| BLAKE2b-256 |
b8fd8d3a4ae8cd2740bf4289dc50e5ef047fcb5dd3e9d0baf0056a37bbdab1ea
|
File details
Details for the file squiid_parser-0.1.1-cp311-cp311-win32.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp311-cp311-win32.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.11, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc9de48a795b5ddb4f9d309cc53fdf8386dcf26b2d82370073771258d27090b
|
|
| MD5 |
97ab4141c429ea767f57284df61faa59
|
|
| BLAKE2b-256 |
da26b756ba8a881af165e67107219e23630a38a36a0aa57f127b5d8eee6a4352
|
File details
Details for the file squiid_parser-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 264.7 kB
- Tags: CPython 3.11, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2637e045113c8706c170fb4443ab069b0f15272603d352c59f94d4b8e1a12b83
|
|
| MD5 |
f7d58a057d7c343a23e06bd3e4ca9fa9
|
|
| BLAKE2b-256 |
4f2f859b6d627ace71f70aed491d203ebf1006848a775a75648ca0b5bde56c5a
|
File details
Details for the file squiid_parser-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 202.5 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e3291970f13fbdea24e07a03d2a706f9bd4b91555bb2d00dc71052c051cae07
|
|
| MD5 |
45b979f3f409b745ad7a40ce04cedc95
|
|
| BLAKE2b-256 |
68f85e6a3c8ddebe60808db2319f238d5b138e78afc3453d613359648dbb2af2
|
File details
Details for the file squiid_parser-0.1.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 176.1 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
721fe91c571d201c996eb479fa29321c3d52b92eaf0dd04f71517179aca3c2b5
|
|
| MD5 |
b3299c1de8a48a3ff6d0b2a30ca0abbb
|
|
| BLAKE2b-256 |
ad3a8bfb4a3089c370356df32b36bc54b46a002770134f56bb893a6e4dacc6e3
|
File details
Details for the file squiid_parser-0.1.1-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd810850f1393dc9c5d911f62a693c34afe8932072f5d7dece6ae87cdef6676e
|
|
| MD5 |
24372d9d5856b5575c4d5dae90a63c0a
|
|
| BLAKE2b-256 |
c39893be055ac5fb74c0aa3028f8681d8e031e64152d6c7d55fea59e92244677
|
File details
Details for the file squiid_parser-0.1.1-cp310-cp310-win32.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp310-cp310-win32.whl
- Upload date:
- Size: 99.5 kB
- Tags: CPython 3.10, Windows x86
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13eccdd56a978b65d1f15d431dd5c475e0140f921ab6015ced9f006a9ed5a46a
|
|
| MD5 |
4797f11d28b2c2c60aa3bad6c88fd661
|
|
| BLAKE2b-256 |
4c6bbe18bf5156db3de341f7ae5403b349969558cf79d31f17dc33e87c5f0a7f
|
File details
Details for the file squiid_parser-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 264.7 kB
- Tags: CPython 3.10, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96823405b8713efa617220e0631e318f1e1ee2b460b30a4d28eee6096eed5a48
|
|
| MD5 |
70a1a5623cc174a71fa7cba5df7f6f9b
|
|
| BLAKE2b-256 |
1f4ff5eb883026a8768366958ec3542652e49dcd4e7632eb8e369f4af94bc3ff
|
File details
Details for the file squiid_parser-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 202.5 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b372ac7834a30c39d7875438b9ea6f64ec8bb9b6803eba59b67b110ee1c331ab
|
|
| MD5 |
8c34c6afd077246552bd269d626f07c9
|
|
| BLAKE2b-256 |
916763b31b3ac2f472e0ed544a4a68f61ef907ba5b06c84bce655e6a6e883cfd
|
File details
Details for the file squiid_parser-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_parser-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 176.1 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d1bcc88c68353d84698bd6de6bb8811f2d45a5e2502689ee36847debc3ec4967
|
|
| MD5 |
2059b47244bbed1b70d5697570cad8e2
|
|
| BLAKE2b-256 |
6e0ebebd6d6387e0a938483dcd107adc8ac3a5fb3879866be5f979254572de64
|