Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/avalentino/pydepscan
- Owner: avalentino
- License: apache-2.0
- Created: 2023-09-02T06:58:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-09T19:50:39.000Z (5 months ago)
- Last Synced: 2024-08-09T21:07:55.545Z (5 months ago)
- Topics: dependency
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: NEWS.rst
- License: LICENSE
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 athttp://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.