Parses arbitrary strings and returns a dictionary
Project description
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.
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
text2code-0.1.0.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for text2code-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165681867758b6aa43dac454fef671a94e4175dd27d53eb098bfd9a422c5a241 |
|
MD5 | 282c9e8c2961b1605297c21078323f52 |
|
BLAKE2b-256 | 7eed03664d35ff708cf8fefa078fc3129dd8027f5b6779e59f60a1a6298d6470 |