222 Commits

Author SHA1 Message Date
Rhet Turnbull
8be71243d5
Refactor ruff (#1155)
* Refactored to make ruff happy

* Refactored tests, fixed bug in Mojave path_raw
2023-08-12 19:24:46 -07:00
Rhet Turnbull
b833cde599
Feature post function return 1136 (#1147)
* Changed return signature for post_function

* Updated post_function.py example

* Added tests for post_function returns ExportResults
2023-08-06 08:47:42 -07:00
Rhet Turnbull
2875b45d6e
Feature post command options 1142 (#1145)
* Added --post-command-break/catch

* Added --post-command-break/catch

* Added --post-command-error and tests

* Fixed help text for --post-command-error
2023-08-05 08:11:47 -07:00
Rhet Turnbull
e937285a72
Feature keep file 1135 (#1139)
* Added gitignorefile

* Fixed gitignorefile for os.PathLike paths

* --keep now follows .gitignore rules

* Fixed ruff QA error

* Added support for .osxphotos_keep file

* Added reference to .osxphotos_keep

* Added tests for .osxphotos_keep

* Updated help text for --cleanup, --keep
2023-08-02 06:37:29 -07:00
dvdkon
c63b08694e
Add .AAE adjustment export (fix #97) (#1113)
Implements #97, export of adjustments data
2023-07-15 07:16:56 -07:00
Rhet Turnbull
2190628e82
Implemented --count, #1098 (#1102) 2023-06-24 10:50:34 -07:00
Rhet Turnbull
bb8e164f21
Unicode refactor (#1101)
* Began refactoring for improving unicode handling

* Added platform and unicode modules

* Added tests for unicode utilities

* Added tests for unicode utilities

* Added tests for unicode utilities

* Added tests for unicode utilities

* Fixed unicode tests for linux

* Fixed unicode tests for linux

* Fixed duplicate alubm name with --add-to-album

* Fixed test for linux

* Fix for duplicate unicode kewyords, see #907, #1085
2023-06-24 10:50:10 -07:00
Rhet Turnbull
2c80226ec8
fixed formatting (#1096) 2023-06-18 16:22:46 -07:00
Rhet Turnbull
ee8053d867 Fixed tests for ubuntu 2023-05-07 07:25:48 -07:00
dvdkon
ca3da647f2
Port to non-MacOS platforms (#1026)
* Port to non-MacOS platforms

* Keep NFD normalization on macOS

* Update locale_util.py

Fix lint error from ruff (runs in CI)

* Update query.py

click.Option first arg needs to be a list (different than click.option)

* Dynamically normalize Unicode paths in test

* Fix missing import

---------

Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
2023-05-07 06:55:56 -07:00
Rhet Turnbull
e7099d250b
Concurrency refactor 999 (#1029)
* Working on making export threadsafe, #999

* Working on making export threadsafe, #999

* refactor for concurrent export, #999

* Fixed race condition in ExportRecord context manager
2023-04-01 09:39:08 -07:00
Rhet Turnbull
ce297ced0a
Added lock files to export to minimize name collisions (#981) 2023-02-11 18:21:15 -08:00
Rhet Turnbull
97a0a65d8a
Feature UUID from stdin 965 (#979)
* Allow --uuid-from-file to read from stdin, #965

* Load query options before opening the database
2023-02-11 09:26:42 -08:00
Rhet Turnbull
0982d0c548 Fixes regression for #640 2023-02-05 18:00:04 -08:00
Rhet Turnbull
007f0e0960
Feature add query command (#970)
* Added query_command and example

* Refactored QUERY_OPTIONS, added query_command, refactored verbose, #930, #931

* Added query options to debug-dump, #966

* Refactored query, #602

* Added precedence test for --load-config

* Refactored handling of query options

* Refactored export_photo

* Removed extraneous print

* Updated API_README

* Updated examples
2023-02-05 14:48:42 -08:00
Rhet Turnbull
9efb99cbd4
Fixed --dry-run with --finder-tags-keywords and --xattr-template, #958 (#961) 2023-01-28 18:08:19 -08:00
oPromessa
80ee142c7f
Added --not-edited option to query | Added corresponding tests for query and export (#956)
* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added test scenarios for --edited and -.-not-edited

* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added query test scenarios for --edited and --not-edited

Added export test scenarios for --edited and --not-edited

* Added --not-edited option to query

Added --not-edited option to query (exclusive with --edited) to search for photos that have not been edited.

Added query test scenarios for --edited and --not-edited

Added export test scenarios for --edited and --not-edited

* Made edited/non-edited mutually exclusive in query() to match other filters

Co-authored-by: Rhet Turnbull <rturnbull@gmail.com>
2023-01-24 20:11:47 -08:00
Rhet Turnbull
8caee5a81b
Added --incloud, --not-incloud, --not-missing, --cloudasset, --not-cloudasset to query options, #800 (#902) 2023-01-08 14:53:16 -08:00
Rhet Turnbull
1b89f85a41
Fix for #853, deleted files not in exportdb --report (#877) 2022-12-19 08:02:29 -08:00
Rhet Turnbull
0472582870
Fix for #872, duplicate results with --exif (and --name) (#876) 2022-12-19 07:39:24 -08:00
Rhet Turnbull
b2b814954b
Added errors to export database, --update-errors to export, #872 (#874) 2022-12-18 14:16:38 -08:00
Rhet Turnbull
a727dc9294
Added --alt-copy method for #807 (#835) 2022-11-14 21:42:02 -08:00
Rhet Turnbull
5665cf1804
Refactor update osxmetadata (#804)
* Updated osxmetadata to use v1.0.0

* Added README_DEV

* fix for missing detected_text xattr

* fix for missing detected_text xattr
2022-10-15 22:12:11 -07:00
Rhet Turnbull
43fcdbc371 Updated dependencies 2022-09-17 09:03:40 -07:00
Rhet Turnbull
e39776b51e
Added --field to dump and query, #777 (#779) 2022-08-27 21:05:57 -07:00
Rhet Turnbull
8e986b451e
Added --print, --quiet, #769, #770 (#773) 2022-08-26 22:17:12 -07:00
Rhet Turnbull
db3c37fb5b
Hot fix for 749 (#750) 2022-08-08 06:26:08 -07:00
Rhet Turnbull
76625b9e84
Feature add keep 730 (#740)
* Implemented #730, --keep

* Implemented #739, fixed --keep to accept relative paths

* Updated to macos-latest

Ref: https://github.com/actions/virtual-environments/issues/5583

* Release files for #730
2022-07-27 08:14:00 -07:00
Rhet Turnbull
5d33dcdcc3 Implemented --favorite-rating, #732 2022-07-23 18:16:06 -07:00
Rhet Turnbull
43512240b3 Updated README.md, fixed broken test 2022-05-28 18:49:25 -07:00
Rhet Turnbull
470839ba0d
Feature report writer #309 (#690)
* Initial implementation of ReportWriter for #309

* Initial implementation of ReportWriterJSON

* Added sqlite report format

* Added auto-flush to report writer, fixed exportdb --info to output json

* Added exportdb --report
2022-05-15 09:30:17 -07:00
Rhet Turnbull
391815dd94 --report can now accept a template, #339 2022-05-14 09:04:04 -07:00
Rhet Turnbull
e7eefce5c5 Added --no-keyword, #637 2022-05-07 14:24:06 -07:00
Rhet Turnbull
35a4777ae4
Added --limit, #592 (#685) 2022-05-07 08:59:01 -07:00
Rhet Turnbull
57deb23988 Added --added-after, --added-before, --added-in-last, #439 2022-05-05 17:38:59 -07:00
Rhet Turnbull
4533057142
Added --added-after, --added-before, --added-in-last, #439 (#683) 2022-05-05 17:06:55 -07:00
Rhet Turnbull
9bc5890589 Added moment_info, #71 2022-05-03 22:12:09 -07:00
Rhet Turnbull
77433b01ed
Added --year query option, #593 (#670) 2022-04-20 06:27:03 -07:00
Rhet Turnbull
afe5ed3dc0 Added validation for template string options 2022-04-18 10:28:02 -07:00
Rhet Turnbull
382d097285 fix verbose output when redirected to file, #661 2022-03-27 09:52:23 -07:00
Rhet Turnbull
d8802368fc
Added --tmpdir, #650 (#651) 2022-03-02 06:58:23 -08:00
Rhet Turnbull
25d6f148be
CLI refactor (#642)
* Initial refactoring of cli.py

* Renamed cli_help

* Refactored all cli commands

* Dropped support for 3.7

* Added test for export with --min-size

* Version bump

* Fixed python version
2022-02-26 22:29:19 -08:00
Rhet Turnbull
5b66962ac1 Fixed export of bursts with --uuid and --selected, #640 2022-02-21 22:58:54 -08:00
Rhet Turnbull
b92a681795
Added --ramdb option (#639) 2022-02-21 11:20:02 -08:00
Rhet Turnbull
ecbd370a47
Exportdb refactor (#638)
* Working on export_db refactor

* Added exportdb command, removed logic for missing export_db, #630

* Updated tests

* updated docs

* Added --config-only, #606

* Added validation for --exportdb

* Added --info to exportdb command

* Fixed exportdb --touch-file to migrate database if needed

* Added exportdb --migrate
2022-02-21 09:15:01 -08:00
Rhet Turnbull
d8204e65eb Allow multiple characters as path_sep, #634 2022-02-14 06:46:19 -08:00
Rhet Turnbull
060729c4c4 Added --debug and crash reporter to export, #628 2022-02-13 14:51:31 -08:00
Rhet Turnbull
30abdddaf3 Added --force-update, #621 2022-02-12 21:01:16 -08:00
Rhet Turnbull
bfa888adc5 Added --force-update, #621 2022-02-12 17:49:40 -08:00
Rhet Turnbull
ac4083bfbb Fix for #630 2022-02-12 00:23:50 -08:00