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
Sean Breckenridge
52b6acbcbf
use protocol for locations
2023-02-03 18:59:41 -08:00
karlicoss
8d70dd725d
ci: fix tox config
...
seems that after version 4.0 it's necessary to specify environments to run
previosly it was picking them up automatically
2023-01-30 17:35:26 -08:00
Sean Breckenridge
24c87e423b
use __future__ annotations
2023-01-30 15:22:30 -08:00
Sean Breckenridge
703e7c67a2
tox: interleave passenv comments
2023-01-30 15:19:57 -08:00
Sean Breckenridge
98fccdb1ad
tox/passenv: move comments above block
2023-01-29 12:06:08 -08:00
Sean Breckenridge
3eaba82790
revert tox changes so error appears in CI
2023-01-29 11:59:19 -08:00
Sean Breckenridge
2c9bd64ed7
separate passenv with newlines
2023-01-27 23:50:34 -08:00
Sean Breckenridge
7a9bb7f811
separate passenv with commas
2023-01-27 11:57:01 -08:00
Sean Breckenridge
b401622985
fix passenv tox configuration
2023-01-27 11:54:39 -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
Dima Gerasimov
c8cf0272f9
instagram.gdpr: use new path to personal information
2022-10-19 00:06:23 +01:00
Sean Breckenridge
7925ec81b6
docs: browser - fix examples for config
2022-08-29 00:03:32 +01:00
Dima Gerasimov
119b295d71
core: allow legacy modules to be used in 'hpi module install' for backwards compatibility
...
but show warning
kinda hacky, but hopefully we will simplify it further when we have more such legacy modules
2022-06-07 22:59:08 +01:00
Sean Breckenridge
dbd15a7ee8
source: propogate help url for config errors
2022-06-07 21:33:38 +01:00
Dima Gerasimov
cef9b4c6d3
ci: try using --parallel install for mypy pipeline
...
`time tox -e mypy-misc` (removed the actual mypy call)
before (each module in a separate 'hpi install' command)
```
real 1m45.901s
user 1m19.555s
sys 0m5.491s
```
in a single 'hpi install' command (multiple modules)
```
real 1m31.252s
user 1m6.028s
sys 0m5.065s
```
single 'hpi install' command with --parallel
```
real 0m15.674s
user 0m50.986s
sys 0m3.249s
```
2022-06-06 09:49:15 +01:00
Dima Gerasimov
f0397b00ff
core/main: experimental --parallel flag for hpi module install
2022-06-06 09:49:15 +01:00
Dima Gerasimov
5f0231c5ee
core/main: allow passing multiple packages to 'module install'/'module requires' subcommands
2022-06-06 09:49:15 +01:00
Dima Gerasimov
016f28250b
general: initial flake8 checks (for now manual)
...
fix fairly uncontroversial stuff in my.core like
- line spacing, which isn't too annoying (e.g. unlike many inline whitespace checks that break vertical formatting)
- unused imports/variables
- too broad except
2022-06-05 22:28:38 +01:00
Dima Gerasimov
fd0c65d176
my.tinder: initial module for android databases
2022-06-04 17:16:28 +01:00
Dima Gerasimov
b9d788efd0
some enhancements for facebook/instagram modules
...
figured out that datetimes are naive
better username handling + investigation of thread names
2022-06-04 17:16:28 +01:00
Sean Breckenridge
7323e99504
zulip: add stats function
2022-06-04 10:04:33 +01:00
Dima Gerasimov
b5f266c2bd
my.instagram: add initial all.py + some experiments on nicer errors
2022-06-03 23:49:27 +01:00
Dima Gerasimov
bf3dd6e931
core/sqlite: experiment at typing SELECT query (to some extent)
...
ideally would be cool to use TypedDict here somehow, but perhaps it'd only be possible after variadic generics https://peps.python.org/pep-0646
2022-06-03 23:49:27 +01:00
Dima Gerasimov
7a1b7b1554
core/general: add assert_never + typing annotations for dataset
2022-06-03 23:49:27 +01:00
Dima Gerasimov
fd1a683d49
my.bumble: merge from all previous android exports
2022-06-02 14:21:21 +01:00
Dima Gerasimov
b96c9f4534
fbmessenger: use both id and timestamp for merging
2022-06-02 14:21:21 +01:00
Dima Gerasimov
3faebdd629
core: add Protocol/TypedDict to compat
2022-06-02 14:21:21 +01:00
Dima Gerasimov
186f561018
core: some cleanup for core/init and doctor; fix issue with compileall
2022-06-02 14:21:21 +01:00
Dima Gerasimov
9461df6aa5
general: extract the hack to warn of legacy imports and fallback to core/legacy.py
...
use it both in my.fbmessenger and my.reddit
if in the future any new modules need to be switched to namespace package structure with all.py it should make it easy to do
related:
- https://github.com/karlicoss/HPI/issues/12
- https://github.com/karlicoss/HPI/issues/89
- https://github.com/karlicoss/HPI/issues/102
2022-06-01 23:27:34 +01:00
Dima Gerasimov
8336d18434
general: add an adhoc test for checking mixin behaviour with namespace packages and __init__.py hack
...
also use that hack in my.fbmessenger
2022-06-01 23:27:34 +01:00
Dima Gerasimov
179b657eea
general: add a test for __init__.py fallback for modules which are switching to namespace packages
...
for now just a manual ad-hoc test, will try to set it up on CI later
relevant to the discussion here: 270465792
also potentially relevant to
- https://github.com/karlicoss/HPI/issues/89 (will try to apply to this to reddit/__init__.py later)
- https://github.com/karlicoss/HPI/issues/102
2022-06-01 23:27:34 +01:00
Dima Gerasimov
049820c827
my.github.gdpr: support uncompressed .tar.gz files
...
related to https://github.com/karlicoss/HPI/issues/20
2022-05-31 22:16:05 +01:00
Dima Gerasimov
1b4ca6ad1b
github.gdpr: prepare for using .tag.gz
2022-05-31 22:16:05 +01:00
Dima Gerasimov
73e57b52d1
general: cleanup -- remove main and executable bit where it's not necessary
2022-05-31 22:16:05 +01:00