Fix fatal bug

Update README
Bump to version 0.0.4
This commit is contained in:
StableLlama
2025-05-07 18:47:10 +02:00
parent 2a0c87f9a4
commit b23c1bce7b
3 changed files with 27 additions and 5 deletions
+24 -2
View File
@@ -16,7 +16,30 @@ These nodes are very lightweight and require no additional dependencies.
# Features
- STRING: all Python string functions
- **STRING**: String manipulation nodes
- Basic functions: capitalize, casefold, center, concat, count, encode/decode, find/rfind, join, lower/upper, replace, split, strip, etc.
- String checking: contains, endswith, startswith
- Case conversion: lower, upper, swapcase, title, capitalize
- Validation: isalnum, isalpha, isdigit, isnumeric, etc.
- **LIST**: List manipulation nodes
- Creation: create, create_empty
- Modification: append, extend, insert, remove, pop, clear, set_item
- Access: get_item, slice, index, contains
- Information: length, count
- Operations: sort, reverse, copy, join, zip, flatten
- Unpacking: unpack
- **INT**: Integer operation nodes
- Basic operations: add, subtract, multiply, divide, modulus, power
- Bit operations: bit_length, to_bytes, from_bytes, bit_count
- **FLOAT**: Floating-point operation nodes
- Basic operations: add, subtract, multiply, divide, power, round
- Specialized: is_integer, as_integer_ratio, to_hex, from_hex
- **BOOLEAN**: Boolean logic nodes
- Logic operations: and, or, not, xor, nand, nor
## Tests
@@ -24,4 +47,3 @@ This repo contains unit tests written in Pytest in the `tests/` directory. It is
- [build-pipeline.yml](.github/workflows/build-pipeline.yml) will run pytest and linter on any open PRs
- [validate.yml](.github/workflows/validate.yml) will run [node-diff](https://github.com/Comfy-Org/node-diff) to check for breaking changes
+1 -1
View File
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "basic_data_handling"
version = "0.0.3"
version = "0.0.4"
description = """Basic Python functions for manipulating data that every programmer is used to.
Currently supported: BOOLEAN, FLOAT, INT, STRING and data lists."""
authors = [
+2 -2
View File
@@ -201,7 +201,7 @@ class IntToBytes:
DESCRIPTION = cleandoc(__doc__ or "")
FUNCTION = "to_bytes"
def to_bytes(self, int_value: int, length: int, byteorder: Literal["big"|"little"], signed: Literal["True"|"False"]) -> tuple[int]:
def to_bytes(self, int_value: int, length: int, byteorder: Literal["big", "little"], signed: Literal["True", "False"]) -> tuple[int]:
signed_bool = (signed == "True")
return (int_value.to_bytes(length, byteorder=byteorder, signed=signed_bool),)
@@ -228,7 +228,7 @@ class IntFromBytes:
DESCRIPTION = cleandoc(__doc__ or "")
FUNCTION = "from_bytes"
def from_bytes(self, bytes_value, byteorder: Literal["big"|"little"], signed: Literal["True"|"False"]) -> tuple[int]:
def from_bytes(self, bytes_value, byteorder: Literal["big", "little"], signed: Literal["True", "False"]) -> tuple[int]:
signed_bool = (signed == "True")
return (int.from_bytes(bytes_value, byteorder=byteorder, signed=signed_bool),)