Opened 7 years ago

Closed 5 years ago

#6452 closed project (wontfix)

Rewrite Onionoo in python

Reported by: gsathya Owned by: gsathya
Priority: Medium Milestone:
Component: pyonionoo Version:
Severity: Keywords:
Cc: gsathya, atagar, karsten Actual Points:
Parent ID: #8252 Points:
Reviewer: Sponsor:

Description (last modified by gsathya)

Ticket to track the progress of pyonionoo

Milestones - 

  • Parse consensus
  • GeoIP lookups
  • Reverse DNS lookups 
  • Parse server descriptors
  • Parse exit lists
  • Read and parse extra-info descriptors
  • Store data in db

Child Tickets

Change History (9)

comment:1 Changed 7 years ago by gsathya

Cc: gsathya atagar karsten added
Description: modified (diff)

comment:2 Changed 7 years ago by gsathya

Status: newneeds_review

A bunch of completed milestones (https://gitweb.torproject.org/user/gsathya/pyonionoo.git/shortlog/refs/heads/backend)

  • Parse consensus

I've written a simple consensus parser - https://gitweb.torproject.org/user/gsathya/pyonionoo.git/blob/refs/heads/backend:/backend/main.py#l14

neena is working on a network status descriptor parser for stem and once that's completed, I'll use that.

The consensus is parsed and the data is stored in a "Router"(https://gitweb.torproject.org/user/gsathya/pyonionoo.git/blob/refs/heads/backend:/backend/router.py#l4) object.

  • GeoIP lookups

Use pygeoip to parse Maxmind's GeoIP database.

  • Reverse DNS lookups

Use threads (https://gitweb.torproject.org/user/gsathya/pyonionoo.git/blob/refs/heads/backend:/backend/util.py) to find the hostnames (https://gitweb.torproject.org/user/gsathya/pyonionoo.git/blob/refs/heads/backend:/backend/main.py#l49)

Next Up -
I'm going to read and parse the server descriptors using stem.

comment:3 Changed 7 years ago by atagar

Component: - Select a componentMetrics Utilities

Leaving the component empty makes baby turtles cry.

comment:4 Changed 7 years ago by gsathya

Component: Metrics UtilitiesOnionoo

comment:5 Changed 7 years ago by gsathya

Type: defectproject

comment:6 Changed 7 years ago by gsathya

Status: needs_reviewnew

comment:7 Changed 6 years ago by karsten

Component: Onionoopyonionoo
Owner: set to gsathya

comment:8 Changed 6 years ago by atagar

Parent ID: #8252
Summary: rewrite onionoo in pythonRewrite Onionoo in python

comment:9 Changed 5 years ago by karsten

Resolution: wontfix
Status: newclosed

The above list of things that need to be done in order to rewrite Onionoo in Python is very likely outdated. Whoever may pick up pyonionoo coding in the future will have to make a new list. No need to keep this ticket open anymore. Closing.

Note: See TracTickets for help on using tickets.