root p2p-next-02 [Mon, 2 Apr 2012 15:36:14 +0000 (18:36 +0300)]
Add init folder and seeder scripts
Razvan Deaconescu [Tue, 4 Oct 2011 06:14:43 +0000 (09:14 +0300)]
ppf: Add doc/ and diagram overview
Mariana Mărășoiu [Fri, 16 Sep 2011 03:34:29 +0000 (06:34 +0300)]
ppf/new: Add argument parsing functionality to python script files.
Mariana Mărășoiu [Fri, 16 Sep 2011 01:52:49 +0000 (04:52 +0300)]
ppf/new: In test_config.py: create databases in setUp and discard them in tearDown.
This was necessary to avoid command line initialization before running tests.
Mariana Mărășoiu [Fri, 16 Sep 2011 01:35:02 +0000 (04:35 +0300)]
ppf/new: Fix date and time insertion in SQLite database.
Mariana Mărășoiu [Fri, 16 Sep 2011 00:18:31 +0000 (03:18 +0300)]
ppf/new: Add str2bool method to store *_enabled values as booleans (as used in databases).
Mariana Mărășoiu [Thu, 15 Sep 2011 22:44:46 +0000 (01:44 +0300)]
ppf/new: In test_top.py: create databases in setUp and discard them in tearDown.
This was necessary to avoid command line initialization before running tests.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:32:49 +0000 (01:32 +0300)]
pff/new: Add swarm_id as optional argument to update_session_entry_id.
Make implied modifications in top.py.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:22:26 +0000 (01:22 +0300)]
ppf/new: Add asignment of *_id values returned by add_* methods.
Mariana Mărășoiu [Thu, 15 Sep 2011 22:17:14 +0000 (01:17 +0300)]
ppf/new: Update storage.py to return swarm_id and client_session_id.
add_swarms and add_client_session methods return the id after the insertion
in database is made.
Mariana Mărășoiu [Thu, 15 Sep 2011 21:56:57 +0000 (00:56 +0300)]
ppf/new: Add test module for top.py. Add test methods for EnhanceSwarmDescription.
Mariana Mărășoiu [Fri, 2 Sep 2011 16:53:03 +0000 (19:53 +0300)]
ppf/new: Fix initialization in MySQLDatabaseAccess. Add verification for optional arguments.
Mariana Mărășoiu [Fri, 2 Sep 2011 16:43:36 +0000 (19:43 +0300)]
ppf/new: Update code according to PEP 8.
Add docstrings for classes and most functions. Limit maximum line length to 79 characters. Update alignment.
Razvan Deaconescu [Thu, 1 Sep 2011 18:00:04 +0000 (21:00 +0300)]
ppf/new: Complete implementation of TriblerLogParser.
There are still issues in the current implementation. It's kind of
sloppy just to get things working in the first phase.
Razvan Deaconescu [Thu, 1 Sep 2011 17:59:36 +0000 (20:59 +0300)]
ppf/new: Update tests. Add verbose messages.
Razvan Deaconescu [Thu, 1 Sep 2011 14:57:17 +0000 (17:57 +0300)]
ppf/new: Add draft implementation of TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 14:22:58 +0000 (17:22 +0300)]
ppf/new: Complete test methods for TriblerLogParser.
Razvan Deaconescu [Thu, 1 Sep 2011 12:59:05 +0000 (15:59 +0300)]
ppf/new: Add skeleton test methods for TriblerLogParser.
Mariana Mărășoiu [Thu, 1 Sep 2011 15:00:12 +0000 (18:00 +0300)]
ppf/new: Initialize 'data' field in constructor for config.py classes. Remove super() method from constructor.
Razvan Deaconescu [Mon, 29 Aug 2011 05:28:06 +0000 (08:28 +0300)]
ppf/new: Add all test running commands to README.
Mariana Mărășoiu [Mon, 29 Aug 2011 10:16:41 +0000 (13:16 +0300)]
ppf/new: Add functions and tests for SessionEntry class in config.
Mariana Mărășoiu [Mon, 29 Aug 2011 08:59:50 +0000 (11:59 +0300)]
ppf/new: Move *_example.ini files to *.sample.ini. Modify test_config.py to use new file names.
Mariana Mărășoiu [Sun, 28 Aug 2011 19:41:09 +0000 (22:41 +0300)]
ppf/new: Add command for test_config in README.
Mariana Mărășoiu [Sun, 28 Aug 2011 19:37:20 +0000 (22:37 +0300)]
ppf/new: Add functions and tests for config. Add example files used for tests.
Mariana Mărășoiu [Sun, 28 Aug 2011 17:45:36 +0000 (20:45 +0300)]
ppf/new: In storage.py: MySQLDatabaseAccess class receives as argument in initialisation a dict with connection options.
Mariana Mărășoiu [Sun, 28 Aug 2011 17:27:34 +0000 (20:27 +0300)]
ppf/new: Use self.handlers instead of handlers in SwarmWriter class
Razvan Deaconescu [Sun, 28 Aug 2011 05:56:10 +0000 (08:56 +0300)]
ppf/new: Add peer message parsing support for libtorrent.
Razvan Deaconescu [Sun, 28 Aug 2011 05:01:50 +0000 (08:01 +0300)]
ppf/new: Add IP and port information to verbose messages.
IP and port information are determined from verbose log file name.
Razvan Deaconescu [Sun, 28 Aug 2011 04:46:28 +0000 (07:46 +0300)]
ppf/new: Fix date/timestamp usage where required.
Status messages require the start time to be known. Status message
timestamp is computed by adding the number of status messages (equal to
the number of second) to the start time.
Razvan Deaconescu [Sat, 27 Aug 2011 18:02:22 +0000 (21:02 +0300)]
ppf/new: Add methods for verbose and status line parsing.
Razvan Deaconescu [Sat, 27 Aug 2011 18:00:30 +0000 (21:00 +0300)]
ppf/new: Fixes in parsing tests.
Also add support for running certain tests - with the help of
unittest.TestSuite class.
Razvan Deaconescu [Sat, 27 Aug 2011 15:49:06 +0000 (18:49 +0300)]
ppf/new: Refactor gget_*_message methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 14:46:54 +0000 (17:46 +0300)]
ppf/new: Fill add_*_line methods in test_parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 11:23:47 +0000 (14:23 +0300)]
ppf/new: Complete tests for parsing module.
Parsing module implementation had been updated/fixed. Implementation is
not yet complete; actual parsing must be implemented.
Razvan Deaconescu [Sat, 27 Aug 2011 08:12:48 +0000 (11:12 +0300)]
ppf/new: Updates and new tests for parsing module.
Razvan Deaconescu [Sat, 27 Aug 2011 06:43:50 +0000 (09:43 +0300)]
ppf/new: Add two tests and setUp/tearDown to parsing test module.
Razvan Deaconescu [Sat, 27 Aug 2011 06:40:53 +0000 (09:40 +0300)]
ppf/new: Fixes to LogParser classes.
Use self.method_name() to call local class methods.
LibtorrentLogParser and TriblerLogParser inherit SessionLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:41:36 +0000 (08:41 +0300)]
ppf/new: Add skeleton test methods for LibtorrentLogParser.
Razvan Deaconescu [Sat, 27 Aug 2011 05:10:52 +0000 (08:10 +0300)]
ppf/new: Add test module for parsing.py.
Razvan Deaconescu [Sat, 27 Aug 2011 05:05:20 +0000 (08:05 +0300)]
ppf/new: Add skeleton methods to LibTorrentLogParser.
Razvan Deaconescu [Fri, 26 Aug 2011 18:43:55 +0000 (21:43 +0300)]
ppf/new: Add/update top level scripts according to top.py methods.
Top level scripts, to be run using the python interpreter, are
enhance_swarm_description.py, parse_swarm.py and parse_session.py.
Razvan Deaconescu [Fri, 26 Aug 2011 18:42:25 +0000 (21:42 +0300)]
ppf/new: Replase SwarmConfig class with SwarmDescription.
Remove SessionConfig class.
Update tests for config.py accordingly.
Razvan Deaconescu [Fri, 26 Aug 2011 17:18:05 +0000 (20:18 +0300)]
ppf/new: Add newly designed top-level functions in top.py.
As specified in top-design-proposal.txt.
Razvan Deaconescu [Fri, 26 Aug 2011 13:53:57 +0000 (16:53 +0300)]
ppf/new: Remove trailing white spaces.
Razvan Deaconescu [Fri, 26 Aug 2011 13:27:37 +0000 (16:27 +0300)]
ppf/new: Complete tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 12:41:12 +0000 (15:41 +0300)]
ppf/new: Complete several tests for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 12:40:45 +0000 (15:40 +0300)]
ppf/new: Add logging support to util.py. Fixes due to tests.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:32 +0000 (14:37 +0300)]
ppf/new: Add skeleton tests to test_util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 11:37:00 +0000 (14:37 +0300)]
ppf/new: Fix constructor of LiveLogStatus.
Razvan Deaconescu [Fri, 26 Aug 2011 10:40:54 +0000 (13:40 +0300)]
ppf/new: Add skeleton test file for util.py.
Razvan Deaconescu [Fri, 26 Aug 2011 10:34:47 +0000 (13:34 +0300)]
ppf/new: Add util.py.
util.py contains the LiveLogFile for live analysis of log files. A
specialized status file holds the current position of processing the log
file. In case of error, the analyzer would restart, read the status file
and resume parsing from where it left off.
Razvan Deaconescu [Thu, 25 Aug 2011 09:54:14 +0000 (12:54 +0300)]
ppf/new: Add top level functions and scripts design proposal.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:50 +0000 (11:02 +0300)]
ppf/new: Add "executable" swarm parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:39 +0000 (11:02 +0300)]
ppf/new: Add "executable" session parsing script.
Razvan Deaconescu [Thu, 25 Aug 2011 08:02:18 +0000 (11:02 +0300)]
ppf/new: Uncompress archive before session parsing.
Mariana Mărășoiu [Wed, 24 Aug 2011 18:15:03 +0000 (21:15 +0300)]
ppf/new: Add config.py. Add skeleton functions and tests for config.py.
Razvan Deaconescu [Wed, 24 Aug 2011 17:54:08 +0000 (20:54 +0300)]
ppf/new: Add methods for parsing swarm and session archive files.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:54 +0000 (18:57 +0300)]
ppf/new: Add top.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:42 +0000 (18:57 +0300)]
ppf/new: Update top level message in parsing.py.
Razvan Deaconescu [Wed, 24 Aug 2011 15:57:25 +0000 (18:57 +0300)]
ppf/new: Rename parser.py to parsing.py.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:42:10 +0000 (14:42 +0300)]
ppf/new: Full implementation of add_* for MySQL.
Mariana Mărășoiu [Wed, 24 Aug 2011 11:31:39 +0000 (14:31 +0300)]
ppf/new: Use subprocess module instead of sqlparse. Connection to database
is made in setUp.
Mariana Marasoiu [Tue, 23 Aug 2011 10:27:35 +0000 (13:27 +0300)]
ppf: Add MySQL access tests.
Mariana Marasoiu [Tue, 23 Aug 2011 10:12:23 +0000 (13:12 +0300)]
ppf: Add SQL files for MySQL database.
Razvan Deaconescu [Mon, 22 Aug 2011 12:23:56 +0000 (15:23 +0300)]
ppf/new: Add skeleton for LibtorrentLogParser.
Razvan Deaconescu [Mon, 22 Aug 2011 11:37:11 +0000 (14:37 +0300)]
ppf/new: Add parser.py.
This is going to be the new parser implementation for libtorrent,
Tribler and other BitTorrent clients.
Razvan Deaconescu [Mon, 22 Aug 2011 10:38:27 +0000 (13:38 +0300)]
ppf: Add README file.
Razvan Deaconescu [Mon, 22 Aug 2011 10:37:04 +0000 (13:37 +0300)]
ppf: Add SwarmWriter class.
Razvan Deaconescu [Mon, 22 Aug 2011 10:25:13 +0000 (13:25 +0300)]
ppf: Add author recognition.
Razvan Deaconescu [Mon, 22 Aug 2011 10:22:32 +0000 (13:22 +0300)]
ppf: Complete SQLite add_* message tests.
Razvan Deaconescu [Mon, 22 Aug 2011 10:16:46 +0000 (13:16 +0300)]
ppf: Add support for datetime timestamps in SQLiteDatabaseAccess.
Razvan Deaconescu [Mon, 22 Aug 2011 09:55:53 +0000 (12:55 +0300)]
ppf: Full implementation of add_* for SQLite.
Razvan Deaconescu [Mon, 22 Aug 2011 09:53:23 +0000 (12:53 +0300)]
ppf: Remove swarm_id in tests that add new messages.
Database schema maps client session ids to swarm ids.
Razvan Deaconescu [Mon, 22 Aug 2011 08:28:18 +0000 (11:28 +0300)]
ppf: Add SQLite access tests.
Razvan Deaconescu [Mon, 22 Aug 2011 07:56:00 +0000 (10:56 +0300)]
ppf: Update DatabaseAccess classes to initialize database in constructor.
Previously, initilization occured in the connect() method, with the
database string passed to it. Now the connect() method receives no
argument; connection information had been initialized in constructor.
Razvan Deaconescu [Mon, 22 Aug 2011 07:50:29 +0000 (10:50 +0300)]
ppf: Read test initialization/population script.
Razvan Deaconescu [Mon, 22 Aug 2011 07:13:43 +0000 (10:13 +0300)]
ppf: Add test SQL file.
Razvan Deaconescu [Mon, 22 Aug 2011 07:09:17 +0000 (10:09 +0300)]
ppf: Run creation script for SQLite tests.
Razvan Deaconescu [Mon, 22 Aug 2011 06:20:04 +0000 (09:20 +0300)]
ppf: Update direction strings to "send" and "receive".
Razvan Deaconescu [Mon, 22 Aug 2011 05:50:59 +0000 (08:50 +0300)]
ppf: Replace date, time with h timestamp.
timestamp will be a Python Datetime object.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:29 +0000 (22:03 +0300)]
ppf: Add skeleton tests for SQLiteDatabaseAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 19:03:01 +0000 (22:03 +0300)]
ppf: Populate skeleton methods for *DatabaseAccess classes.
Razvan Deaconescu [Sun, 21 Aug 2011 18:32:34 +0000 (21:32 +0300)]
ppf: "Break" asserts for swarm and client sessions tests.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:52 +0000 (21:28 +0300)]
ppf: Add tests for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 18:28:24 +0000 (21:28 +0300)]
ppf: Add implementation for add_*_message.
Razvan Deaconescu [Sun, 21 Aug 2011 17:35:18 +0000 (20:35 +0300)]
ppf: Add test suite for add_client_session.
Razvan Deaconescu [Sun, 21 Aug 2011 17:34:47 +0000 (20:34 +0300)]
Add add_client_session to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 17:08:39 +0000 (20:08 +0300)]
ppf: Add test suite for TreeTextFileAccess class.
Razvan Deaconescu [Sun, 21 Aug 2011 16:48:12 +0000 (19:48 +0300)]
Add add_swarm to TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 16:31:05 +0000 (19:31 +0300)]
ppf: Add tests for storage.py functions.
Razvan Deaconescu [Sun, 21 Aug 2011 16:30:34 +0000 (19:30 +0300)]
ppf: Move find_numeric_subfolder function outside class.
Razvan Deaconescu [Sun, 21 Aug 2011 15:41:37 +0000 (18:41 +0300)]
Add logging support to storage.
Razvan Deaconescu [Sun, 21 Aug 2011 15:40:51 +0000 (18:40 +0300)]
Initial fill of TreeTextFileAccess.
Razvan Deaconescu [Sun, 21 Aug 2011 14:56:28 +0000 (17:56 +0300)]
Remove BTClient class.
BitTorrent clients are defined as a dictionary.
Razvan Deaconescu [Sun, 21 Aug 2011 14:30:05 +0000 (17:30 +0300)]
ppf: Add storage.py.
Swarm data logging backend.
Razvan Deaconescu [Sat, 20 Aug 2011 18:29:29 +0000 (21:29 +0300)]
Add TODOs to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 18:00:46 +0000 (21:00 +0300)]
ppf: Replace TABs with spaces.
Razvan Deaconescu [Sat, 20 Aug 2011 17:57:01 +0000 (20:57 +0300)]
ppf: Rename db_init to sqlite_initdb.bash.
Razvan Deaconescu [Sat, 20 Aug 2011 17:49:51 +0000 (20:49 +0300)]
Add Python SQLite initialization script.
Uses Python code to initialize SQLite database file (executes SQL script).
Razvan Deaconescu [Sat, 20 Aug 2011 16:54:52 +0000 (19:54 +0300)]
ppf: Add sessctl.py.
Interface for swarm/client session handling in the database.