Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d7366f986f | ||
|
|
5f61d15114 | ||
|
|
e7804dd4aa | ||
|
|
a857e1a0eb |
@@ -6,8 +6,10 @@ This script will update any of the Country Code, Country, State, City and Locati
|
|||||||
|
|
||||||
## Development Setup
|
## Development Setup
|
||||||
|
|
||||||
|
Everything is setup with uv, to install the tool itself
|
||||||
|
|
||||||
```sh
|
```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.
|
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
|
## Command line arguments
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
uv run reverse-geolocate [-h] -i
|
reverse-geolocate [-h] -i
|
||||||
[XMP SOURCE FOLDER [XMP SOURCE FOLDER ...]]
|
[XMP SOURCE FOLDER [XMP SOURCE FOLDER ...]]
|
||||||
[-x [EXCLUDE XMP SOURCE FOLDER [EXCLUDE XMP SOURCE FOLDER ...]]]
|
[-x [EXCLUDE XMP SOURCE FOLDER [EXCLUDE XMP SOURCE FOLDER ...]]]
|
||||||
[-l LIGHTROOM FOLDER] [-s]
|
[-l LIGHTROOM FOLDER] [-s]
|
||||||
@@ -26,12 +28,6 @@ uv run reverse-geolocate [-h] -i
|
|||||||
[-v] [--debug] [--test]
|
[-v] [--debug] [--test]
|
||||||
```
|
```
|
||||||
|
|
||||||
to run it from a differnt path
|
|
||||||
|
|
||||||
```sh
|
|
||||||
uv run --project <path to project> reverse-geolocate <arguments ...>
|
|
||||||
```
|
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|
|
||||||
Argument | Argument Value | Description
|
Argument | Argument Value | Description
|
||||||
@@ -62,19 +58,19 @@ If the Lightroom lookup is used without the --strict argument and several files
|
|||||||
#### Example
|
#### Example
|
||||||
|
|
||||||
```sh
|
```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
|
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
|
```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.
|
Will exlucde "Photos/2017/02/Folder A" from processing. For -x also a file (including the .xmp extension) can be given.
|
||||||
|
|
||||||
```sh
|
```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.
|
Only works on *some_photo.xmp* file and will only set the *location* field if it is not yet set.
|
||||||
|
|||||||
+7
-1
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "reverse-geolocate"
|
name = "reverse-geolocate"
|
||||||
version = "0.1.0"
|
version = "2.0.0"
|
||||||
description = "Reverse Geolcate script"
|
description = "Reverse Geolcate script"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.14"
|
requires-python = ">=3.14"
|
||||||
@@ -12,6 +12,12 @@ dependencies = [
|
|||||||
[project.scripts]
|
[project.scripts]
|
||||||
reverse-geolocate = "reverse_geolocate.reverse_geolocate:main"
|
reverse-geolocate = "reverse_geolocate.reverse_geolocate:main"
|
||||||
|
|
||||||
|
# MARK: build target
|
||||||
|
[[tool.uv.index]]
|
||||||
|
name = "private-pypi"
|
||||||
|
url = "https://git.gullevek.org/api/packages/PyPI/pypi/simple/"
|
||||||
|
publish-url = "https://git.gullevek.org/api/packages/PyPI/pypi/"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["uv_build>=0.9.7,<0.10.0"]
|
requires = ["uv_build>=0.9.7,<0.10.0"]
|
||||||
build-backend = "uv_build"
|
build-backend = "uv_build"
|
||||||
|
|||||||
Reference in New Issue
Block a user