Skip to main content

Python file analyzer

Project description

kojak

Build Status PyPI PyPI - Python Version PyPI - Status

Python projects analyzer

kojak is a development tools that help you to get informations about a given python file and to get a big picture of this one like all the module classes and all the module classes functions members.

kojak retrieve informations from python projects by using the python abstract tree syntax (AST).

Warning

Really young project with poor functionalities for now.

Features

  • Get classes and methods
  • Get functions from python modules
  • Get list of imports

Install or Update kojak

$ pip install -U kojak

Usage

$ kojak <path to your python file>

List imports by the module:
        -Import argparse
        -From sys import exit
        -From kojak.utils import get_classes

List classes by the module:
Class1
    - method11
    - method12
    - method13
Class2
    - method21
    - method22
    - method23

Future improvements

  • add the possibility to do a recursive of the whole files of a given project
  • inspect from the stdin
  • add the possibility to scoping an object or a given method or function

Contribute

If you want to contribute to kojak please first read the contribution guidelines

Licence

This project is under the MIT License.

See the license file for more details

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

kojak-0.3.0.tar.gz (86.8 kB view details)

Uploaded Source

Built Distribution

kojak-0.3.0-py2.py3-none-any.whl (4.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file kojak-0.3.0.tar.gz.

File metadata

  • Download URL: kojak-0.3.0.tar.gz
  • Upload date:
  • Size: 86.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5+

File hashes

Hashes for kojak-0.3.0.tar.gz
Algorithm Hash digest
SHA256 145ffa41cc568d69c42bbabf93f79d9fc8f9f295f270516709d11e0fab2acac1
MD5 576e70ef203dc730e73173808ed11322
BLAKE2b-256 7a58e5d87c449fea66e989ede1c547b5c15ae72d1a46de7981033d7dca5d207b

See more details on using hashes here.

File details

Details for the file kojak-0.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: kojak-0.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.5+

File hashes

Hashes for kojak-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a32a7558e8252fbadca2267cc1b7a4128cb2b3b1bbbb5a697a744162274fbe05
MD5 3342e57b392069fc93dda0fbd9f8abdb
BLAKE2b-256 2e258b91340bf1f64680c74faa8805327817d9f0f6667bd5240dfeb92bd5cafe

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