Synr
Synr is a library that provides a stable Abstract Syntax Tree for Python.
Features
- The Synr AST does not change between Python versions.
- Every AST node contains line and column information.
- There is a single AST node for assignments (compared to three in Python's ast module).
- Support for returning multiple errors at once.
- Support for custom error reporting.
Usage
import synr
def test_program(x: int):
return x + 2
# Parse a Python function into an AST
ast = synr.to_ast(test_program, synr.PrinterDiagnosticContext())
Documentation
Please see https://synr.readthedocs.io/en/latest/ for documentation.
Metadata
Release files for synr 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| synr-0.6.0.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| synr-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.8 kB
Release files / synr-0.6.0.tar.gz
| Download URL | synr-0.6.0.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b4e16b10c3988e1981e3372153a31956f74d86752eaaa55e8c4e7b7fe591e4e
|
|
BLAKE2b-256 checksum How to use checksums |
e75ed50c251e489a931db6d7ddeb39961e0e44561949e70dfdece0b063763f3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1021-azure
|
Release files / synr-0.6.0-py3-none-any.whl
| Download URL | synr-0.6.0-py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9399b27d9f21c5d439eae92e0159d6f521cc396d27149ac45473012a205a3c30
|
|
BLAKE2b-256 checksum How to use checksums |
465e0e5e6780784907acf88ce92095831f9b6e99bbfffb0a2356ddf13967df5f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.8.12 Linux/5.11.0-1021-azure
|