Updated README.md to document template system
This commit is contained in:
@@ -1408,7 +1408,12 @@ The following substitutions are availabe for use with `PhotoInfo.render_template
|
|||||||
|{created.month}|Month name in user's locale of the file creation time|
|
|{created.month}|Month name in user's locale of the file creation time|
|
||||||
|{created.mon}|Month abbreviation in the user's locale of the file creation time|
|
|{created.mon}|Month abbreviation in the user's locale of the file creation time|
|
||||||
|{created.dd}|2-digit day of the month (zero padded) of file creation time|
|
|{created.dd}|2-digit day of the month (zero padded) of file creation time|
|
||||||
|
|{created.dow}|Day of week in user's locale of the file creation time|
|
||||||
|{created.doy}|3-digit day of year (e.g Julian day) of file creation time, starting from 1 (zero padded)|
|
|{created.doy}|3-digit day of year (e.g Julian day) of file creation time, starting from 1 (zero padded)|
|
||||||
|
|{created.hour}|2-digit hour of the file creation time|
|
||||||
|
|{created.min}|2-digit minute of the file creation time|
|
||||||
|
|{created.sec}|2-digit second of the file creation time|
|
||||||
|
|{created.strftime}|Apply strftime template to file creation date/time. Should be used in form {created.strftime,TEMPLATE} where TEMPLATE is a valid strftime template, e.g. {created.strftime,%Y-%U} would result in year-week number of year: '2020-23'. If used with no template will return null value. See https://strftime.org/ for help on strftime templates.|
|
||||||
|{modified.date}|Photo's modification date in ISO format, e.g. '2020-03-22'|
|
|{modified.date}|Photo's modification date in ISO format, e.g. '2020-03-22'|
|
||||||
|{modified.year}|4-digit year of file modification time|
|
|{modified.year}|4-digit year of file modification time|
|
||||||
|{modified.yy}|2-digit year of file modification time|
|
|{modified.yy}|2-digit year of file modification time|
|
||||||
@@ -1417,6 +1422,9 @@ The following substitutions are availabe for use with `PhotoInfo.render_template
|
|||||||
|{modified.mon}|Month abbreviation in the user's locale of the file modification time|
|
|{modified.mon}|Month abbreviation in the user's locale of the file modification time|
|
||||||
|{modified.dd}|2-digit day of the month (zero padded) of the file modification time|
|
|{modified.dd}|2-digit day of the month (zero padded) of the file modification time|
|
||||||
|{modified.doy}|3-digit day of year (e.g Julian day) of file modification time, starting from 1 (zero padded)|
|
|{modified.doy}|3-digit day of year (e.g Julian day) of file modification time, starting from 1 (zero padded)|
|
||||||
|
|{modified.hour}|2-digit hour of the file modification time|
|
||||||
|
|{modified.min}|2-digit minute of the file modification time|
|
||||||
|
|{modified.sec}|2-digit second of the file modification time|
|
||||||
|{place.name}|Place name from the photo's reverse geolocation data, as displayed in Photos|
|
|{place.name}|Place name from the photo's reverse geolocation data, as displayed in Photos|
|
||||||
|{place.country_code}|The ISO country code from the photo's reverse geolocation data|
|
|{place.country_code}|The ISO country code from the photo's reverse geolocation data|
|
||||||
|{place.name.country}|Country name from the photo's reverse geolocation data|
|
|{place.name.country}|Country name from the photo's reverse geolocation data|
|
||||||
@@ -1437,7 +1445,6 @@ The following substitutions are availabe for use with `PhotoInfo.render_template
|
|||||||
|{label}|Image categorization label associated with a photo (Photos 5 only)|
|
|{label}|Image categorization label associated with a photo (Photos 5 only)|
|
||||||
|{label_normalized}|All lower case version of 'label' (Photos 5 only)|
|
|{label_normalized}|All lower case version of 'label' (Photos 5 only)|
|
||||||
|
|
||||||
|
|
||||||
### Utility Functions
|
### Utility Functions
|
||||||
|
|
||||||
The following functions are located in osxphotos.utils
|
The following functions are located in osxphotos.utils
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
""" Builds the template table in markdown format for README.md """
|
""" Builds the template table in markdown format for README.md """
|
||||||
|
|
||||||
from osxphotos.photoinfo.template import (
|
from osxphotos.phototemplate import (
|
||||||
TEMPLATE_SUBSTITUTIONS,
|
TEMPLATE_SUBSTITUTIONS,
|
||||||
TEMPLATE_SUBSTITUTIONS_MULTI_VALUED,
|
TEMPLATE_SUBSTITUTIONS_MULTI_VALUED,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user