Commit Graph

123 Commits

Author SHA1 Message Date
jesopo 89a2a6c131 replace irctokens.format() with irctokens.build().format() 2020-03-12 13:53:10 +00:00
jesopo 6370dbb90d v0.7.1 release 2020-03-12 08:35:10 +00:00
jesopo 27058522b8 non-last params can't start with colon, support last param starting with colon 2020-03-12 08:28:44 +00:00
jesopo 3ae207aa05 lone backslashes at the end of escaped tag values should be removed 2020-03-11 23:56:53 +00:00
jesopo fd9773efcb v0.7.0 release 2020-03-11 23:40:43 +00:00
jesopo 38b98a15e3 don't gracefully handle spaces in non-last param, throw ValueError 2020-03-11 23:38:36 +00:00
jesopo e523f03d4f prevent tag replacements overlapping each other 2020-03-11 23:32:52 +00:00
jesopo a82105e09f gracefully handle spaces in non-last params (split them) 2020-03-11 23:05:11 +00:00
jesopo e41a58842b don't try to parse Line.source from Line.hostmask when it is None 2020-03-11 22:57:49 +00:00
jesopo c52c4143ce v0.6.3 release 2020-03-11 22:12:33 +00:00
jesopo 564dec73b6 use fstring repr (!r) for Hostmask and Line __repr__s 2020-03-11 22:10:51 +00:00
jesopo 0a7d0fa173 remove `hostmasks` section of README.md; it's mostly covered in `tokenisation` 2020-03-11 22:06:23 +00:00
jesopo eaf4c70db6 v0.6.2 release 2020-03-11 21:57:57 +00:00
jesopo 407652de32 add `pip3 freeze` to .travis.yml's `script` section 2020-03-11 21:45:55 +00:00
jesopo 91648986c8 use "from typing import x" 2020-03-11 21:45:26 +00:00
jesopo 6cb454b755 v0.6.1 release 2020-03-11 21:34:22 +00:00
jesopo 8e49ab9a14 fstrings, not modulo formatting 2020-03-11 21:32:26 +00:00
jesopo 410ce64ae9 don't use [] (mutable) for func arg default values 2020-03-11 21:32:07 +00:00
jesopo 07da840925 remove python "nightly" build target from .travis.yml (not meant to be reliable) 2020-03-11 21:31:45 +00:00
jesopo 18c921d02a v0.6.0 release 2020-03-11 20:29:43 +00:00
jesopo 9e5afb9f16 add __repr__ to Line 2020-03-11 20:25:18 +00:00
jesopo f1a1079873 add __repr__ to Hostmask 2020-03-11 20:22:44 +00:00
jesopo 9cd39ddcdc add Line.hostmask property to lazy-parse .source in to a Hostmask 2020-03-11 20:17:56 +00:00
jesopo 23c92967c4 v0.5.1 release 2020-03-11 18:11:24 +00:00
jesopo 2d30d67a36 improve tokenisation in README.md, add Hostmask to README.md 2020-03-11 18:10:43 +00:00
jesopo c545cc77e2 v0.5.0 release 2020-03-11 18:08:34 +00:00
jesopo 2bc35c57f7 add hostmask parsing (irctokens.Hostmask("n!u@h")) 2020-03-11 18:04:50 +00:00
jesopo 89cc0a3061 v0.4.3 release 2020-03-11 17:44:01 +00:00
jesopo 7fdb69cfcd put NICK const in the right command (NICK, not USER) 2020-03-11 17:43:10 +00:00
jesopo cdec941dd7 v0.4.2 release 2020-03-11 17:40:19 +00:00
jesopo 86fad88f92 allow suppling encoding to StatefulEncoder and StatefulDecoder (and tests!) 2020-03-11 17:38:30 +00:00
jesopo 09087d63d6 v0.4.1 release 2020-03-11 17:14:24 +00:00
jesopo 36225abd0c fix test/stateful_encode.py typos 2020-03-11 17:13:10 +00:00
jesopo 8630c63f46 StatefulEncoder._buffer is a bytes object 2020-03-11 17:12:49 +00:00
jesopo 11834debff inclde test/stateful_encode.py in test/__init__.py 2020-03-11 17:11:38 +00:00
jesopo 53d056c3e0 add .clear() to StatefulDecoder too (and tests for .clear() on both statefuls) 2020-03-11 17:09:54 +00:00
jesopo 4b9ff45921 remove superfluous spaces 2020-03-11 17:04:58 +00:00
Austin Ewens e5001ccb9c
Adds the ability to easily reset the encoder
The initialize function is also refactored to use the clear function to reduce code duplication as they would be doing the same thing.
2020-03-11 11:54:46 -05:00
jesopo 0c9e0a8f07 v0.4.0 release 2020-03-11 16:43:14 +00:00
jesopo 22be792bc0 remove StatefulEncoder.push() return type 2020-03-11 16:31:26 +00:00
jesopo 8773240c0c return Line objects successfully sent with StatefulEncoder.pop() 2020-03-11 16:30:44 +00:00
jesopo 2d639d561c add pip3 installation instructions to README.md 2020-03-11 15:30:46 +00:00
jesopo b1782a581a v0.3.0 release 2020-03-11 15:19:14 +00:00
jesopo 49d2e78475 add a stateful encoder (irctokens.StatefulEncoder()) 2020-03-11 15:17:17 +00:00
jesopo 3cdc163b87 StatefulDecoder.push() should return None when given b"" (disconnect) 2020-03-11 15:16:49 +00:00
jesopo 949b10945e implement a stateful decoder (irctokens.StatefulDecoder()) 2020-03-11 14:50:31 +00:00
jesopo 934a901ba1 v0.2.2 release 2020-03-11 14:37:31 +00:00
jesopo c41f9fb338 fix setup.py minimum python version (fstrings needs 3.6) 2020-03-11 14:15:21 +00:00
jesopo 2dce57f365 add test.format to .travis.yml 2020-03-11 14:07:19 +00:00
jesopo fab5fe7c27 v0.2.1 release 2020-03-11 13:56:13 +00:00