PKGINFO(1)

πŸ’– pkginfo β€” print metadata for one or more Python package distributions πŸ’–

okay bestie, welcome to PKGINFO(1), a manual page from the User Commands corner of the universe, and it's literally here to hand you the ✨metadata✨ of your Python packages. no cap. let's get into it 🫢


🌸 NAME 🌸

pkginfo β€” print metadata for one or more Python package distributions πŸ’…


✨ SYNOPSIS ✨

pkginfo [options] path ...

πŸ¦‹ DESCRIPTION πŸ¦‹

Print the metadata for one or more Python package distributions. that's it. that's the whole vibe. ✨

now, each path entry you hand over can be one of these four things, and yes you have to actually know which one you've got, iykyk:

  • a source distribution: in this case, path should point to an existing archive file (.tar.gz, .tar.bz2, or .zip) as generated by setup.py sdist. πŸ“
  • a binary distribution: in this case, path should point to an existing archive file (.egg) πŸ₯š
  • a "develop" checkout: in this case, path should point to a directory initialized via setup.py develop (under setuptools). the classic main character move tbh
  • an installed package: in this case, path should be the importable name of the package. so like, the name you'd actually import. periodt πŸ’…

πŸ‘‘ OPTIONS πŸ‘‘

so many little switches, and every single one of them is iconic in its own way:

  • -h, --help β€” show help message and exit. the "help me help you" button 🫢
  • -m METADATA_VERSION, --metadata-version=METADATA_VERSION β€” Override metadata version πŸ”₯
  • -f FIELDS, --field=FIELDS β€” Specify an output field (repeatable). yep, you can stack this one, go off πŸ’…
  • -d DOWNLOAD_URL_PREFIX, --download-url-prefix=DOWNLOAD_URL_PREFIX β€” Download URL prefix 🌈
  • --simple β€” Output as simple key-value pairs ✨
  • -s, --skip β€” Skip missing values in simple output πŸ™ˆ
  • -S, --no-skip β€” Don't skip missing values in simple output. the opposite energy πŸ’€
  • --single β€” Output delimited values πŸŽ€
  • --item-delim=ITEM_DELIM β€” Delimiter for fields in single-line output βœ‚οΈ
  • --sequence-delim=SEQUENCE_DELIM β€” Delimiter for multi-valued fields 🧚
  • --csv β€” Output as CSV πŸ“Š
  • --ini β€” Output as INI 🧾

πŸ” SEE ALSO πŸ”

The full documentation for pkginfo is available in /usr/share/doc/python-pkginfo-doc/html β€” but only if the python-pkginfo-doc package is installed. so check first, bestie, don't come for me if that folder's not there 😭


okay that's the whole page!! go print some metadata, you absolute legend πŸ‘‘βœ¨

this lil masterpiece is pkginfo, dated March 2018, and it lives at PKGINFO(1) in the manuals. mwah, slay, bye πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from