Skip to main content

ConAST is an AST extension that allows consistency between python versions (Py38+).

Project description

ConAST

AST extension (which name comes from const) that allows consistency between python versions (Py38+) and utilities like token / bytecode relation constructor.

Example

>>> from conast import parse
>>> parse("2+2")
Module(
    body=[
        Expr(
            value=BinOp(
                left=Constant(
                    value=2,
                    kind=None,
                ),
                op=Add(),
                right=Constant(
                    value=2,
                    kind=None,
                ),
            )
        )
    ],
    type_ignores=[],
)

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 conast, version 0.1.0a0
Filename, size File type Python version Upload date Hashes
Filename, size conast-0.1.0a0.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page