Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]
pip install .[dev] numpy torch pillow
- name: Run Linting
run: |
ruff check .
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,16 @@ These nodes are very lightweight and require no additional dependencies.
- Path conversions:
- relative - Computes a relative path from a start path to a target path
- expand_vars - Replaces environment variables in a path with their values
- File loading:
- load STRING from file - Loads a text file and returns its content as a STRING
- load IMAGE from file (RGB) - Loads an image and returns RGB channels as a tensor
- load IMAGE+MASK from file (RGBA) - Loads an image and returns RGB channels as a tensor and alpha channel as a mask
- load MASK from alpha channel - Loads an image and extracts its alpha channel as a mask
- load MASK from greyscale/red - Loads an image and creates a mask from its greyscale or red channel
- File saving:
- save STRING to file - Saves a string to a text file with optional directory creation
- save IMAGE to file - Saves an image tensor to a file in various formats (PNG, JPG, WEBP, JXL)
- save IMAGE+MASK to file - Saves an image with transparency using a mask as the alpha channel

### SET: Python set manipulation nodes (as a single variable)
- Creation:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "basic_data_handling"
version = "0.4.3"
version = "0.4.4"
description = """Basic Python functions for manipulating data that every programmer is used to, lightweight with no additional dependencies.

Supported data types:
Expand All @@ -20,7 +20,7 @@ Feature categories:
- Mathematical operations
- Mathematical formula node in a safe implementation
- String manipulation
- File system path handling
- File system path handling, including STRING, IMAGE and MASK load and save
- SET operations"""
authors = [
{name = "StableLlama"}
Expand Down
Loading