aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Expand)AuthorAgeFilesLines
* give bitbot a unique User-Agent•••closes #206 Gravatar jesopo2019-11-201-6/+5
* consecutive HASH_STOP chars at start shouldn't count as a stopGravatar jesopo2019-11-191-1/+4
* HASH_STOP should still be respected if last characterGravatar jesopo2019-11-191-1/+1
* move "+5m" syntax parsing out to utils.parseGravatar jesopo2019-11-181-0/+11
* switch some utils.irc functions to use f-stringsGravatar jesopo2019-11-181-4/+3
* truncate nickname hash operations to 64bitGravatar jesopo2019-11-181-1/+1
* implement weechat-style djb2 colour hashingGravatar jesopo2019-11-181-3/+11
* `import` missing comma, 'Events'->'Event'Gravatar jesopo2019-11-181-2/+2
* remove unused imports in src/utils/__init__.pyGravatar jesopo2019-11-181-2/+2
* "EventsResultsError"->"EventResultsError", move errors to utils.errorGravatar jesopo2019-11-182-12/+14
* move utils.consts.BITBOT_MAGIC to utils.decoratorsGravatar jesopo2019-11-152-6/+5
* move all datetime-related code from utils/__init__ to utils.datetimeGravatar jesopo2019-11-152-125/+127
* dont expose has_magic/get_magic in utils/__init__.py, ref directlyGravatar jesopo2019-11-151-2/+2
* split some stuff out of utils/__init__.pyGravatar jesopo2019-11-154-181/+191
* show first-words datestamp on !words outputGravatar jesopo2019-11-151-0/+3
* add typehinting for foreground/backgroundGravatar jesopo2019-11-131-2/+2
* only set color_finished=True when is_background, otherwise next char sets itGravatar jesopo2019-11-131-13/+12
* hash_colorize code should first be looked up in HASH_COLORSGravatar jesopo2019-11-111-2/+2
* .lower() strings when hash-colorizing themGravatar jesopo2019-11-111-1/+1
* don't use hash() for hashed colorising as it's not stable through restartsGravatar jesopo2019-11-111-1/+1
* add utils.irc.hash_colorize() to color a string by the string's hashGravatar jesopo2019-11-111-0/+5
* don't stop parsing colors at commaGravatar jesopo2019-11-041-1/+1
* `' '` -> `" "`Gravatar jesopo2019-10-311-4/+4
* Fix type errors detected by 'mypy --ignore-missing-imports src'.Gravatar Valentin Lorentz2019-10-302-13/+19
* add utils.date_human() - use it in badges.pyGravatar jesopo2019-10-301-0/+3
* utils.parse doesn't need to import utilsGravatar jesopo2019-10-291-1/+0
* 'from src.utils import' -> 'from . import'Gravatar jesopo2019-10-291-1/+1
* utils.cli shouldn't know about DatabaseGravatar jesopo2019-10-291-3/+3
* utils.irc doesn't need to know about the whole of utilsGravatar jesopo2019-10-291-31/+31
* move src/utils/irc/__init__.py to src/utils/irc.pyGravatar jesopo2019-10-281-0/+0
* remove src/utils/irc/protocol.pyGravatar jesopo2019-10-282-91/+0
* Revert "remove unneeded import"•••This reverts commit 8425c11c97bbd9b5690000cac9f622327105d1ee. Gravatar jesopo2019-10-271-0/+1
* remove unneeded importGravatar jesopo2019-10-271-1/+0
* move IRCLine related code from utils.irc to IRCLine.pyGravatar jesopo2019-10-271-83/+5
* don't consume past 2nd digit in e.g. "\03033,123"Gravatar jesopo2019-10-251-5/+5
* support utf8 hostnames by punycode (idna) encodingGravatar jesopo2019-10-181-4/+12
* add a fairly basic file locking mechanism with src/LockFile.py•••closes #96 Gravatar jesopo2019-10-101-2/+4
* refactor multi-line-to-line normalisation to utils.parse.line_normalise(), us...•••closes #174 Gravatar jesopo2019-10-101-0/+5
* commit FunctionSetting changes i forgot to commit yesterdayGravatar jesopo2019-10-081-2/+7
* parse out content_type in Response ctorGravatar jesopo2019-10-051-5/+3
* parse content-type out in utils.http.request, put it on Response objectGravatar jesopo2019-10-041-9/+13
* Allow utils.Setting_ parse functions to throw detailed errorsGravatar jesopo2019-10-041-0/+3
* 'is_localhost()' -> 'host_permitted()'Gravatar jesopo2019-09-301-4/+4
* use ipaddress is_loopback etc to do better forbidden ranges•••closes #87 Gravatar jesopo2019-09-301-0/+9
* add utils.parse.try_int() because .isdigit() isnt good enoughGravatar jesopo2019-09-261-0/+6
* assume http fallback_encoding by content-type (utf8 for json)Gravatar jesopo2019-09-251-1/+8
* only BeautifulSoup for finding encoding when it's a html-ish typeGravatar jesopo2019-09-201-1/+1
* Allow passing source Hostmask to IRCBatchGravatar jesopo2019-09-191-1/+2
* log call was replaced with Exception but [] on args remainedGravatar jesopo2019-09-191-1/+1
* give Requests, use them in utils.http.request_many()Gravatar jesopo2019-09-191-12/+25