psd-toolkit
A Python toolkit for batch processing Adobe Photoshop PSD files. Automatically hide text layers and export to PNG format.
Features
- 🚀 Batch process multiple PSD files in a directory
- ⚡ Parallel processing for faster execution
- 📊 Progress bar with detailed status
- 📝 Automatically hide all text layers
- 🖼️ Export processed files as PNG (default) or other formats
- 📁 Support for recursive directory processing
- ⚡ Preserve folder structure in output
Installation
Install using pip:
pip install psd-toolkit
Or using uv:
uv add psd-toolkit
Usage
Command Line
Process PSD files in a directory:
psd-toolkit -d /path/to/psd/files
Process recursively, specify output directory, and use JPEG format:
psd-toolkit -d /path/to/psd/files -o /path/to/output -r -f jpeg
Options
-d, --dir: Input directory containing PSD files (required)-o, --output: Output directory for processed files (default: input directory)-f, --output-format: Output image format (default: png)-r, --recursive: Process subdirectories recursively
Python API
You can also use psd-toolkit as a Python library:
from psd_toolkit.psd.processor import PSDProcessor
from psd_toolkit.job import BatchJob
# Process a single file
processor = PSDProcessor("image.psd")
processor.load()
processor.hide_text_layers()
processor.export("output.jpg", format="jpeg")
# Batch process
job = BatchJob(
input_dir="./psd_files",
output_dir="./output",
recursive=True,
output_format="png",
max_workers=4
)
job.run()
Requirements
- Python >= 3.10
- psd-tools >= 1.12.0
- pillow >= 12.0.0
- tqdm >= 4.67.1
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Issues
Report bugs and request features on GitHub Issues.
Metadata
Release files for psd-toolkit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| psd_toolkit-0.2.0.tar.gz | 67.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| psd_toolkit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.0 kB
Release files / psd_toolkit-0.2.0.tar.gz
| Download URL | psd_toolkit-0.2.0.tar.gz |
|---|---|
| Size | 67.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a0e2d855f71f964389edd21b38c6dde8dbb0311924c1243a29d03b26643ed7a
|
|
BLAKE2b-256 checksum How to use checksums |
95c284aa64c17595093d1685b02582256f2203090bfc5cafd39f18e685f370c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / psd_toolkit-0.2.0-py3-none-any.whl
| Download URL | psd_toolkit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2280bc5f237d2dae7544de34e568ffbe5b26e215d5c4e7dcb4a420090793ae8e
|
|
BLAKE2b-256 checksum How to use checksums |
24dafaec2c96527ba79833138d12b1a687a488533ffb402cfdb1db31e259ee5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for psd-toolkit 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.