Skip to content

chrisnorman7/text2code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text2code

Parses arbitrary strings and returns a dictionary.

Usage

from text2code import text2code as t2c

d = t2c("""
def f(x, y):
    return x + y

def a(b, c):
    return b + c
""")

The result of this code would be a dictionary with 2 keys: f, and a, both of which would be the functions defined above.

About

Parses arbitrary text strings and returns dictionaries containing python variables.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages