poetry icon indicating copy to clipboard operation
poetry copied to clipboard

RFE: include dependency group in 'poetry show' output

Open yrro opened this issue 2 years ago • 0 comments

  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] I have searched the FAQ and general documentation and believe that my question is not already covered.

Feature Request

I don't spend all my time working on Python projects using poetry so when I come back to a project to work on it, I'd find it useful if poetry show could refresh my memory of dependency groups exist & which dependencies are part of which group. Something like:

$ poetry show
black              dev      22.12.0      The uncompromising code formatter.
certifi            main,dev 2022.12.7    Python package for providing Mozilla's CA Bundle.
cffi               main     1.15.1       Foreign Function Interface for Python calling C code.
charset-normalizer main,dev 3.0.1        The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
click              main,dev 8.1.3        Composable command line interface toolkit
cryptography       main     37.0.4       cryptography is a package which provides cryptographic recipes and primitives to Python developers.
decorator          main     5.1.1        Decorators for Humans
defusedxml         dev      0.7.1        XML bomb protection for Python stdlib modules
dnspython          main     2.3.0        DNS toolkit
dparse             dev      0.6.2        A parser for Python dependency files
flask              main     2.2.2        A simple framework for building complex web applications.
gssapi             main     1.8.2        Python GSSAPI Wrapper
gunicorn           main     20.1.0       WSGI HTTP Server for UNIX
httpie             dev      3.2.1        HTTPie: modern, user-friendly command-line HTTP client for the API era.
idna               main,dev 3.4          Internationalized Domain Names in Applications (IDNA)
ipaclient          main     4.8.9        FreeIPA client library
ipalib             main     4.8.9        FreeIPA common python library
ipaplatform        main     4.8.9        FreeIPA platform
ipapython          main     4.8.9        FreeIPA python support library
itsdangerous       main     2.1.2        Safely pass data to untrusted environments and back.
jinja2             main     3.1.2        A very fast and expressive template engine.
markdown-it-py     main,dev 2.1.0        Python port of markdown-it. Markdown parsing, done right!
markupsafe         main     2.1.2        Safely add untrusted strings to HTML/XML markup.
mdurl              dev      0.1.2        Markdown URL utilities
multidict          dev      6.0.4        multidict implementation
mypy-extensions    dev      1.0.0        Type system extensions for programs checked with the mypy type checker.
netaddr            main     0.8.0        A network address manipulation library for Python
packaging          main,dev 21.3         Core utilities for Python packages
pathspec           main,dev 0.11.0       Utility library for gitignore style pattern matching of file paths.
pip                main,dev 23.0         The PyPA recommended tool for installing Python packages.
platformdirs       main,dev 2.6.2        A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".
prometheus-client  main     0.14.1       Python client for the Prometheus monitoring system.
pyasn1             main     0.4.8        ASN.1 types and codecs
pyasn1-modules     main     0.2.8        A collection of ASN.1-based protocols modules.
pycparser          main     2.21         C parser in Python
pygments           main,dev 2.14.0       Pygments is a syntax highlighting package written in Python.
pyparsing          main,dev 3.0.9        pyparsing module - Classes and methods to define and execute parsing grammars
pypng              main     0.20220715.0 Pure Python library for saving and loading PNG images
pysocks            main,dev 1.7.1        A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
python-ldap        main     3.4.3        Python modules for implementing LDAP clients
qrcode             main     7.4.2        QR Code image generator
requests           dev      2.28.2       Python HTTP for Humans.
requests-toolbelt  main,dev 0.10.1       A utility belt for advanced users of python-requests
rich               main,dev 13.3.1       Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal
ruamel-yaml        main,dev 0.17.21      ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
safety             main,dev 2.3.5        Checks installed dependencies for known vulnerabilities and licenses.
setproctitle       main     1.3.2        A Python module to customize the process title
setuptools         dev      67.1.0       Easily download, build, install, upgrade, and uninstall Python packages
six                main     1.16.0       Python 2 and 3 compatibility utilities
toml               main,dev 0.10.2       Python Library for Tom's Obvious, Minimal Language
typing-extensions  main     4.4.0        Backported and Experimental Type Hints for Python 3.7+
urllib3            dev      1.26.14      HTTP library with thread-safe connection pooling, file post, and more.
werkzeug           main          2.2.2        The comprehensive WSGI web application library.

It could also show which extras a dependency is pulled in by:

