How to Solve NameError: name 'get_peeringset_expr' is not defined -- ripeapi

Solution: Import the 'get_peeringset_expr' module

# Add the following line to the top of your code
from ripeapi import get_peeringset_expr

 

For more information:
ripeapi get_peeringset_expr