[tor-bugs] #29056 [Core Tor/Stem]: Implement bandwidth file parser and formater
Tor Bug Tracker & Wiki
blackhole at torproject.org
Mon Jan 14 05:56:35 UTC 2019
#29056: Implement bandwidth file parser and formater
---------------------------+--------------------------
Reporter: juga | Owner: juga
Type: defect | Status: assigned
Priority: Medium | Milestone:
Component: Core Tor/Stem | Version:
Severity: Normal | Resolution:
Keywords: tor-bwauth | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
---------------------------+--------------------------
Comment (by juga):
Replying to [comment:4 atagar]:
> Thanks teor! I'd be happy to proceed with the parser part of this now.
It's basically implemented in sbws [0], but there're some changes to make
I guess it should inherit from stem.descriptor.Descriptor. It's not using
regular expressions but after looking how you implemented other documents,
might be easier to use them.
Probably there's no need to separate classes for header and bandwidth
lines.
[0]
https://github.com/torproject/sbws/blob/12ad99d0024cdd65bd73d6ac969cc1e70680f286/sbws/lib/v3bwfile.py#L157,
https://github.com/torproject/sbws/blob/12ad99d0024cdd65bd73d6ac969cc1e70680f286/sbws/lib/v3bwfile.py#L187,
https://github.com/torproject/sbws/blob/12ad99d0024cdd65bd73d6ac969cc1e70680f286/sbws/lib/v3bwfile.py#L362,
https://github.com/torproject/sbws/blob/12ad99d0024cdd65bd73d6ac969cc1e70680f286/sbws/lib/v3bwfile.py#L590,
https://github.com/torproject/sbws/blob/12ad99d0024cdd65bd73d6ac969cc1e70680f286/sbws/lib/v3bwfile.py#L600
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29056#comment:9>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list