How to obtain all available Elastic IP addresses in boto3
Here's a simple example that prints all Elastic IP public IP addresses in the current account/region:
import boto3
client = boto3.client('ec2')
addresses_dict = client.describe_addresses()
for eip_dict in addresses_dict['Addresses']:
print(eip_dict['PublicIp'])
For more, see the EC2.Client.describe_addresses reference documentation.