Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aoirint/psdlayer2dirpy

PSDファイルのレイヤー構造+画像をディレクトリ構造+PNGとしてダンプするスクリプト
https://github.com/aoirint/psdlayer2dirpy

Last synced: about 1 month ago
JSON representation

PSDファイルのレイヤー構造+画像をディレクトリ構造+PNGとしてダンプするスクリプト

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_psdlayer2dirpy

psdlayer2dir image.psd -o output/
```

### Docker

```shell
docker pull aoirint/psdlayer2dirpy

docker 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.10

poetry 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/)