Commit Graph

15 Commits

Author SHA1 Message Date
Shiz 30daca8457 Update ClientPool to work with the asynchronous changes.
This closes #21.
2014-02-22 20:57:32 +01:00
Shiz 76ccc35bb8 Change ClientPool API to reflect future changes. 2014-02-21 19:10:38 +01:00
Shiz a47bbb8e23 Improve API structure documentation. 2014-02-21 19:08:02 +01:00
Shiz 9b4242df77 Restate advantages in README.
Source code size isn't really that much of an issue when it is
well-organized, and I honestly can't be bothered updating the number
everytime something changes. It's mostly a subjective advantage anyway.
2014-02-21 18:35:46 +01:00
Shiz f223f15575 Refactor ping timeout handler to not send client PINGs.
Instead rely on the server to send PING commands, in accordance with
RFC1459.
2014-02-21 18:29:58 +01:00
Shiz 3371fb49c9 Change disconnect() to disconnect(expected=True), remove _has_quit. 2014-02-21 18:25:05 +01:00
Shiz da4fe7a250 Added kick API. 2014-02-21 04:51:28 +01:00
Shiz 8439d2d24b Update documentation on recent changes. 2014-02-20 01:51:28 +01:00
Shiz 24228b68fb Move password connection parameter to features.rfc1459. 2014-02-10 02:47:49 +01:00
Shiz 0b3278723b Update README to reflect codebase changes. 2014-02-10 02:47:49 +01:00
Shiz 8c6cb164ff Seperate base RFC1459 functionality into feature.
This moves pretty much all RFC1459-dependent code into
`pydle.features.rfc1459`. `pydle.features.ircv3_1` and
`pydle.features.ircv3_2` have also been reorganized.
2014-02-10 02:47:28 +01:00
Shiz ae9d2bad8a Refactor IRC message parsing into extensible architecture.
Instead of having a single monolithic function in the pydle.protocol
module parse messages, there will now be a protocol.Message class
features can extend from to add functionality to the parser.
Consequently, all internal callbacks have been changed to take messages
as arguments instead of a collection of metadata about the messages.

A message object should provide the following API:
- __init__(command, parameters, **kwargs): create a message.
- (static) parse(line, encoding='utf-8'): parse a line into a message.
  Should return a message instance or raise protocol.ProtocolViolation
  on error.
- construct(): turn message into a raw IRC line ready to send to the
  server.

pydle.Connection has new APIs to deal with differing message classes.
2014-02-02 16:26:03 +01:00
Shiz f859455d55 Add documentation for pydle.featurize. 2014-01-23 03:00:16 +01:00
Shiz d09e466861 Fix outdated README statements. 2014-01-23 02:50:52 +01:00
Shiz 0fc2391f7a Initial import. 2014-01-23 02:44:19 +01:00