Write script to aggregate relay weights by country, AS, or relay family

Description

lunar is interested in adding pie charts about relays/capacity per AS network and similar statistics to Atlas. In order to do this, Onionoo should provide these data in a convenient way. These data would be based on the very last consensus and would not incorporate any history.

We should probably wait for the Python Onionoo to implement this and not extend the Java Onionoo. Setting priority to minor.

Make Onionoo provide aggregate data based on the current consensus →
Write script to aggregate relay weights by country, AS, or relay family

The original ticket description isn't as accurate anymore. We have a script that downloads Onionoo's details document and aggregates weights locally. There's no need to add another document type to Onionoo only to provide the same data in a more compact format. Changing the description to something that focuses on the script using Onionoo's existing data. Also changing the component to something more general and setting priority back to normal.

The "relay family" part is still in progress. There's a patch on tor-relays that needs reviewing, and maybe Onionoo needs a new field to facilitate filtering/aggregating by relay family.

Once the relay family part is implemented, we'll probably want to add the script's functionality to Atlas. But that requires a new ticket then.

The "relay family" part is still in progress. There's a patch on tor-relays that needs reviewing, and maybe Onionoo needs a new field to facilitate filtering/aggregating by relay family.

There's #6662 for grouping by family now. Turns out it's not trivial to group by family, so we'll have to agree on one of a few definitions. That's an argument against adding a new field to Onionoo, and a reason to put this in whichever Onionoo client wants to group by relay family.

Once the relay family part is implemented, we'll probably want to add the script's functionality to Atlas. But that requires a new ticket then.

Instead of extending Atlas, we created Compass as web interface for this script.