Skip to main content

certainPY

Be certain with your uncertainty!

certainPY is a library/webapp for evaluating equations utilizing measured data points. It produces answers with automatic error propagation, and allows for the generation of its evaluation's steps as ready-to-use LaTeX equations.

The library for doing these calculations and LaTeX productions is found under /latex_extension, which expands upon the MeasuredData class of the PhysicsTools library to allow for all of this extra functionality. But worry not-- no knowledge of Python nor of how to use this library is needed to reap its benefits! Using Google Gemini, we have created a frontend which can parse any arbitrarily-provided equation and variables, producing valid code which is evaluated and clearly displayed, all through the webapp frontend.

All the code for interfacing with Gemini is located in /llm_interface, with the rules for parsing in the json_arsing_rules.txt file. Gemini parses the expression provided to create a JSON file containing a classical Python equation and a list of variables. By ensuring Gemini only handles technologies it knows well, we reduce the risk of incorrect parsings to almost zero. Once the parsing is done, the evaluation is done fully in good-old handwritten code, ensuring that all calculations are as correct as any calculator could get them. Thus, one can worry free have the convenience of AI, paired with the reliability of predefined computation.

Connecting the two is our Flask application and glue scripts, found in the root directory of this repository, along with parts in the static/ and templates/ directories.

Metadata

Release files for certainpy 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for certainpy 0.0.1
File Size Uploaded
certainpy-0.0.1.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for certainpy 0.0.1
File Interpreter ABI Platform
certainpy-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 48.8 kB

Release files / certainpy-0.0.1.tar.gz

Download URL certainpy-0.0.1.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04c55fa8cefd0bd2dbdd6f7c1c94ec86f843ea7b62f7d56b43f1d1888f027a81
BLAKE2b-256 checksum
How to use checksums
22f02a0c4f1d1a29585e2534e44a1eccffd43407e6b0c43f0a29ff0f87d0621b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / certainpy-0.0.1-py3-none-any.whl

Download URL certainpy-0.0.1-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
210306169ae8ac971513099377fbc507fbda1f6be094fc29caaed5cc9b66e80f
BLAKE2b-256 checksum
How to use checksums
cae202defe78dfbb43cf29fe51344d1764b1ee953fff08ff962f009af4d590a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page