Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency mkdocs-git-revision-date-localized-plugin to v1.2.5 #335

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-18-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
<!-- ALL-CONTRIBUTORS-BADGE:END -->
</p>

<p align="center">Python API for Photoshop.</p>
Expand Down Expand Up @@ -70,7 +70,7 @@ pip install photoshop_python_api
```


Since it uses COM (Component Object Model) connect Photoshop, it can be used
Since it uses COM (Component Object Model) connect Photoshop, it can be used
in any DCC software with a python interpreter.


Expand Down Expand Up @@ -181,8 +181,8 @@ Contributions of any kind are welcome!
how to get Photoshop program ID
-------------------------------
```PS>
Get-ChildItem "HKLM:\SOFTWARE\Classes" |
?{ ($_.PSChildName -match "^[a-z]+\.[a-z]+(\.\d+)?$") -and ($_.GetSubKeyNames() -contains "CLSID") } |
Get-ChildItem "HKLM:\SOFTWARE\Classes" |
?{ ($_.PSChildName -match "^[a-z]+\.[a-z]+(\.\d+)?$") -and ($_.GetSubKeyNames() -contains "CLSID") } |
?{ $_.PSChildName -match "Photoshop.Application" } | ft PSChildName
```
![get_program_id](https://i.imgur.com/UwPN7qq.png)
Expand Down
3 changes: 1 addition & 2 deletions docs/gen_api_nav.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Plugin for generate API docs."""

# Import built-in modules
from pathlib import Path

# Import third-party modules
import mkdocs_gen_files
# Import third-party modules


def main():
Expand Down
9 changes: 4 additions & 5 deletions docs/gen_examples.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
"""Plugin for generate API docs."""

# Import built-in modules
import os
from pathlib import Path

# Import third-party modules
from jinja2 import Template
import mkdocs_gen_files
import stringcase
from jinja2 import Template
# Import third-party modules


template = Template(
Expand All @@ -22,11 +21,11 @@
```
{% endfor %}

"""
""",
)


class Examples(object):
class Examples:
def __init__(self, root: Path):
self._root = root

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{%
include-markdown ".././README.md"
%}
%}
16 changes: 8 additions & 8 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
stringcase
mkdocs-material = "^8.2.5"
mkdocstrings-python = "^0.6.6"
mkdocs-pymdownx-material-extras = "^1.6"
mkdocs-same-dir = "^0.1.1"
mkdocs-include-markdown-plugin = "^3.3.0"
mkdocs-gen-files = "^0.3.4"
mkdocs-autolinks-plugin = "^0.4.0"
mkdocs-minify-plugin = "^0.5.0"
mkdocs-gen-files = "^0.3.4"
mkdocs-git-revision-date-localized-plugin = "^1.0.0"
mkdocs-include-markdown-plugin = "^3.3.0"
mkdocs-literate-nav
mkdocs-material = "^8.2.5"
mkdocs-minify-plugin = "^0.5.0"
mkdocs-pymdownx-material-extras = "^1.6"
mkdocs-same-dir = "^0.1.1"
mkdocstrings-python = "^0.6.6"
stringcase
1 change: 0 additions & 1 deletion examples/active_layer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Set the active layer to the last art layer of the active document, or the
# first if the last is already active.

# Import local modules
from photoshop import Session

Expand Down
3 changes: 1 addition & 2 deletions examples/add_metadata.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"""Add metadata to current active document."""

# Import built-in modules
import os

# Import local modules
from photoshop import Session
# Import local modules


with Session(action="new_document") as ps:
Expand Down
8 changes: 3 additions & 5 deletions examples/add_slate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
- Close current document.

"""

# Import built-in modules
from datetime import datetime
import os
from datetime import datetime
from tempfile import mkdtemp

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import third-party modules
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
3 changes: 1 addition & 2 deletions examples/add_start_application_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@
Just like you manually in Script> Script Events Manager to enable the event.

"""

# Import built-in modules
import os
from tempfile import mkdtemp

# Import local modules
from photoshop import Session
# Import local modules


with Session() as ps:
Expand Down
4 changes: 1 addition & 3 deletions examples/apply_crystallize_filter_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
https://github.com/lohriialo/photoshop-scripting-python/blob/master/ApplyCrystallizeFilterAction.py

