Dima Gerasimov
27178c0939
my.google.takeout.parser: speedup event merging on newer google_takeout_parser versions
2024-09-13 02:31:12 +01:00
Dima Gerasimov
b594377a59
ruff: enable RUF ruleset
2024-08-28 04:06:32 +01:00
Dima Gerasimov
664c40e3e8
ruff: enable FBT rules to detect boolean arguments use without kwargs
2024-08-28 04:06:32 +01:00
Dima Gerasimov
c08ddbc781
general: small updates for typing while trying out pyright
2024-08-28 04:06:32 +01:00
Dima Gerasimov
7cae9d5bf3
my.google.takeout.paths: migrate to new style lazy config
...
also clean up tests a little and move into my.tests.location.google
2024-08-26 04:00:58 +01:00
Dima Gerasimov
7023088d13
core.common: deprecate outdated LazyLogger alias
2024-08-16 10:22:29 +01:00
Dima Gerasimov
2b0f92c883
my.core: deprecate Path/dataclass imports from my.core during type checking
...
runtime still works for backwards compatibility
2024-08-16 10:22:29 +01:00
Dima Gerasimov
c45c51af22
core.common: move stats-related stuff to my.core.stats and add more thorough tests/docs
...
deprecate core.common.stat and core.common.Stats with backwards compatibility
2024-08-16 10:22:29 +01:00
Dima Gerasimov
973c4205df
core: cleanup deprecations, exclude from type checking and show runtime warnings
...
among affected things:
- core.common.assert_never
- core.common.cproperty
- core.common.isoparse
- core.common.mcachew
- core.common.the
- core.common.tzdatetime
- core.compat.sqlite_backup
2024-08-16 10:22:29 +01:00
Dima Gerasimov
9e72672b4f
legacy google takeout: fix timezone localization
2024-08-03 16:50:09 +01:00
Dima Gerasimov
87a8a7781b
my.google.maps: intitial module for extracting placed data from Android app
2024-01-01 23:46:02 +00:00
Sean Breckenridge
93e475795d
google takeout: support multiple locales
...
uses the known locales in google_takeout_parser
to determine the expected paths for each locale,
and performs a partial match on the paths to
detect and use match_structure
2023-12-31 18:57:30 +00:00
karlicoss
8c2d1c9463
general: use less explicit kompress boilerplate in modules
...
now get_files/kompress library can handle it transparently
2023-10-20 21:13:59 +01:00
Sean Breckenridge
2a46341ce2
my.core.logging: compatibility with HPI_LOGS
...
re-adds a removed check for HPI_LOGS, add some docs
fix the checks for browserexport/takeout logs to
use the computed level from my.core.logging
2023-09-07 02:36:26 +01:00
Dima Gerasimov
c12224af74
misc: replace uses of pytz.utc with timezone.utc where it makes sense
2023-06-09 03:31:13 +01: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
66a00c6ada
docs: add docs for google_takeout_parser
2022-04-25 02:52:34 +01:00
Dima Gerasimov
f9f73dda24
my.google.takeout.parser: new takeout parser, using https://github.com/seanbreckenridge/google_takeout_parser
...
adapted from https://github.com/seanbreckenridge/HPI/blob/master/my/google_takeout.py
additions:
- pass my.core.time.user_forced() to google_takeout_parser
without it, BST gets weird results for me, e.g. US/Aleutian
- support ZipPath via a config switch
- flexible error handling via a config switch
2022-04-16 08:31:40 +01:00
Sean Breckenridge
5ecd4b4810
cleanup; remove unused imports
2021-04-02 08:38:06 +01:00
Dima Gerasimov
ce157c47cc
google.takeout: support another reported time format
...
https://github.com/karlicoss/HPI/issues/114
2021-03-08 00:40:19 +00:00
Dima Gerasimov
1fd2a9f643
core/time: more flexible support for resolving TZ abbreviation -> TZ ambiguities
...
addresses https://github.com/karlicoss/HPI/issues/103
for now via experimental time.tz.force_abbreviations config variable
not sure if this whole things is doomed to be resolved properly
2021-03-08 00:40:19 +00:00
Dima Gerasimov
15789a4149
kyhton.kompress: move to core (with a fallback, used in promnesia)
2020-10-29 03:13:18 +01:00
Dima Gerasimov
e8e4994c02
google.takeout.paths: return Optional if there are no takeouts
2020-10-12 21:48:04 +02:00
Dima Gerasimov
1f2e595be9
Initial my.time.tz provider, infer from location with daily resolution
2020-10-09 22:09:19 +02:00
Dima Gerasimov
fd41caa640
core: add __NOT_HPI_MODULE__ flag to mark utility files etc
...
(more of an intermediate solution perhaps)
2020-09-30 21:54:09 +02:00
Dima Gerasimov
976b3da6f4
Autoextract documentation for some modules, improve docs
2020-05-10 18:09:12 +01:00
Dima Gerasimov
e92ca215e3
Adapt takeout and twitter configs to the new pattern
...
Works fairly well so far?
2020-05-10 15:56:57 +01:00
Dima Gerasimov
5fd5b91b92
Try the NamedTuple apptoach got google takeouts
2020-05-09 23:32:30 +01:00
Dima Gerasimov
8b8a85e8c3
kompress.kopen improvements
...
- tests
- uniform handling for bytes/str, always return utf8 str by default
2020-05-04 08:37:36 +01:00
Dima Gerasimov
51ae8601b4
Update docstrings and add links
2020-04-26 16:50:06 +01:00
Dima Gerasimov
a84b51807f
more takeout to a separate subpackage
2020-04-24 18:10:33 +01:00