Skip to main content

Parses arbitrary strings and returns a dictionary

Project description


Parses arbitrary strings and returns a dictionary.


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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for text2code, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size text2code-0.1.0-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size text2code-0.1.0.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page