Commit graph

18 commits

Author SHA1 Message Date
Sean Breckenridge
0c2001e611 dont lowercase null when checking
lowers the chance that if the value is actually
"NULL" or 'Null' or something, it isn't misidentified
2024-06-03 17:19:59 -07:00
Sean Breckenridge
2baff91e9f better error messages 2024-06-02 17:32:26 -07:00
Sean Breckenridge
3b205aa676 yield instead of returning errors 2024-06-02 17:31:03 -07:00
Sean Breckenridge
88474771e9 parse content/filenames properly, parse addresses, remove null data 2024-06-02 17:23:42 -07:00
Sean Breckenridge
118b58ee68 add todos 2024-05-30 19:34:40 -07:00
Sean Breckenridge
06936aa560 initial mms exploration 2024-05-30 17:35:32 -07:00
Dima Gerasimov
c34656e8fb general: update mypy config, seems that logs of type: ignore aren't necessary anymore 2023-05-16 01:18:30 +01:00
Sean Breckenridge
82bc51d9fc smscalls: make checking for keys stricter
sort of reverts #287, but also makes some other improvements

this allows us to remove some of the Optional's to
make downstream consumers easier to write. However,
this keeps the return type as a Res (result, with errors),
so downstream consumers will have to handle those incase
the schema ever changes (highly unlikely)

also added the 'call_type/message_type' with a comment
there describing the values

I left 'who' Optional I believe it actually should be -
its very possible for there to be no contact name, added
a check incase its '(Unknown)' which is what my phone
sets it to
2023-04-15 17:17:02 +01:00
Sean Breckenridge
02c738594f smscalls: make some fields optional, yield errors
reflects the new types-lxml package
https://github.com/abelcheung/types-lxml
2023-04-14 23:50:26 +01:00
Sean Breckenridge
b64a11cc69
smscalls: allow multiple backup dirs (#172)
* smscalls: allow multiple backup dirs
* add smscalls to my.config, add test to CI
2021-05-14 01:35:36 +01:00
Sean Breckenridge
014494059d smscalls: add REQUIRES block to install lxml 2021-05-10 19:51:20 +01:00
Sean Breckenridge
fb9426d316 smscalls: add config block
so that don't have to infer what
to set in your hpi config based
on usage in module
2021-03-15 03:48:42 +00:00
Sean Breckenridge
44b756cc6b smscalls: use stdlib for tz, attach readable date
pytz is overkill for this, use the builin
datetime.timezone module (since py ver 3.2)

attach the readable datetime
like 'Sep 12, 2020 9:12:19 AM' to each
of the calls/messages
2020-10-02 19:11:48 +02:00
Sean Breckenridge
160582b6cf parse sms messages from xml files 2020-10-02 19:11:48 +02:00
Dima Gerasimov
9d5d368891 get rid of unnecessary .init imports 2020-05-06 22:05:16 +01:00
Dima Gerasimov
e5b3a1e91e use my.config instead of mycfg; minor cleanups and docstrings 2020-04-12 00:22:10 +01:00
Dima Gerasimov
3018807e2a prettify calls provider 2020-03-06 19:06:17 +00:00
Dima Gerasimov
348460a83d move smscalls from private 2020-03-06 18:46:22 +00:00
Renamed from calls/__init__.py (Browse further)