$ poetry show
black              dev      -             22.12.0      The uncompromising code formatter.
certifi            main,dev -             2022.12.7    Python package for providing Mozilla's CA Bundle.
cffi               main     freeipa-vault 1.15.1       Foreign Function Interface for Python calling C code.
charset-normalizer main,dev -             3.0.1        The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet.
click              main,dev -             8.1.3        Composable command line interface toolkit
cryptography       main     freeipa-vault 37.0.4       cryptography is a package which provides cryptographic recipes and primitives to Python developers.
decorator          main     freeipa-vault 5.1.1        Decorators for Humans
defusedxml         dev      -             0.7.1        XML bomb protection for Python stdlib modules
dnspython          main     freeipa-vault 2.3.0        DNS toolkit
dparse             dev      -             0.6.2        A parser for Python dependency files
flask              main     -             2.2.2        A simple framework for building complex web applications.
gssapi             main     freeipa-vault 1.8.2        Python GSSAPI Wrapper
gunicorn           main     container     20.1.0       WSGI HTTP Server for UNIX
httpie             dev      -             3.2.1        HTTPie: modern, user-friendly command-line HTTP client for the API era.
idna               main,dev -             3.4          Internationalized Domain Names in Applications (IDNA)
ipaclient          main     freeipa-vault 4.8.9        FreeIPA client library
ipalib             main     freeipa-vault 4.8.9        FreeIPA common python library
ipaplatform        main     freeipa-vault 4.8.9        FreeIPA platform
ipapython          main     freeipa-vault 4.8.9        FreeIPA python support library
itsdangerous       main     -             2.1.2        Safely pass data to untrusted environments and back.
jinja2             main     -             3.1.2        A very fast and expressive template engine.
markdown-it-py     dev      -             2.1.0        Python port of markdown-it. Markdown parsing, done right!
markupsafe         main     -             2.1.2        Safely add untrusted strings to HTML/XML markup.
mdurl              dev      -             0.1.2        Markdown URL utilities
multidict          dev      -             6.0.4        multidict implementation
mypy-extensions    dev      -             1.0.0        Type system extensions for programs checked with the mypy type checker.
netaddr            main     freeipa-vault 0.8.0        A network address manipulation library for Python
packaging          dev      -             21.3         Core utilities for Python packages
pathspec           dev      -             0.11.0       Utility library for gitignore style pattern matching of file paths.
pip                dev      -             23.0         The PyPA recommended tool for installing Python packages.
platformdirs       dev      -             2.6.2        A small Python package for determining appropriate platform-specific dirs, e.g. a "user data dir".
prometheus-client  main     -             0.14.1       Python client for the Prometheus monitoring system.
pyasn1             main     freeipa-vault 0.4.8        ASN.1 types and codecs
pyasn1-modules     main     freeipa-vault 0.2.8        A collection of ASN.1-based protocols modules.
pycparser          main     freeipa-vault 2.21         C parser in Python
pygments           main,dev -             2.14.0       Pygments is a syntax highlighting package written in Python.
pyparsing          main,dev -             3.0.9        pyparsing module - Classes and methods to define and execute parsing grammars
pypng              main     freeipa-vault 0.20220715.0 Pure Python library for saving and loading PNG images
pysocks            main,dev -             1.7.1        A Python SOCKS client module. See https://github.com/Anorov/PySocks for more information.
python-ldap        main     freeipa-vault 3.4.3        Python modules for implementing LDAP clients
qrcode             main     freeipa-vault 7.4.2        QR Code image generator
requests           main,dev -             2.28.2       Python HTTP for Humans.
requests-toolbelt  dev      -             0.10.1       A utility belt for advanced users of python-requests
rich               main,dev -             13.3.1       Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal
ruamel-yaml        main,dev -             0.17.21      ruamel.yaml is a YAML parser/emitter that supports roundtrip preservation of comments, seq/map flow style, and map key order
safety             main,dev -             2.3.5        Checks installed dependencies for known vulnerabilities and licenses.
setproctitle       main     container     1.3.2        A Python module to customize the process title
setuptools         main,dev -             67.1.0       Easily download, build, install, upgrade, and uninstall Python packages
six                main     freeipa-vault 1.16.0       Python 2 and 3 compatibility utilities
toml               dev      -             0.10.2       Python Library for Tom's Obvious, Minimal Language
typing-extensions  main     -             4.4.0        Backported and Experimental Type Hints for Python 3.7+
urllib3            main,dev -             1.26.14      HTTP library with thread-safe connection pooling, file post, and more.
werkzeug           main     -             2.2.2        The comprehensive WSGI web application library.

yrro avatar Feb 16 '23 11:02 yrro