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.2.tar.gz
(7.7 kB
view details)
Built Distribution
File details
Details for the file text2code-0.1.2.tar.gz
.
File metadata
- Download URL: text2code-0.1.2.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab6e28b0df7724fe69c244d275d79073369eefb4767bb4e0fdebd55ea3ca4b8b |
|
MD5 | ba5fdc331bf5d5f32d8ddd983245c7bd |
|
BLAKE2b-256 | e9073658a22573c3a38a0f6f3be92855f0e16076cd5a8cedf5bceef5c2cc5925 |
File details
Details for the file text2code-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: text2code-0.1.2-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ae0302e9453d849c5224665aa51ffc9fc4b8272512dc3f75c4b3aff525f133c |
|
MD5 | a68585d8c9aa1a4df4c9ab259f5843fc |
|
BLAKE2b-256 | eedfc538a3a7ee11ccbfb64e73571a6f602738ad1efe16dce87902e22c9c5b77 |