A package to implement spreadsheet-style functions in a safe way
Project description
stift
An awesome module for parsing strings to functions,
Parser
The par
Parser Example
from stift import Parser
s = r"""banana(apple,fruit(1,2,"\"yes\" or \"no\"",sauce[0]"""
parsed = Parser().parse(s)
# Returns the following:
# [
# [
# {
# "type": ParseTypes.function,
# "value": "b",
# "argc": 2,
# "argv": [(1, 0), (1, 1)],
# }
# ],
# [
# {"type": str, "value": "a"},
# {"type": ParseTypes.array, "value": "s", "index": (2, 0)},
# ],
# [{"type": int, "value": 0}],
# ]
Functions (WIP)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stift-0.1.0.tar.gz
(6.1 kB
view hashes)
Built Distribution
stift-0.1.0-py3-none-any.whl
(6.2 kB
view hashes)