Skip to main content

Simple Formula Parser

Project description

formulite

Simple formula parser

FormuLite is the simple formula parser.

INSTALL

pip install formulite

HOW TO USE

from formulite.calc_parser import parser

text="f(x)+g(x,y,z)*5"

par = parser(text)
print(
    par.resolve()
)

# polish notation
# return <function name>[<args>,[,]]
# return +[f['x'], *[g['x', 'y', 'z'], '5']]

LICENSE

MIT

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

formulite-0.0.4.tar.gz (6.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page