pulp / pulp-cli

https://docs.pulpproject.org/pulp_cli/
GNU General Public License v2.0
36 stars 42 forks source link

Add debug ipython command #913

Closed mdellweg closed 6 months ago

mdellweg commented 6 months ago

This can help developers to drop quite fast into a interactive python shell with a usable pulp_ctx preconfigured.

[noissue]

Review Checklist:

mdellweg commented 6 months ago
$ pulp debug ipython 
Python 3.11.8 (main, Mar  3 2024, 09:23:40) [GCC 13.2.0]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.22.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: pulp_ctx.has_plugin(PluginRequirement("core", specifier=">=3.44"))
Out[1]: True