Squiid Engine Python bindings
Project description
Squiid Engine Python Bindings
Python bindings for the engine portion of Squiid calculator. The engine is the portion of the calculator that actually does the math. This only understands RPN/postfix notation.
More documentation is coming soon, however the source code is strongly typed and well-documented.
Simple Demo:
import squiid_engine
e = squiid_engine.SquiidEngine()
# this accepts an RPN array
# if you want to accept algebraic input, you can use squiid-parser to accomplish this
res = e.execute_multiple_rpn(["3", "5", "7", "multiply", "add"])
# this should be called after each full expression is run
_ = e.update_previous_answer()
assert not res.has_error()
stack = e.get_stack()
assert stack[0].value == "38"
assert stack[0].bucket_type == squiid_engine.BucketTypes.FLOAT
This demo can also be found in this directory
Also see squiid-parser for parsing algebraic statements into RPN statements to be used in these bindings.
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_engine-0.2.0.tar.gz.
File metadata
- Download URL: squiid_engine-0.2.0.tar.gz
- Upload date:
- Size: 30.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 |
89f2df0eef05021e855ffce73fce505d80d5ca6cfd85a8d814493780e23d90d7
|
|
| MD5 |
eaa23e50ed4551aab9521b439e6b3ece
|
|
| BLAKE2b-256 |
b35513ba2dd3c31bc0cce46e77b7fb33eb96490b3eba6c338bbcaf3a9b34b999
|
File details
Details for the file squiid_engine-0.2.0-cp313-cp313-win_amd64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp313-cp313-win_amd64.whl
- Upload date:
- Size: 757.1 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 |
db669364403e8202ae9dc3fee1bc60afcaa68b7970b49cb080f2f495a8deab6a
|
|
| MD5 |
44a33f2298790aa203e891c5ea87ebc0
|
|
| BLAKE2b-256 |
e4f9211e9995f05f0320df57f30112a5ac78223826d1997655ca4b0d4d6d020e
|
File details
Details for the file squiid_engine-0.2.0-cp313-cp313-win32.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp313-cp313-win32.whl
- Upload date:
- Size: 757.1 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 |
18ce9bd119091af3c41a2f90ca35e117908e7542d8fbac1b8f3e7728127b6bba
|
|
| MD5 |
d3288c58d4ce23fc0d4426430ee56113
|
|
| BLAKE2b-256 |
669c04ba8ef549c60f5d60f6f5e40e6f129cb6b65a785c88b5f83651847ca370
|
File details
Details for the file squiid_engine-0.2.0-cp313-cp313-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp313-cp313-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 965.4 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 |
8b580a0cf1f3097e318364e172078bd8137c22cd86d7b701e27165d06b0065ea
|
|
| MD5 |
a4493db69c0b8b0e7cedace3c5f9654e
|
|
| BLAKE2b-256 |
37953cc20dc610be8a156dedb38fb5a572ae8a31f9111a50a6ed574f3445cc7d
|
File details
Details for the file squiid_engine-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 903.1 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 |
94faf58c6dbe832358864e0fc22a1783834eb925adbc424a901250706fdfdd56
|
|
| MD5 |
6ba8011f89792b8bd96f2f5de8a4a779
|
|
| BLAKE2b-256 |
7fa2c95d485692d06b5b6b449d4995eba30d5af564493ee12e2841b7144b9a37
|
File details
Details for the file squiid_engine-0.2.0-cp313-cp313-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
- Upload date:
- Size: 748.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 |
332f7e4ed05039240c2af3d215cbd6b6b4604ca2ee49eef7eeb068a07245e621
|
|
| MD5 |
a0fa7901165f1cf61b88ae2fd384c2ca
|
|
| BLAKE2b-256 |
a3fa86c3222a683a0fc3e875a43b29e500a8fc6b18b92e3e58cece4f4a16c5e9
|
File details
Details for the file squiid_engine-0.2.0-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 757.1 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 |
8a857b778acf23d3f3aa6276f6ead407ca5f5acec7676fced595c223786fbbd7
|
|
| MD5 |
09d0aecd2a46b4e955238496b8418b52
|
|
| BLAKE2b-256 |
fb1151586b7a4c31231478cb6f6b9e9a57350792906954a7244ef9beb2c2f157
|
File details
Details for the file squiid_engine-0.2.0-cp312-cp312-win32.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp312-cp312-win32.whl
- Upload date:
- Size: 757.1 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 |
5b0fbe3b601e2d85fb75d89469069f14a22760ac6c4305c225c9e9dc3f42f1a8
|
|
| MD5 |
c442c287e70486fa5f6b6251eecb6988
|
|
| BLAKE2b-256 |
add7704e46c494d9e6c3e118ac996c57cc89577bf0e555ac43296a78b57610a1
|
File details
Details for the file squiid_engine-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp312-cp312-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 965.4 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 |
772f011ded279a5b6113a1abb4a28f1321848031288199c6f62fca37f9e80bfa
|
|
| MD5 |
ebe6b4083baa7a952049e58787f9664d
|
|
| BLAKE2b-256 |
8f5ac64bbfcf5c3e6781596868dcd9445e73e2adf59c2fe50be3954d74c14708
|
File details
Details for the file squiid_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 903.1 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 |
57faedaf0c953e18bbaffb1b1dbb12e511358c798bb522d553caccf961ffe724
|
|
| MD5 |
4b50b2cacd5b519845bff615ce601875
|
|
| BLAKE2b-256 |
5fdead3df9359ef71a226786fbb831e715794e72cc9ba5c9bd86c479834dd402
|
File details
Details for the file squiid_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 748.2 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 |
854e8d9f029013dc46fc2f23c1bd859afb5ca7705ab2f06a7eb8ad4e78cb0df2
|
|
| MD5 |
2a7d0708ee22fcc9460bb01bfae2833b
|
|
| BLAKE2b-256 |
be72168a9e5ee6c924d5242003038f9eb272004faef592cf83a6be89b1bdfa97
|
File details
Details for the file squiid_engine-0.2.0-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 757.1 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 |
bd6ddb6f80af52ca6010613b828c225f3e077beccce50ca284a3751b621391cc
|
|
| MD5 |
ef06ce2ec425b0761a1bd68513bcb48f
|
|
| BLAKE2b-256 |
4df5a852c3a48e7cc3ece5b11454e2623754879a73497ea181989c53a41057b0
|
File details
Details for the file squiid_engine-0.2.0-cp311-cp311-win32.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp311-cp311-win32.whl
- Upload date:
- Size: 757.1 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 |
6be805d57d7fa53b1c12dca8c7abafe0616f607c3512cb1248973996a9e5f41c
|
|
| MD5 |
ce706f43fc907220915f49d609293fab
|
|
| BLAKE2b-256 |
20461c7b9aa19fb4a9b2f61894a609bc75ce6b5b7eeecfd498e0160c144ee618
|
File details
Details for the file squiid_engine-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp311-cp311-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 965.4 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 |
5b3f1bd56679547bd399864a610857db844d9088af9935784ff48be3a6a4c12d
|
|
| MD5 |
0b2ea3fe010246bfed9cce11a51fd302
|
|
| BLAKE2b-256 |
3a3c8f9fe67faa4973b2bc7890ca9f1579bfbdc9e5e430a6a2cfc6d32b854dd0
|
File details
Details for the file squiid_engine-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 903.1 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 |
e49fcfba93c8edd685715a2cc856bd3bb68a9e4227a2acae4456992057294df8
|
|
| MD5 |
2b0385b796bde4d46c9a459182f375ca
|
|
| BLAKE2b-256 |
bf2a614a32a1509cc06843799f3306818d105400f3f71999a9c84891417bde8a
|
File details
Details for the file squiid_engine-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 748.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 |
31b78a23d03193f8dcb4919bf657cc811f8f517142e74311586e673b91f3b631
|
|
| MD5 |
52f5a63e702f15cb57880181df47c291
|
|
| BLAKE2b-256 |
cd395a88bc032dc11f3464e656daf698e86185498a6792dc1e8075bcb88f87a6
|
File details
Details for the file squiid_engine-0.2.0-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 757.1 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 |
98c64279cc163470655899e562f47885c3b3300d4b0dfc9ed8ca8e9b71d54954
|
|
| MD5 |
9290f601dd797da5fec697ff8b3f9722
|
|
| BLAKE2b-256 |
968238544820db284a7401d75b21641003686932d316da7fa967c1bf3640c034
|
File details
Details for the file squiid_engine-0.2.0-cp310-cp310-win32.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp310-cp310-win32.whl
- Upload date:
- Size: 757.1 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 |
052e2da59968394c9768d2e8ee35b673f3b67cb8e641e66032cbfd658f4e992f
|
|
| MD5 |
a8de875eae22473de995b5c5fcc66b4c
|
|
| BLAKE2b-256 |
cfe66e06b47a81b002cd3e3766247dcd50b592229fe6bf960c066458a8e6d537
|
File details
Details for the file squiid_engine-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp310-cp310-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 965.4 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 |
31d0440019f2b637e997b32832398a07700867f98af253339ceedeca0887da31
|
|
| MD5 |
0c0d4b67514bbef579b12d6f1f81e2cf
|
|
| BLAKE2b-256 |
2c30ec55b06564434fc0636df9ff378e1835813ed972147f8ea57d657dc1c24d
|
File details
Details for the file squiid_engine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 903.1 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 |
3b5f6ab953d4f6ce72801506e8d3b77f06f4c25e35ded08dcfc282153d7c1890
|
|
| MD5 |
fdb78a72c849ce5beb9b5424af1b1d44
|
|
| BLAKE2b-256 |
632ec997e0953a495fdbb19276136710b18219e971fe826c66f28917bd7cb362
|
File details
Details for the file squiid_engine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: squiid_engine-0.2.0-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 748.2 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 |
2d1c5d0353afcac6dc0ae61e42a82c86fc9ebe76c644602cd1755ee08e7fb1ea
|
|
| MD5 |
360b80d87075b29249d1d6cf38d93bce
|
|
| BLAKE2b-256 |
b41ac0764e18c1b746ee2310d9738e1ea236472646150f357139b76efdf0f904
|