Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aoirint/psdlayer2dirpy
PSDファイルのレイヤー構造+画像をディレクトリ構造+PNGとしてダンプするスクリプト
https://github.com/aoirint/psdlayer2dirpy
Last synced: about 1 month ago
JSON representation
PSDファイルのレイヤー構造+画像をディレクトリ構造+PNGとしてダンプするスクリプト
- Host: GitHub
- URL: https://github.com/aoirint/psdlayer2dirpy
- Owner: aoirint
- License: unlicense
- Created: 2022-08-08T15:39:59.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-04T03:04:14.000Z (over 1 year ago)
- Last Synced: 2024-10-12T18:27:37.585Z (3 months ago)
- Language: Python
- Homepage: https://hub.docker.com/r/aoirint/psdlayer2dirpy
- Size: 169 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psdlayer2dirpy
- GitHub:
- PyPI:
- Docker Hub:## Usage
## Binary
Download from [Releases](https://github.com/aoirint/psdlayer2dirpy/releases).
```
./psdlayer2dir image.psd -o output/
```### PyPI
```shell
pip3 install aoirint_psdlayer2dirpypsdlayer2dir image.psd -o output/
```### Docker
```shell
docker pull aoirint/psdlayer2dirpydocker run --rm -v "$PWD:/work" -w /work aoirint/psdlayer2dirpy image.psd -o output/
```## Development
This repository uses [Poetry](https://github.com/python-poetry/poetry).
### pyenv + Poetry
```shell
env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10.10
pyenv local 3.10.10poetry env remove python
poetry env use python
poetry install
```### Format code
```shell
poetry run pysen run lint format
```### Library management
```shell
# Add dependency
poetry add {package_name}
poetry add -G dev {package_name}# Dump `requirements*.txt`
poetry export --without-hashes -o requirements.txt
poetry export --without-hashes --with dev -o requirements-dev.txt
```### Docker
```shell
docker build -t psdlayer2dirpy .docker run --rm -v "./work:/work" -w /work psdlayer2dirpy image.psd -o output/
```## Dependencies
- psd-tools: [Docs](https://psd-tools.readthedocs.io/en/latest/) [GitHub](https://github.com/psd-tools/psd-tools) [PyPI](https://pypi.org/project/psd-tools/)