Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avalentino/pydepscan

Dependency scanner for Python source code
https://github.com/avalentino/pydepscan

dependency

Last synced: about 1 month ago
JSON representation

Dependency scanner for Python source code

Awesome Lists containing this project

README

        

PyDepScan - Dependency scanner for Python source code
=====================================================

About
-----

PyDepScan analyses Python source files looking for import statements and
produces lists of mandatory and optional dependencies.

Optional dependencies are the ones for which the import statement
is executed under some condition (e.g. included in an `if` statement
of `try`/`except` block or within a function).

To determine optional dependencies a quite simple heuristic is used,
hence there could be cases in which the result is not fully accurate.

Results are always sorted.

Installation
------------

The tool can be installed using `pip`::

$ python3 -m pip install pydepscan

Usage
-----

PyDepScan provides a standard Command Line Interface (CLI).
Please refer to the help message for details about the usage::

$ pydepscan --help

License
-------

Copyright 2023 Antonio Valentino

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.