Commit graph

605 commits

Author SHA1 Message Date
seanbreckenridge
f05e81cee5
Merge branch 'master' into location-fallback 2023-02-22 23:02:37 -08:00
Sean Breckenridge
dbe0624af8 fix datetime.min.timestamp bug, default to utc 2023-02-22 22:49:59 -08:00
Sean Breckenridge
c19cae2c88 err shouldnt happen if user has home configured 2023-02-22 19:07:58 -08:00
Sean Breckenridge
eeea347025 mypy ignore 2023-02-22 05:21:23 -08:00
Sean Breckenridge
b7d1012bf5 use estimate_location in via_home.get_location 2023-02-22 04:56:15 -08:00
Sean Breckenridge
c9c2415771 tz.via_location: add fallback to _iter_tzs
update home to use estimate_location
2023-02-22 04:52:37 -08:00
Sean Breckenridge
0a48393589 add via_ip.estimate_location using binary search 2023-02-22 04:51:57 -08:00
Sean Breckenridge
7aed18042d fallback.all: create top-level import_source functions 2023-02-21 19:52:46 -08:00
Sean Breckenridge
da8f541cdc convert fallback location estimators to be iterators 2023-02-21 19:37:27 -08:00
Sean Breckenridge
1cf9dfe5dd tz.via_location: let user customize cachew refresh time 2023-02-21 19:16:06 -08:00
Sean Breckenridge
6d4724ffbc denylist docs/installation instructions 2023-02-21 16:27:55 -08:00
Sean Breckenridge
8971a3915e fatally erro if pyfzf not installed 2023-02-21 16:11:39 -08:00
Sean Breckenridge
90f7dd2ac8 remove REQUIRES from denylist 2023-02-21 02:51:24 -08:00
Sean Breckenridge
cdc5a9a537 add pyfzf_iter install to tox 2023-02-21 02:25:38 -08:00
Sean Breckenridge
43005de5e4 deprecated via_ip should still have REQUIRES 2023-02-21 02:09:15 -08:00
Sean Breckenridge
00c135c460 rename dateishexact to dateish 2023-02-21 02:02:03 -08:00
Sean Breckenridge
2fa0b5cef8 add denylist implementation 2023-02-21 01:28:53 -08:00
Dima Gerasimov
130c273513 my.telegram.telegram_backup enhancements
- add chat handle
- add permalink
- more precise types
2023-02-21 02:44:18 +00:00
Dima Gerasimov
c63177e186 general/ci: clean up mypy-misc pipeline, only exclude specific files instead
marked some module configs which aren't really ready for public use as type: ignore
2023-02-21 00:20:58 +00:00
Dima Gerasimov
eff9c02886 my.fbmessenger.android: add optional facebook_id 2023-02-20 20:14:15 +00:00
Dima Gerasimov
af874d2d75 my.fbmessenger.android: minor refactoring, comments & error handling 2023-02-20 20:14:15 +00:00
Dima Gerasimov
6493859ba5 my.telegram: initial module from telegram_backup 2023-02-19 01:20:38 +00:00
Dima Gerasimov
6594ad24dc my.tinder.android: speedup unique_everseen by adding unsafe_hash 2023-02-19 01:20:38 +00:00
Dima Gerasimov
458633ea96 my.tinder.android: add a bit of logging 2023-02-19 01:20:38 +00:00
Sean Breckenridge
ce2a42c45a gpslogger: sort input by splitting on device id 2023-02-16 02:28:44 -08:00
Sean Breckenridge
a7cc89bbfb tz/via_location.py: update import to fallback 2023-02-16 02:28:08 -08:00
Sean Breckenridge
fdfd22bef2 add datasources to gpslogger/google_takeout 2023-02-16 02:25:15 -08:00
Sean Breckenridge
36beab5f17 via_home: add accuracy, cache history 2023-02-15 22:28:07 -08:00
Sean Breckenridge
02ea0b26dd make mypy error more specific 2023-02-15 21:36:58 -08:00
Sean Breckenridge
5b8b1d3bbf remove todo 2023-02-15 21:28:48 -08:00
Sean Breckenridge
9769748939 estimate_from helper, via_home estimator, all.py 2023-02-15 21:26:05 -08:00
Dima Gerasimov
0e884fe166 core/modules: switch away from using override_config to tmp_config in some tests & faka data generators 2023-02-09 02:35:09 +00:00
Dima Gerasimov
5ac5636e7f core: better support for ad-hoc configs
properly reload/unload the relevant modules so hopefully no more weird hacks should be required

relevant
- https://github.com/karlicoss/promnesia/issues/340
- https://github.com/karlicoss/HPI/issues/46
2023-02-09 02:35:09 +00:00
Dima Gerasimov
fb0c1289f0 my.fbmessenger.export: use context manager to properly close sqlite connection 2023-02-08 02:18:00 +00:00
Dima Gerasimov
bb5ad2b6ac core: make hpi install more defensive, just warn on no requirements
this is useful for backwards compatibility if modules remove their requirements
2023-02-07 01:57:00 +00:00
Dima Gerasimov
5c82d0faa9 switch from using dataset to raw sqlite3 module
dataset is kinda unmaintaned and currently broken due to sqlalchemy 2.0 changes

resolves https://github.com/karlicoss/HPI/issues/264
2023-02-07 01:57:00 +00:00
Dima Gerasimov
9c432027b5 instagram.android: fix missing id 2023-02-07 01:57:00 +00:00
Sean Breckenridge
52b6acbcbf use protocol for locations 2023-02-03 18:59:41 -08:00
Sean Breckenridge
24c87e423b use __future__ annotations 2023-01-30 15:22:30 -08:00
Sean Breckenridge
31981b8f34 add fallback_locations for via_ip 2023-01-27 11:46:22 -08:00
Sean Breckenridge
f2c9715dbc add stub via_ip file 2023-01-27 11:17:35 -08:00
Sean Breckenridge
138afb68a7 add fallback model 2023-01-27 11:17:21 -08:00
Sean Breckenridge
a4468a42da move via_ip to fallback 2023-01-27 10:54:45 -08:00
Sean Breckenridge
3638964e98 move home to fallback/via_home.py 2023-01-27 10:52:24 -08:00
Sean Breckenridge
54e6fe6ab5 ci: try disabling parallel pip installs on windows 2022-12-17 21:07:30 +00:00
Sean Breckenridge
ad52e131a0 google.takeout.parser: recreate cache on upgrade
https://github.com/seanbreckenridge/google_takeout_parser/pull/37
2022-12-17 21:07:30 +00:00
Sean Breckenridge
716a2c82ba core/serialize: serialize stdlib Decimal class 2022-10-19 00:07:30 +01:00
Dima Gerasimov
7098d6831f fix mypy in _identity
seems easier to just ignore considering it's "internal" function

also a couple of tests to make sure it infers types correctly
2022-10-19 00:06:23 +01:00
Dima Gerasimov
5f1d41fa52 my.twitter.archive: fix for newer format (tweets filename changed to tweets.js) 2022-10-19 00:06:23 +01:00
Dima Gerasimov
ca91be8154 twitter.archive: fix legacy config detection
apparently .name contains the parent module so previously it was throwing the exception instead
2022-10-19 00:06:23 +01:00