aboutsummaryrefslogtreecommitdiff
path: root/src/utils/__init__.py
Commit message (Collapse)AuthorAgeFilesLines
* handle git being in a detached head state when getting current commitGravatar jesopo2020-02-081-9/+12
|
* store timestamp and current git commit when loading a moduleGravatar jesopo2020-02-031-2/+17
|
* change command specs to be compiled at runtime by a decoratorGravatar jesopo2020-01-251-1/+1
|
* `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-181-12/+2
|
* move all datetime-related code from utils/__init__ to utils.datetimeGravatar jesopo2019-11-151-125/+2
|
* 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-151-180/+4
|
* show first-words datestamp on !words outputGravatar jesopo2019-11-151-0/+3
|
* `' '` -> `" "`Gravatar jesopo2019-10-311-4/+4
|
* Fix type errors detected by 'mypy --ignore-missing-imports src'.Gravatar Valentin Lorentz2019-10-301-11/+17
|
* add utils.date_human() - use it in badges.pyGravatar jesopo2019-10-301-0/+3
|
* 'from src.utils import' -> 'from . import'Gravatar jesopo2019-10-291-1/+1
|
* add a fairly basic file locking mechanism with src/LockFile.pyGravatar jesopo2019-10-101-2/+4
| | | | closes #96
* commit FunctionSetting changes i forgot to commit yesterdayGravatar jesopo2019-10-081-2/+7
|
* Allow utils.Setting_ parse functions to throw detailed errorsGravatar jesopo2019-10-041-0/+3
|
* move q.close() to where it will be called even if deadline is hitGravatar jesopo2019-09-181-1/+2
|
* move _raise_deadline() out of except block to clean up printed stacktraceGravatar jesopo2019-09-181-0/+4
|
* add .get() to CaseInsensitiveDictGravatar jesopo2019-09-171-0/+2
|
* use Queue.get() with timeout, not Process.join() for timeoutGravatar jesopo2019-09-171-7/+7
| | | | | this was because the threads spawned by multiprocessing.Queue seemed to be making Process.join() believe the subprocess had not exited.
* first draft of multiprocess.Process deadline systemGravatar jesopo2019-09-171-0/+23
|
* support '0' as an IntSetting valueGravatar jesopo2019-09-151-3/+6
|
* add utils.SensitiveSetting, to .format() hide valueGravatar jesopo2019-09-121-0/+4
|
* add utils.Setting.format() so subtypes can format differentlyGravatar jesopo2019-09-121-0/+3
|
* make utils.from_pretty_time() format much stricterGravatar jesopo2019-09-041-12/+11
|
* move deadline alarm time check inside try/finallyGravatar jesopo2019-09-021-5/+5
|
* add per-user fediverse settingGravatar jesopo2019-09-021-0/+9
|
* switch to using signal.setitimer so we can restore previous timerGravatar jesopo2019-08-301-1/+7
|
* switch utils.deadline to a context managerGravatar jesopo2019-08-301-5/+8
|
* add utils.deadline(func, seconds) to put hard limits on code exec timeGravatar jesopo2019-08-301-1/+15
|
* Add IntRangeSetting, reorder OptionsSetting arg orderGravatar jesopo2019-08-301-1/+18
|
* round microseconds up to a whole number and zero-pad to 3 charsGravatar jesopo2019-08-301-1/+2
|
* Don't use 'Z' for "utc timezone" - actually parse timezone out of datetimesGravatar jesopo2019-08-301-7/+14
|
* switch to function/module magic being a single objectGravatar jesopo2019-07-261-9/+34
|
* Implemnt _options_factory for OptionsSetting to have dynamic optionsGravatar jesopo2019-06-291-5/+14
|
* Automatically format `example` text for OptionsSetting (showing options)Gravatar jesopo2019-06-291-1/+15
|
* Setting.__init__ call in OptionsSetting ctor needs `self` paramGravatar jesopo2019-06-281-1/+1
|
* Implement utils.OptionsSettingGravatar jesopo2019-06-281-0/+12
|
* Refactor set/channelset/serverset/botset in to 'utils.Setting' objectsGravatar jesopo2019-06-281-15/+29
|
* add CaseInsensitiveDict.__contains__Gravatar jesopo2019-06-261-0/+2
|
* implement @utils.kwarg() magic, use it for command.regex hooksGravatar jesopo2019-06-261-0/+5
|
* Allow channel-access and channel-mode check for channels people are not inGravatar jesopo2019-06-161-0/+2
|
* Change from `yield` checks to a func in `events` that pass up EventErrorsGravatar jesopo2019-06-151-1/+5
|
* Fix utils.Check `args` type hintingGravatar jesopo2019-06-141-2/+2
|
* Add a way to __or__ `utils.Check`s, as a "if one of these passes" thingGravatar jesopo2019-06-141-0/+9
|
* Catch `yield`s in command callbacks for e.g. permission checksGravatar jesopo2019-06-141-0/+5
|
* Support parsing iso8601 with microsecondsGravatar jesopo2019-04-281-2/+4
|
* Record and show when a !to was createdGravatar jesopo2019-04-241-0/+4
|
* change utils.iso8601_format to default to no milliseconds, switch to usingGravatar jesopo2019-04-231-2/+10
| | | | utils.iso8601 functions in badges.py