aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* allow spec arguments to be "non-consuming" (doesn't show up in usage)Gravatar jesopo2020-01-271-5/+14
|
* add 'int' command arg spec typeGravatar jesopo2020-01-273-8/+18
|
* add "additional word" (`aword`) command arument spec typeGravatar jesopo2020-01-271-0/+7
|
* add tstring spec type, string with trimmed consecutive spacesGravatar jesopo2020-01-261-0/+4
|
* fix typehinting issuesGravatar jesopo2020-01-261-3/+4
|
* support command spec literalsGravatar jesopo2020-01-261-25/+63
|
* split utils/parse.py in to multiple filesGravatar jesopo2020-01-263-120/+127
|
* "time" spec arg renamed to "duration"Gravatar jesopo2020-01-251-14/+13
|
* support spec arg "context" (e.g. private only), marked exported as privateGravatar jesopo2020-01-251-9/+28
|
* add utils.parse.argument_spec_human() for usage stringsGravatar jesopo2020-01-251-0/+13
|
* implement default spec argument typesGravatar jesopo2020-01-251-12/+55
|
* support type names of spec argumentsGravatar jesopo2020-01-251-12/+19
|
* change command specs to be compiled at runtime by a decoratorGravatar jesopo2020-01-253-4/+40
|
* fix format_token_replace for $$Gravatar jesopo2020-01-251-2/+2
|
* utils.parse.timed_args() min_args should be optionalGravatar jesopo2020-01-241-1/+1
|
* change utils.irc.strip_font() to remove tokens, no regexGravatar jesopo2020-01-221-7/+5
|
* fix hostmask_match_many typehintGravatar jesopo2020-01-221-1/+1
|
* add an optional mask pattern arg to !clearGravatar jesopo2020-01-221-2/+2
|
* allow requesting utils.irc.color() to not add terminating codeGravatar jesopo2020-01-211-2/+7
|
* .zfill(3) milliseconds in utils.datetime.datetime_humanGravatar jesopo2020-01-201-1/+1
|
* use a TimeSpec system to request milliseconds in utils.datetimeGravatar jesopo2020-01-201-9/+18
|
* fix utils.datetime.iso8601_parse linting errorGravatar jesopo2020-01-171-1/+1
|
* add dateutil as a dependency, use it in utils.datetime.iso8601_parseGravatar jesopo2020-01-171-6/+4
|
* also Accept-Language "en" in HTTP requests (0.5 weight)Gravatar jesopo2020-01-111-1/+1
|
* Revert "explicitly .close() task in http.request_many()"Gravatar jesopo2020-01-061-1/+0
| | | | This reverts commit 7478d62b77a7c7637000670d1c2ed22b1b403745.
* explicitly .close() task in http.request_many()Gravatar jesopo2020-01-061-0/+1
|
* sort variable $names descending so longer ones are caught firstGravatar jesopo2020-01-031-0/+4
|
* add missing closing paren to bitbot's User AgentGravatar jesopo2019-12-291-1/+1
|
* actually replace "$$" with "$"Gravatar jesopo2019-12-271-0/+4
|
* `i` should shift righwards also when finding double sigilGravatar jesopo2019-12-271-2/+2
|
* simplify token replace, catch one-char end-of-string tokensGravatar jesopo2019-12-211-10/+6
|
* implement standardised $token replacement in utils.parseGravatar jesopo2019-12-211-0/+31
|
* we no longer use DECODE_CONTENT_TYPESGravatar jesopo2019-12-181-1/+0
|
* allow Request objects to specify their timeoutGravatar jesopo2019-12-111-1/+3
|
* move sys.exit() codes to an enum in utils.constsGravatar jesopo2019-12-101-1/+9
|
* Revert "add utils.parse.shortencode() and utils.parse.shortdecode - ↵Gravatar jesopo2019-12-061-45/+1
| | | | | | effectively base62" This reverts commit e71f3bbc36eba8abf616d93fde48cba66b3749f1.
* add utils.parse.shortencode() and utils.parse.shortdecode - effectively base62Gravatar jesopo2019-12-061-1/+45
|
* add utils.http.Session object, to preserve cookies across requestsGravatar jesopo2019-12-031-0/+14
|
* rework permissions module to precompile hostmasksGravatar jesopo2019-11-301-7/+16
|
* use ANSI_RESET in utils.irc.parse_format, not all the different resetsGravatar jesopo2019-11-281-9/+1
|
* utils.http.Response.decode() should default to detected encodingGravatar jesopo2019-11-281-2/+2
|
* explicitly use "lxml" for finding page encodingGravatar jesopo2019-11-261-1/+1
|
* _find_encoding takes `bytes` and soupifies nowGravatar jesopo2019-11-261-1/+2
|
* utils.http.request_many() shouldn't decode data for ResponseGravatar jesopo2019-11-261-3/+2
|
* utils.http.Response.data should always be `bytes` - add .decode and .soupGravatar jesopo2019-11-261-25/+7
|
* remove `parser` from utils.http.Request, add Request.soup()Gravatar jesopo2019-11-261-15/+6
|
* utils.datetime.datetime_utcnow() -> utils.datetime.utcnow()Gravatar jesopo2019-11-251-2/+2
|
* add `cookies` and `.json()` to utils.http.Response objectsGravatar jesopo2019-11-251-7/+13
|
* change utils.http.Request to be a dataclassGravatar jesopo2019-11-251-38/+30
|
* give bitbot a unique User-AgentGravatar jesopo2019-11-201-6/+5
| | | | closes #206