Skip to main content

List the content and structure of a Python project

Project description

Only tested on Microsoft Windows and Python 2.7

Docs and download: http://pypi.python.org/pypi/pyls Source code: http://bitbucket.org/tartley/pyls

Usage

pyls [<dir1> [, <dir2>...] ]

Produces a listing of the python project in directly <dir>, or else in the current directory if none given, in the following format:

package
    subpackage
        module1.py
            ClassA
            ClassB
        module2.py
            ClassC
    module3.py
        ClassD

Known Issues

Pyls works by importing every module it finds in the given directories, and enumerating the classes defined by importing that module. If you are doing anything cleverer than defining static classes in regular modules, then pyls will probably barf on it.

Todo

  • classes and functions exposed by a package (i.e. imported or defined in __init__.py) should show up in the output

  • Test on Ubuntu

  • Pester someone to test on a Mac for me

  • Python 3

  • accept command line directories specified as relative dirs (e.g. ‘..’)

  • List module-level functions too.

  • Some way to differentiate classes from functions? e.g. func() or “def func()” and “class ClassA” ?)

  • optional colored output?

  • optionally list class methods?

  • compact mode, that lists classes in a module on the same line?

Thanks

To Susan for putting up with my googly-eyed coding frenzies.

Project details


Download files

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

Source Distribution

pyls-0.1.2.zip (12.6 kB view details)

Uploaded Source

File details

Details for the file pyls-0.1.2.zip.

File metadata

  • Download URL: pyls-0.1.2.zip
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyls-0.1.2.zip
Algorithm Hash digest
SHA256 7ef4d77b175bc2c89f0f6131d9a7ab13325d4453625e3375cd480bd0eb36774c
MD5 3f5ba8845cdd0acdf270628df2cb00e9
BLAKE2b-256 8f55d2bd779a02d1a1638781369afa03253452e1bf39db90762932c397e55321

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page