{"id":45946,"library":"pytoshop","title":"pytoshop","description":"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.","status":"active","version":"1.2.1","language":"python","source_language":"en","source_url":"https://github.com/mdboom/pytoshop","tags":["photoshop","psd","image","generation"],"install":[{"cmd":"pip install pytoshop","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"wrong":"from pytoshop.writer import PsdWriter","symbol":"PsdWriter","correct":"from pytoshop import PsdWriter"}],"quickstart":{"code":"from pytoshop.writer import PsdWriter\nfrom pytoshop import layer\nfrom pytoshop import group\n\n# Create a new PSD file\nwriter = PsdWriter()\n\n# Add a layer with solid color\nred_layer = layer.Layer(100, 100, name='Red Layer')\nred_layer.pixels = [255, 0, 0]  # RGB color\nwriter.add_layer(red_layer)\n\n# Save to file\nwriter.write('example.psd')","lang":"python","description":"Creates a simple PSD file with one red layer."},"warnings":[{"fix":"Use a different library (e.g., psd-tools) for reading PSD files.","message":"pytoshop can only write PSD files, not read them. Do not expect to open or parse existing PSD files.","severity":"gotcha","affected_versions":"all"},{"fix":"Import from pytoshop.layer and pytoshop.group instead of from pytoshop.","message":"Layer and Group classes are in separate modules (layer and group), not directly in pytoshop namespace.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider pinning Python to 3.9 or lower, or use an alternative like psd-tools.","message":"The 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.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Check the source code or documentation for supported features; contribute to project if needed.","message":"Some blend modes and advanced features are only partially implemented. Not all Photoshop features are supported.","severity":"deprecated","affected_versions":"1.2.x"}],"env_vars":null,"search_vec":"'1.2.1':29 '2021':41 'adjust':26 'blend':23 'cadenc':34 'creation':13 'document':17 'enabl':11 'file':9 'generat':45 'group':22 'imag':44 'includ':18 'last':38 'latest':32 'layer':15,21,27 'librari':4 'low':36 'mode':24 'photoshop':7,42 'programmat':12 'psd':8,16,43 'python':3 'pytoshop':1 'releas':33,39 'support':19 'version':28 'write':6","created_at":"2026-06-07T12:57:30.660574+00:00","updated_at":"2026-06-07T12:57:30.660574+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\n  File \"/tmp/tmpkapntxe6/venv/lib/python3.12/site-packages/pytoshop/__init__.py\", line 7, in <module>\n    from .core import PsdFile\n  File \"/tmp/tmpkapntxe6/venv/lib/python3.12/site-packages/pytoshop/core.py\", line 19, in <mod"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/mdboom/pytoshop","github":"https://github.com/mdboom/pytoshop","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}