Skip to main content

ast_names

Collect top level variable names using the ast.

Installation

pip install ast_names

Usage

>>> from ast_names import ast_names
>>> ast_names("""
... import sys, os
... import sys as foo
...
... from foo import (
...     bar as baz,
...     alpha
... )
...
... MYCONSTANT = 1
...
... def my_func():
...     ...
...
... class MyClass:
...     ...
... """)
{'os', 'MYCONSTANT', 'alpha', 'baz', 'foo', 'sys', 'MyClass', 'my_func'}

Metadata

Release files for ast-names 0.1.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 ast-names 0.1.0
File Size Uploaded Provenance
ast_names-0.1.0.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ast-names 0.1.0
File Interpreter ABI Platform
ast_names-0.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.6 kB

Release files / ast_names-0.1.0.tar.gz

Download URL ast_names-0.1.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
df4f1a8f7091dae3b4597e4936cbdc3e22400546a0365c77a15100b967b2d3a9
BLAKE2b-256 checksum
How to use checksums
29b556991d82cd118c7125e6911b4e7b5b6ce20168924c152944c2b446f5d3fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Release files / ast_names-0.1.0-py2.py3-none-any.whl

Download URL ast_names-0.1.0-py2.py3-none-any.whl
Size 3.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
f7e98ae8a481bc5a22103d0ad1f6bf9d8683414c6b1af29cfb4175423ae8b39a
BLAKE2b-256 checksum
How to use checksums
4e0de8f13bf31caf622b5a47fa2947cacb1ef9afe5f0303c562059b7edd5ba8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.10

Security for ast-names 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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