Skip to main content

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.

Metadata

Release files for text2code 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for text2code 0.1.2
File Size Uploaded
text2code-0.1.2.tar.gz 7.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for text2code 0.1.2
File Interpreter ABI Platform
text2code-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.5 kB

Release files / text2code-0.1.2.tar.gz

Download URL text2code-0.1.2.tar.gz
Size 7.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ab6e28b0df7724fe69c244d275d79073369eefb4767bb4e0fdebd55ea3ca4b8b
BLAKE2b-256 checksum
How to use checksums
e9073658a22573c3a38a0f6f3be92855f0e16076cd5a8cedf5bceef5c2cc5925
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / text2code-0.1.2-py3-none-any.whl

Download URL text2code-0.1.2-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ae0302e9453d849c5224665aa51ffc9fc4b8272512dc3f75c4b3aff525f133c
BLAKE2b-256 checksum
How to use checksums
eedfc538a3a7ee11ccbfb64e73571a6f602738ad1efe16dce87902e22c9c5b77
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page