Skip to main content

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)

Source distribution for synr 0.6.0
File Size Uploaded Provenance Actions
synr-0.6.0.tar.gz 17.3 kB Without provenance Details for synr-0.6.0.tar.gz

Built distribution (wheel)

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

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

Security for synr 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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