"""

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
3 changes: 1 addition & 2 deletions examples/apply_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
"""
# Import third-party modules
import examples._psd_files as psd # Import from examples.

import photoshop.api as ps
# Import local modules
# selections in the open document.
import photoshop.api as ps


PSD_FILE = psd.get_psd_files()
Expand Down
1 change: 0 additions & 1 deletion examples/convert_smartobject_to_layer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Convert Smart object to artLayer."""

# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/copy_and_paste.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
https://github.com/lohriialo/photoshop-scripting-python/blob/master/CopyAndPaste.py

"""

# Import local modules
import photoshop.api as ps

Expand Down
1 change: 0 additions & 1 deletion examples/create_new_document.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Create a new document."""

# Import local modules
from photoshop import Session

Expand Down
3 changes: 1 addition & 2 deletions examples/create_thumbnail.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
You can use the thumbnail image to upload to Shotgun or Ftrack.

"""

# Import built-in modules
import os
from tempfile import mkdtemp

# Import local modules
from photoshop import Session
# Import local modules


def create_thumbnail(output_path=None, max_resolution=512):
Expand Down
1 change: 0 additions & 1 deletion examples/creating_a_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
layer and then fill it with a color.

"""

# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/cropping.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""A cropping example."""

# Import local modules
from photoshop import Session

Expand Down
5 changes: 2 additions & 3 deletions examples/export_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
import os
from tempfile import mkdtemp

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import third-party modules
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
5 changes: 2 additions & 3 deletions examples/export_layers_as_png.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# Import built-in modules
import os

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import third-party modules
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
5 changes: 2 additions & 3 deletions examples/export_layers_use_export_options_saveforweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
# Import built-in modules
import os

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import third-party modules
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
2 changes: 0 additions & 2 deletions examples/fill_selection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Fill the current selection with an RGB color.


# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/fit_on_screen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Let the current document Fit on screen."""

# Import local modules
from photoshop import Session

Expand Down
4 changes: 1 addition & 3 deletions examples/get_document_by_name.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""Get document by document name from documents."""

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
3 changes: 1 addition & 2 deletions examples/get_layer_by_name.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
2 changes: 1 addition & 1 deletion examples/hello_world.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import os
from tempfile import mkdtemp

# Import local modules
import photoshop.api as ps
# Import local modules


def hello_world():
Expand Down
1 change: 0 additions & 1 deletion examples/import_image_as_layer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Import a image as a artLayer."""

# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/list_documents.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""List current photoshop all documents."""

# Import local modules
import photoshop.api as ps

Expand Down
1 change: 0 additions & 1 deletion examples/load_selection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This script will demonstrate how to load a selection from a saved alpha
# channel.

# Import local modules
from photoshop import Session

Expand Down
2 changes: 1 addition & 1 deletion examples/open_psd.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Import local modules
from photoshop import Session
import photoshop.api as ps
from photoshop import Session


# style 1
Expand Down
1 change: 0 additions & 1 deletion examples/operate_channels.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""A examples to show you how to operate active document channels."""

# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/operate_layerSet.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""A examples to show you how to operate layerSet."""

# Import local modules
from photoshop import Session

Expand Down
8 changes: 3 additions & 5 deletions examples/photoshop_session.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
"""Add slate information dynamically."""

# Import built-in modules
from datetime import datetime
import os
from datetime import datetime
from tempfile import mkdtemp

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import third-party modules
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
4 changes: 1 addition & 3 deletions examples/replace_images.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
"""Replace the image of the current active layer with a new image."""

# Import third-party modules
import examples._psd_files as psd # Import from examples.

# Import local modules
from photoshop import Session
# Import local modules


PSD_FILE = psd.get_psd_files()
Expand Down
1 change: 0 additions & 1 deletion examples/revert_changes.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""This example demonstrates how to roll back history."""

# Import local modules
from photoshop import Session

Expand Down
1 change: 0 additions & 1 deletion examples/rotate_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
https://github.com/lohriialo/photoshop-scripting-python/blob/master/RotateLayer.py

"""

# Import local modules
import photoshop.api as ps

Expand Down
Loading
Loading