How can I enumerate all footprints and their pads in a specific KiCad library using Python?
To enumerate all footprints and their pads in a specific KiCad library using Python, you can use a script that loads the library and iterates through each footprint, printing details about it and its pads. The provided script demonstrates this for the '/usr/share/kicad/modules/Sockets.pretty' library:

```python
#!/usr/bin/python

from pcbnew import *

libpath = "/usr/share/kicad/modules/Sockets.pretty"
print ">> enumerate footprints, pads of",libpath

# Load the library using the appropriate plugin
# ... (rest of the script to load plugin and enumerate footprints)

for name in list_of_footprints:
    fp = plugin.FootprintLoad(libpath,name)
    # ... (print footprint and pad information)
```

This script is useful for getting a detailed overview of all footprints and pads within a specific library, aiding in component selection and design planning.