Skip to main content

rustpython-ast PyO3 bindings using wrapper feature

Project description

rustpython-ast-pyo3-wrapper

Github repository: https://github.com/hhclaw/rustpython-ast-pyo3.

Overview

Publishes https://github.com/RustPython/rustpython-ast-pyo3, a python library for calling the RustPython Parser from Python.

This library has enabled the "wrapper" feature, so the returned AST parse tree will be using classes in the library rather than the Python native ast class to represent the ast. This allows parsing of code in say Python 3.11 with lower python version say Python 3.8, since some node types used in Python 3.11 does not exist in Python 3.8's native ast module.

Caveat

Due to the way the wrapper is written, objects of static lifetime are created for each run. This will "leak" the ast structures created (until the end of the Python process). Need to be cautious if this is used within a long-running server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

rustpython_ast_pyo3_wrapper-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

rustpython_ast_pyo3_wrapper-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

rustpython_ast_pyo3_wrapper-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

rustpython_ast_pyo3_wrapper-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

rustpython_ast_pyo3_wrapper-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

rustpython_ast_pyo3_wrapper-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.7 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 95d9c5c19231da241ccaf8ff057da28aac19a37caa23ec29e3f309ca03d984db
MD5 afd9ad8e6437756f48d3cd1449dd663f
BLAKE2b-256 e69964040b406075f5c42a5988e3fd04094cc70acfc56fa953e5874c1b6b64d7

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 862796e9a16f3102284fb1e2f26b318c7013eef2b634bad97c3c89e893ba8113
MD5 fe21887465eca0915f1c7b8ab99241f1
BLAKE2b-256 7d07f53852825327674634716e5101664dadf6a91a0c6b718d1f9e54898e3e01

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f3b633810307f6f5f22574478fef52d48ee3188e10fbf4733befc9ba463b5948
MD5 f35004a911af98ee14ab5a65be75752e
BLAKE2b-256 e013b55aff6abd1535b6b4cd93394d565abec355035baac84d4c3c620371ffd1

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f27440bfcaec7c3a7973dbecffed9f56d36a14f50a81292efbe2960400e17f27
MD5 4f2528ad372b1e778dea428925bd22d4
BLAKE2b-256 3f5477ac8270d36a0d596efac4734111c6bbd7ea7dfbe7987ad499a9651bcb99

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ec52a3a09c8c9bfe43e9558397db77db02edac7d800fc3246cc9ed9dbe6dd398
MD5 52b05ebc2dd5c7aec0e3665e6a0ca6ef
BLAKE2b-256 2a89828a0cf6ff325320de4cffbd8b8644444939db94fca9939cb3433d60fbf4

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c3b8a0a3f3f4f4ae15e735a0e67290049afe1a2e917e1fe21014349c7b826d3a
MD5 7172d8129e1f0fdca9c599ab1e335299
BLAKE2b-256 5ae7855b6178c1bc23f35f7f2559f7e7711856bcc5c84c1e205071884420dcd8

See more details on using hashes here.

File details

Details for the file rustpython_ast_pyo3_wrapper-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for rustpython_ast_pyo3_wrapper-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bcf1a9eeebb86a350ce21e842e6b12cf02c5a402cb2b31f10be3f3858ef4ecba
MD5 87856702282906e399aa5044cacbdcbd
BLAKE2b-256 49935061faba12cada6b64168104ec65d4f704167dc6e3690a695a0afad88ce3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page