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 details)
Built Distribution
File details
Details for the file text2code-0.1.0.tar.gz
.
File metadata
- Download URL: text2code-0.1.0.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1c799e1e51c31198583e059c5bb55d16809cdb9055bce192f83f4147a86c64 |
|
MD5 | 7df0b4e99d0b01cb3c1bd0d0f65c5a92 |
|
BLAKE2b-256 | 06f8f46b5f0f1d3917a93a4608f1dea4972dd92d8e151b3eb0fd474a73b6adee |
File details
Details for the file text2code-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: text2code-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 165681867758b6aa43dac454fef671a94e4175dd27d53eb098bfd9a422c5a241 |
|
MD5 | 282c9e8c2961b1605297c21078323f52 |
|
BLAKE2b-256 | 7eed03664d35ff708cf8fefa078fc3129dd8027f5b6779e59f60a1a6298d6470 |