From 8af6c31d6f5cc62f5db0d7841ff3dbadfe61d88f Mon Sep 17 00:00:00 2001 From: Priyanshu Sharma <2k24.cs1m.2414238@gmail.com> Date: Thu, 21 May 2026 19:11:29 +0530 Subject: [PATCH] Add python-inspector usage example #300 Signed-off-by: Priyanshu Sharma <2k24.cs1m.2414238@gmail.com> --- .../python-inspector-project.rst | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/docs/source/aboutcode-projects/python-inspector-project.rst b/docs/source/aboutcode-projects/python-inspector-project.rst index af4e5748..15c3f14f 100644 --- a/docs/source/aboutcode-projects/python-inspector-project.rst +++ b/docs/source/aboutcode-projects/python-inspector-project.rst @@ -25,3 +25,34 @@ The goal of python-inspector is to be a comprehensive library that can handle every style of Python package layouts, manifests and lockfiles. - Get the code at: https://github.com/aboutcode-org/python-inspector + + +Example Usage +-------------- + +You can use python-inspector to resolve dependencies for a package. + +.. code-block:: bash + + pip install python-inspector + python-inspector analyze requests + + +This command will: + - Download the requests package from PyPI + - Inspect the package + - Display the dependencies + - Metadata about the package + +This will resolve the dependencies for the requests package and print the results to the console. + +.. code-block:: json + + { + "dependencies": [ + { + "name": "requests", + "version": "2.28.1" + } + ] +} \ No newline at end of file