astspy
astspy (Abstract Syntax Tree SPY) is an open source command line tool to extract information from Python source code files.
astspy can be used with Python 3 and 2 code, but make sure to analyze files from each version in their respective environments.
Features
- Print the names of classes and functions found in the file
- Calculate an aproximation of the number of lines of code of each class or function definition (sizes)
- See what functions or classes have docstrings
- Print the locations of the definitions in the file (line numbers)
- Get stats from the sizes of the definitions
Installation
You can install, upgrade, and uninstall astspy.py with these commands:
$ pip install astspy
$ pip install --upgrade astspy
$ pip uninstall astspy
Help
To get help use:
$ astspy -h
Metadata
Release files for astspy 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| astspy-0.0.3.tar.gz | 2.7 kB | Without provenance | Details for astspy-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astspy-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for astspy-0.0.3-py3-none-any.whl |
Total release size: 6.6 kB
Release files / astspy-0.0.3.tar.gz
| Download URL | astspy-0.0.3.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c765f5a8b4c16d6fe07c801cbd38c386b2264dab55659f584b4b1c885e96755a
|
|
BLAKE2b-256 checksum How to use checksums |
e63808d13b42357d685cdb1d057afd93ee9fc7075ca8c0b33b7f3143cd2111d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / astspy-0.0.3-py3-none-any.whl
| Download URL | astspy-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1c75b2d4ba0ca052fe38e21c29ea0b57138322abe27929521cf411f354fa45
|
|
BLAKE2b-256 checksum How to use checksums |
f2a644d10de1ebf15eebeb5602f11f6c08471a1d516f0f311aaba2d81df2b12f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for astspy 0.0.3
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.