Skip to main content

Squiid Engine Python bindings

Project description

Squiid Engine Python Bindings

codecov

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

squiid_engine-0.4.0.tar.gz (40.7 kB view details)

Uploaded Source

Built Distributions

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

squiid_engine-0.4.0-cp313-cp313-win_amd64.whl (754.6 kB view details)

Uploaded CPython 3.13Windows x86-64

squiid_engine-0.4.0-cp313-cp313-win32.whl (754.6 kB view details)

Uploaded CPython 3.13Windows x86

squiid_engine-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl (958.3 kB view details)

Uploaded CPython 3.13musllinux: musl 1.2+ x86-64

squiid_engine-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (896.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.17+ x86-64

squiid_engine-0.4.0-cp313-cp313-macosx_11_0_arm64.whl (755.1 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

squiid_engine-0.4.0-cp312-cp312-win_amd64.whl (754.6 kB view details)

Uploaded CPython 3.12Windows x86-64

squiid_engine-0.4.0-cp312-cp312-win32.whl (754.6 kB view details)

Uploaded CPython 3.12Windows x86

squiid_engine-0.4.0-cp312-cp312-musllinux_1_2_x86_64.whl (958.3 kB view details)

Uploaded CPython 3.12musllinux: musl 1.2+ x86-64

squiid_engine-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (896.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

squiid_engine-0.4.0-cp312-cp312-macosx_11_0_arm64.whl (755.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

squiid_engine-0.4.0-cp311-cp311-win_amd64.whl (754.6 kB view details)

Uploaded CPython 3.11Windows x86-64

squiid_engine-0.4.0-cp311-cp311-win32.whl (754.6 kB view details)

Uploaded CPython 3.11Windows x86

squiid_engine-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl (958.3 kB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

squiid_engine-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (896.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

squiid_engine-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (755.1 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

squiid_engine-0.4.0-cp310-cp310-win_amd64.whl (754.6 kB view details)

Uploaded CPython 3.10Windows x86-64

squiid_engine-0.4.0-cp310-cp310-win32.whl (754.6 kB view details)

Uploaded CPython 3.10Windows x86

squiid_engine-0.4.0-cp310-cp310-musllinux_1_2_x86_64.whl (958.3 kB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

squiid_engine-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (896.3 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

squiid_engine-0.4.0-cp310-cp310-macosx_11_0_arm64.whl (755.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file squiid_engine-0.4.0.tar.gz.

File metadata

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

File hashes

Hashes for squiid_engine-0.4.0.tar.gz
Algorithm Hash digest
SHA256 a7d4289390685b6bb6e3c0f1256f1eab244638ce10a487386ce9542c9de5c394
MD5 035661081a4fbae7fc2224102d795a3f
BLAKE2b-256 1132f84e2e7876cdbe1986753af64d537b9019eac5f42e57be47ae2eec6cfb17

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e2bbb33878247bcf8a2ec21898796db1aa7a07ed3e22d30d50018401432ce07e
MD5 3cfb9e20c1b74ee27ebb30da228958c5
BLAKE2b-256 755d057b858430d571ebe51a64fd2b672d40fad50e112b35743a6cd6c60e2337

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp313-cp313-win32.whl.

File metadata

  • Download URL: squiid_engine-0.4.0-cp313-cp313-win32.whl
  • Upload date:
  • Size: 754.6 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_engine-0.4.0-cp313-cp313-win32.whl
Algorithm Hash digest
SHA256 0743f427dddd0846f135d1edad41955628b2b53478d57bd5ecf48a6f8552dd11
MD5 8eabd18c3079e07f352afc307af498ef
BLAKE2b-256 7233f4b6a6c88e1b0dc50ec7f232ffde3df1cf594fbdd6e8ea9110b7c4c60013

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 2e4ba9f336c26bb2c52691a5886c83cbc3f4bf155aa9d5c8a656dbfdee06e5ab
MD5 9bc4842d90c11fa8281872aea2065e3a
BLAKE2b-256 57fee4ff796ff1e8edb7200bae9be8350a4b157ac54ad20236ba3cdf478616d6

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 46f527b418c017caf07b8d3fe59d93691bf878869a0e3aad065d10a8edc1c106
MD5 e6280dafbfdaffb3cafe103aaf58394d
BLAKE2b-256 c6c3ef84ce80c096c09fb22bc5edc0e84ffad5c6efbf95bfcbcad0d3cff1d344

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 443652662cfaae99ea877d1dbb7cb880b0339a208315d41e02128fde8ee8ffe4
MD5 61e6bdca0f093c39469938b93ecac1a6
BLAKE2b-256 bc59abffc81f492d4b36779dcda4c8608d9e770d07b0fd62cd5dcbe3852f8492

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 633dffd380e492b552feff21d4fe8a1873d47011de3500256bcbd6fdc25bad6c
MD5 ee68308427bdb9f124a9ab6a67c3c692
BLAKE2b-256 f3482f57a7f5f914517db5c2f4ce45309ccd25e0d7e898064f2d790941be7ac0

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp312-cp312-win32.whl.

File metadata

  • Download URL: squiid_engine-0.4.0-cp312-cp312-win32.whl
  • Upload date:
  • Size: 754.6 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_engine-0.4.0-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8cae623a9bd1353d3b3851cce12319178fca6a964e3a08b72f824a4a1f796cb0
MD5 591041b464052743fff14677035f718d
BLAKE2b-256 84a3a08106b92ab67e10e6fceee7b9ee2cae5b8ce411ddca97f90a9ef084e6d9

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp312-cp312-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 0bdaaa9b1465cd0c6cc69e0d79678c1191420e963792a880cc128d2793689413
MD5 ee501c89270352dcd277c6576808322b
BLAKE2b-256 cbc242ebaa94781b6cad51bdbd9c95a5461052d59a014ca526e169dd77695dad

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5ec12b1d4ce82b5fbcc6e015d2fe4e1cea2a55655432ab7c814a59011dc863f3
MD5 71a923dff00c91a9b99b66af5318ea71
BLAKE2b-256 8208dceab3d61336aa56b1d4e2249349340f701d1907430e873b426c504aa629

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d3174d88b17c561634b4490450f49f9dea542db4f5f0ae1ea9ea7f666c3ae93
MD5 f222eb2079842a95a9561c28dd5bec31
BLAKE2b-256 bc617c2d309ec1c343572d9062bbca38107e99702721c7b0057fd793431d6484

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 1d54f0764cd801149bee79f4fe847a84377b9a8057e0f7f0bbb8c9f181999895
MD5 6915dfc3e4554fba5613efb63631473f
BLAKE2b-256 14fc6927a161ff6dba7c409634aa90bfb324da6db08e95ff3b428ac00e0fd3ca

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp311-cp311-win32.whl.

File metadata

  • Download URL: squiid_engine-0.4.0-cp311-cp311-win32.whl
  • Upload date:
  • Size: 754.6 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_engine-0.4.0-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c922021b6a66be0809ea07c6ffb18e3cbf42230764175a9d7185563943bd83dc
MD5 3db4b83996ac86b30455206910462183
BLAKE2b-256 1aa99c0c82679c29e125a63cafe726d4925fba8d8d771a422f5c6bb77826e837

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 95285a81e86cb623026c5e089b76320e590241a35eaa781ecc9b0d15aed954ba
MD5 d544aa2a6dd6494abfafbce9cea71212
BLAKE2b-256 8a186d471805b8eafcd5415a19b25347b7f7169447e7adc94a936aaa57a4d3c4

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cb8a8ecc717428b2365c65a7990116fc658c7cc0adda75435d7f272f65597b29
MD5 50721a66a30670f3e1ada1d2f0418a1b
BLAKE2b-256 4d1b147659a16f57644a890fb866931f9e449fbd508522c270c7207b392775e2

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f9e59f00eaf377cb5d889a9a92c94f68e3e3c34ad429df383306b0294b3724c
MD5 2562a1a88a93a91b1adecf86274f7a73
BLAKE2b-256 bd6eb9cd03718694a4f0796826135497f5b667c430a1313d98df834f659d0c07

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5acb16af87c734a9fe9c2a4f69505010098eea6da3f27489966a027a629143fd
MD5 d580d210a642bfefb5f10dfd37668fbb
BLAKE2b-256 e84d9dca27abef25a3020180f9359599f2a50f9a04237b3e38982b4a472d948f

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp310-cp310-win32.whl.

File metadata

  • Download URL: squiid_engine-0.4.0-cp310-cp310-win32.whl
  • Upload date:
  • Size: 754.6 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_engine-0.4.0-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cb08e7e7a92608bd2bb084d56b8aeccf2004a6697573aff71da4062bf176e042
MD5 211811c673dbe5a9f3449c55aefa1bb6
BLAKE2b-256 43b48d273250cf1e12737c9c2e09ac568b80c3e68dd1e6771bb9df40cd51e6aa

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7ba0f3a5002e9f0c72e058eb030862ea58e93af066ea646d81e1f392cad5beec
MD5 1cf8072e758cb4d0aec095a896e8f718
BLAKE2b-256 762944b639e2715e26debc54bcbb231b5eb006e2ad6dd33c3e66d83d39f1009d

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 39903affae7625bd3b09135a18bb9cca4bd08dc987470f8a46ae591b9ae1f4ff
MD5 794b4a1bf52b3724c95c4bd7823b4117
BLAKE2b-256 f6d65c11ce128bd52719c54de6f3e4d33a5ce889357edbede80f4bbddd2a6fa7

See more details on using hashes here.

File details

Details for the file squiid_engine-0.4.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for squiid_engine-0.4.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 335a72404951de99b433678ed695c613e8c1aadddd0624d62edf821f3179e127
MD5 8428817b1e06ff349f9e1571bc94627f
BLAKE2b-256 13bddd833dc157d256cfdf1962ba607cbb9d70bbb3036bf507e0e6aef436a3e1

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