Registry / devops / pytoshop

pytoshop

JSON →
library1.2.1pypypiunverified

A Python library to write Photoshop PSD files. It enables programmatic creation of layered PSD documents including support for layers, groups, blend modes, and adjustment layers. Version 1.2.1 is the latest; release cadence is low, with last release in 2021.

pip install pytoshop
INSTALL
IMPORT
SIG · PYTOSHOP
P
pytoshop
devopspythonv1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PsdWriter
✓ from pytoshop import PsdWriter
✗ from pytoshop.writer import PsdWriter

Creates a simple PSD file with one red layer.

from pytoshop.writer import PsdWriter from pytoshop import layer from pytoshop import group # Create a new PSD file writer = PsdWriter() # Add a layer with solid color red_layer = layer.Layer(100, 100, name='Red Layer') red_layer.pixels = [255, 0, 0] # RGB color writer.add_layer(red_layer) # Save to file writer.write('example.psd')
Debug
Known issues
gotchapytoshop can only write PSD files, not read them. Do not expect to open or parse existing PSD files.
fix
Use a different library (e.g., psd-tools) for reading PSD files.
affects: all
gotchaLayer and Group classes are in separate modules (layer and group), not directly in pytoshop namespace.
fix
Import from pytoshop.layer and pytoshop.group instead of from pytoshop.
affects: all
gotchaThe library is not actively maintained; the last release was in 2021. It may have compatibility issues with newer Python versions (3.10+) due to unmaintained dependencies.
fix
Consider pinning Python to 3.9 or lower, or use an alternative like psd-tools.
affects: >=1.0
deprecatedSome blend modes and advanced features are only partially implemented. Not all Photoshop features are supported.
fix
Check the source code or documentation for supported features; contribute to project if needed.
affects: 1.2.x
Upgrade
Version history
1.2.1latest on PyPI · released Nov 30, 2018
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
pytoshop — pip install pytoshop · libregistry