Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 3.88 KB

CHANGELOG.md

File metadata and controls

29 lines (16 loc) · 3.88 KB

2022-03-20

See #33

Replaced file_backups modules with git_history, using git_doc_history

I don't expect anyone else was using these modules, but there's a script here to convert from the old format to new. Feel free to open an issue if you were using these -- could maintain them in a separate HPI repo as old repositories

2022-01-30

Relevant PR; If you're having issues with the my.config blocks, compare yours to mine

Renamed some modules to allow for future extension, and less possibilities for conflicts with other related HPI modules under a particular company/service/source

For reference, here is the current directory structure as of this commit

In particular, anything with a gdpr/data_export/privacy_export is named to be that, instead of globally squashing the namespace module to the single modulename.py file

Converting a single-file module to a namespace module is always a breaking change, and though one can do hacky traceback introspection (to possible delay the change from a non-namespace package to a namespace package. However, if anyone else is using this code, its likely in the background through promnesia, so most likely situation is that they don't see that till I deprecate it anyways), but its only a temporary solution until the __init__.py/module.py file is eventually removed -- so better to do them all now instead of waiting till it becomes 'too late'

A user (or me) may want to write their own module with the same name, meaning they can't use both at the same time if mine is just my.module_name.py, since my module existing means any other namespace packages can't have the same base name (see reorder_editable for an explanation)

The one motivating this change is apple.py, since the old apple.py was parsing the privacy export, but I wanted to add something to parse imessage files. Someone else may want to add other apple/file.py files to parse other parts of apple/mac behaviour, but me having the single apple.py either means they have to have their repo before mine on their path (but doing so means they overwrite the current apple.py file, so they can't use that to parse their privacy export, even if they were trying to do something else entirely), or they have to rename their code to something like my_apple/file.py to create a new namespace module

Possible 'Exceptions' to this:

  • For some files, if the possibility for conflict is low (I can't imagine anyone exporting data from the source in any other way, e.g., ipython, project_euler) or the name is so specific to the source that its not needed (e.g. ttt, window_watcher)
  • For files where I can't imagine you'd want both mine and your/custom implementation the same time, e.g. if you override bash, zsh, you're probably creating your own solution to parse that source, and don't need mine (If that's not the case, feel free to open an issue)
  • For some of my modules, I've renamed them from what they do to their service/project names instead (albums to nextalbums; money to mint), so I'm not holding the generic name of some function when I don't really need to (have since moved those to HPI-personal)