1from stem.descriptor import parse_file
2
3server_descriptors = parse_file('/tmp/descriptor_dump', descriptor_type = 'server-descriptor 1.0')
4
5for relay in server_descriptors:
6  print(relay.fingerprint)
7