2150 Commits

Author SHA1 Message Date
Rhet Turnbull
d2b7783125
Added shallow json() option, #1038 (#1040) 2023-04-08 11:10:29 -07:00
Rhet Turnbull
f4a743468d
Fix for json() failing on photos in projects, #999 (#1039) 2023-04-08 09:49:31 -07:00
Rhet Turnbull
adac985309 Fix non-incrementing photo count, #999 2023-04-08 09:09:33 -07:00
allcontributors[bot]
4939324d2f
add dvdkon as a contributor for code (#1037)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-04-07 08:17:00 -07:00
Christian Clauss
1a3b4c2afe
Lint Python twice: 1. Whole repo, 2. Exclude tests/ (#1035)
* Lint Python twice: 1. Whole repo, 2. Exclude tests/

Both runs take less than a second so...
`line-length=366` is more reasonable`
```
    - run: pip install --user ruff  # Lint Python twice: 1. Whole repo, 2. Exclude tests/
    - run: ruff --format=github --line-length=7228 --target-version=py39
                --ignore=E402,E712,E721,E722,E741,F401,F403,F405,F541,F601,F811,F822,F841 .
    - run: ruff --format=github --line-length=366 --target-version=py39
                --exclude=tests/ --ignore=E402,E712,E722,E741,F401,F403,F405,F541,F822,F841 .
```

* Update configoptions.py
2023-04-07 08:14:51 -07:00
Rhet Turnbull
1b16a39cef Updated CHANGELOG.md [skip ci] 2023-04-02 22:07:10 -07:00
Rhet Turnbull
0d31a152be Test fix for Ventura v0.59.1 2023-04-02 22:00:35 -07:00
Rhet Turnbull
34fbd87fc6
Release 0.59.1 (#1034) 2023-04-02 21:18:18 -07:00
Christian Clauss
3ddfea6a3d
Fix two undefined names in phototemplate.py (#1030)
* Fix two undefined names in phototemplate.py

% `ruff --exit-zero --select=E9,F63,F7,F82,YTT .`
```
osxphotos/cli/report_writer.py:22:1: F822 Undefined name `ExportReportWriterSqlite` in `__all__`
osxphotos/cli/report_writer.py:22:1: F822 Undefined name `SyncReportWriterSqlite` in `__all__`
osxphotos/phototemplate.py:1156:108: F821 Undefined name `vals`
osxphotos/phototemplate.py:1685:29: F821 Undefined name `PhotoInfo`
Found 4 errors.
```

* Avoid cyclic imports
2023-04-02 19:45:33 -07:00
Christian Clauss
8b59615ff7
GitHub Action to lint Python code (#1025)
* GitHub Action to lint Python code

[Ruff](https://beta.ruff.rs/) supports [over 500 lint rules](https://beta.ruff.rs/docs/rules) including bandit, isort, pylint, pyupgrade, and flake8 plus its plugins, and is written in Rust for speed.

The `ruff` Action uses minimal steps to __run in ~5 seconds__, rapidly providing intuitive GitHub Annotations to contributors.

![image](https://user-images.githubusercontent.com/3709715/223758136-afc386d2-70aa-4eff-953a-2c2d82ceea23.png)

* ruff --target-version=py39
2023-04-02 19:45:13 -07:00
allcontributors[bot]
c590a16d70
add cclauss as a contributor for code (#1033)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-04-02 19:44:49 -07:00
Rhet Turnbull
36ce86c4a6
Removed file locking, performance improvements (#1032) 2023-04-02 19:42:28 -07:00
Rhet Turnbull
93d22c646f Updated example [skip ci] 2023-04-01 13:59:47 -07:00
Rhet Turnbull
77000d85c6 Updated example [skip ci] 2023-04-01 10:26:20 -07:00
Rhet Turnbull
005f821501 Updated CHANGELOG.md [skip ci] 2023-04-01 10:17:16 -07:00
Rhet Turnbull
622f8952b7 Release 0.59.0 v0.59.0 2023-04-01 10:09:26 -07:00
Rhet Turnbull
b7816be459 Added concurrent export example 2023-04-01 10:03:05 -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
2c4d0f4546 Fixed help text 2023-03-14 12:26:19 -07:00
Rhet Turnbull
84954f4551 Updated CHANGELOG.md [skip ci] 2023-03-14 12:22:04 -07:00
allcontributors[bot]
10ebe9e02b
add pekingduck as a contributor for ideas (#1021)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
v0.5.2 v0.58.2
2023-03-14 12:07:37 -07:00
Rhet Turnbull
6813e9f2b4
Release files for 0.58.2 (#1020) 2023-03-14 12:06:43 -07:00
Rhet Turnbull
1d1b69601f
Added --replace-keywords to batch-edit #1018 (#1019) 2023-03-14 11:58:13 -07:00
Rhet Turnbull
3ad4c7a4cc Updated CHANGELOG.md [skip ci] 2023-03-09 06:59:08 -08:00
allcontributors[bot]
0dd628682f
add ianmmoir as a contributor for bug (#1016)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
v0.58.1
2023-03-09 06:55:37 -08:00
Rhet Turnbull
8f7d88d8da Release files for 0.58.1 2023-03-09 06:50:23 -08:00
Rhet Turnbull
4fcd381262 Hot fix for null date, #1014 2023-03-09 06:49:05 -08:00
Rhet Turnbull
10d1ea8b2c rebuild pages 2023-03-09 06:32:58 -08:00
Rhet Turnbull
cfb623d19b
Feature appends prepends 1010 (#1015)
* Added appends, prepends filters, #1010

* Fixed initialization of field_arg
2023-03-09 06:22:24 -08:00
Rhet Turnbull
a08680ed02
Added python and macOS versions to --version (#1008) 2023-02-28 06:43:06 -08:00
Rhet Turnbull
56ca54ad0d Updated CHANGELOG.md [skip ci] 2023-02-25 20:05:08 -08:00
allcontributors[bot]
2e4046c319
add eecue as a contributor for bug (#1005)
* update README.md [skip ci]

* update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
v0.58.0
2023-02-25 14:56:09 -08:00
Rhet Turnbull
0b6be87d15
Release files for 0.58.0 (#1004) 2023-02-25 14:54:48 -08:00
Rhet Turnbull
b7c98aa548 Fixed docstring 2023-02-25 14:49:16 -08:00
Rhet Turnbull
0694662f78 Moved custom param types to param_types 2023-02-25 14:43:37 -08:00
Rhet Turnbull
7eb35b31ac Updated supported versions 2023-02-25 14:40:44 -08:00
Rhet Turnbull
94f484e9ec
Feature date added 998 (#1003)
* Implemented --date-added, #998

* Added --date-added-from-photo

* Fixed typehint
2023-02-25 14:38:49 -08:00
Rhet Turnbull
0e1613f134
Fix error on closing export db, #999 (#1002) 2023-02-25 14:38:07 -08:00
Rhet Turnbull
1661cc9f0b
Feature batch edit 949 (#1001)
* Initial implementation of batch-edit, #949

* Added tests for batch-edit, #949
2023-02-25 14:37:26 -08:00
Rhet Turnbull
1981340108 Added batch_edit.py example, [skip ci] 2023-02-23 06:43:41 -08:00
Rhet Turnbull
c3ca25fe33 Added batch_edit.py example, [skip ci] 2023-02-22 06:36:53 -08:00
Rhet Turnbull
1e10df26c9 Added batch_edit.py example, [skip ci] 2023-02-22 06:35:00 -08:00
Rhet Turnbull
8fdecd56f5 Added batch_edit.py example, [skip ci] 2023-02-21 21:29:59 -08:00
Rhet Turnbull
b2ed70b00c Added batch_edit.py example, [skip ci] 2023-02-21 21:26:07 -08:00
Rhet Turnbull
3a77a3e5f0 Added batch_edit.py example, [skip ci] 2023-02-21 21:16:53 -08:00
Rhet Turnbull
e89f8a14b4 Added batch_edit.py example, [skip ci] 2023-02-20 21:45:37 -08:00
Rhet Turnbull
82295513fe Added batch_edit.py example, [skip ci] 2023-02-20 21:43:37 -08:00
Rhet Turnbull
e7e3e72f75 Added batch_edit.py example, [skip ci] 2023-02-20 17:50:09 -08:00
Rhet Turnbull
9006708a30 Added batch_edit.py example, [skip ci] 2023-02-20 17:39:02 -08:00
Rhet Turnbull
4c2570a81d Added batch_edit.py example, [skip ci] 2023-02-20 17:18:38 -08:00