Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Abstract Syntax Tree SPY

Project description

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

Project details


Download files

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

Files for astspy, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size astspy-0.0.3-py3-none-any.whl (3.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size astspy-0.0.3.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page