2 Commits
Author SHA1 Message Date
clemens d7366f986f README update for install and run information 2026-02-28 23:56:14 +09:00
clemens 5f61d15114 fix build publish target 2026-02-19 21:37:44 +09:00
2 changed files with 9 additions and 13 deletions
+7 -11
View File
@@ -6,8 +6,10 @@ This script will update any of the Country Code, Country, State, City and Locati
## Development Setup
Everything is setup with uv, to install the tool itself
```sh
uv sync
uv tool install reverse-geolocate
```
XMP Toolkit also needs the [Exempi Library](http://libopenraw.freedesktop.org/wiki/Exempi). This one can be install via brew or macports directly.
@@ -16,7 +18,7 @@ See more information for [Python XMP Tool kit](http://python-xmp-toolkit.readthe
## Command line arguments
```sh
uv run reverse-geolocate [-h] -i
reverse-geolocate [-h] -i
[XMP SOURCE FOLDER [XMP SOURCE FOLDER ...]]
[-x [EXCLUDE XMP SOURCE FOLDER [EXCLUDE XMP SOURCE FOLDER ...]]]
[-l LIGHTROOM FOLDER] [-s]
@@ -26,12 +28,6 @@ uv run reverse-geolocate [-h] -i
[-v] [--debug] [--test]
```
to run it from a differnt path
```sh
uv run --project <path to project> reverse-geolocate <arguments ...>
```
### Arguments
Argument | Argument Value | Description
@@ -62,19 +58,19 @@ If the Lightroom lookup is used without the --strict argument and several files
#### Example
```sh
uv run reverse-geolocate -i Photos/2017/01 -i Photos/2017/02 -l LightRoom/MyCatalogue -f overwrite -g <API KEY>
reverse-geolocate -i Photos/2017/01 -i Photos/2017/02 -l LightRoom/MyCatalogue -f overwrite -g <API KEY>
```
Will find all XMP sidecar files in both folders *Photos/2017/01* and *Photos/2017/02* and all folder below it. Uses the Lightroom database at *LightRoom/MyCatalogue*. The script will overwrite all data, even if it is already set
```sh
uv run reverse-geolocate -i Photos/2017/01 -i Photos/2017/02 -x Photos/2017/02/Folder\ A -x Photos/2017/01/Folder\ B/some_file.xmp -l LightRoom/MyCatalogue
reverse-geolocate -i Photos/2017/01 -i Photos/2017/02 -x Photos/2017/02/Folder\ A -x Photos/2017/01/Folder\ B/some_file.xmp -l LightRoom/MyCatalogue
```
Will exlucde "Photos/2017/02/Folder A" from processing. For -x also a file (including the .xmp extension) can be given.
```sh
uv run reverse-geolocate -i Photos/2017/01/Event-01/some_photo.xmp -f location
reverse-geolocate -i Photos/2017/01/Event-01/some_photo.xmp -f location
```
Only works on *some_photo.xmp* file and will only set the *location* field if it is not yet set.
+2 -2
View File
@@ -15,8 +15,8 @@ reverse-geolocate = "reverse_geolocate.reverse_geolocate:main"
# MARK: build target
[[tool.uv.index]]
name = "private-pypi"
url = "https://git.gullevek.jp/api/packages/PyPI/pypi/simple/"
publish-url = "https://git.gullevek.jp/api/packages/PyPI/pypi"
url = "https://git.gullevek.org/api/packages/PyPI/pypi/simple/"
publish-url = "https://git.gullevek.org/api/packages/PyPI/pypi/"
[build-system]
requires = ["uv_build>=0.9.7,<0.10.0"]