funcnodes-basic 0.1.0__py3-none-any.whl → 0.1.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- funcnodes_basic/__init__.py +1 -1
- funcnodes_basic/strings.py +29 -4
- {funcnodes_basic-0.1.0.dist-info → funcnodes_basic-0.1.2.dist-info}/METADATA +1 -1
- funcnodes_basic-0.1.2.dist-info/RECORD +8 -0
- funcnodes_basic-0.1.0.dist-info/RECORD +0 -8
- {funcnodes_basic-0.1.0.dist-info → funcnodes_basic-0.1.2.dist-info}/WHEEL +0 -0
funcnodes_basic/__init__.py
CHANGED
funcnodes_basic/strings.py
CHANGED
@@ -549,8 +549,19 @@ def string_isascii(s: str) -> bool:
|
|
549
549
|
{"name": "encoded"},
|
550
550
|
],
|
551
551
|
)
|
552
|
-
def string_encode(
|
553
|
-
|
552
|
+
def string_encode(
|
553
|
+
s: str,
|
554
|
+
encoding: POSSIBLE_DECODINGS_TYPE = "utf-8",
|
555
|
+
errors: Literal[
|
556
|
+
"strict",
|
557
|
+
"replace",
|
558
|
+
"ignore",
|
559
|
+
"xmlcharrefreplace",
|
560
|
+
"backslashreplace",
|
561
|
+
"namereplace",
|
562
|
+
] = "replace",
|
563
|
+
) -> bytes:
|
564
|
+
return s.encode(encoding, errors)
|
554
565
|
|
555
566
|
|
556
567
|
@fn.NodeDecorator(
|
@@ -561,8 +572,19 @@ def string_encode(s: str, encoding: POSSIBLE_DECODINGS_TYPE = "utf-8") -> bytes:
|
|
561
572
|
{"name": "decoded"},
|
562
573
|
],
|
563
574
|
)
|
564
|
-
def string_decode(
|
565
|
-
|
575
|
+
def string_decode(
|
576
|
+
b: bytes,
|
577
|
+
encoding: POSSIBLE_DECODINGS_TYPE = "utf-8",
|
578
|
+
errors: Literal[
|
579
|
+
"strict",
|
580
|
+
"replace",
|
581
|
+
"ignore",
|
582
|
+
"xmlcharrefreplace",
|
583
|
+
"backslashreplace",
|
584
|
+
"namereplace",
|
585
|
+
] = "replace",
|
586
|
+
) -> str:
|
587
|
+
return b.decode(encoding, errors)
|
566
588
|
|
567
589
|
|
568
590
|
@fn.NodeDecorator(
|
@@ -691,6 +713,7 @@ regex_shelf = fn.Shelf(
|
|
691
713
|
re_escape,
|
692
714
|
re_split,
|
693
715
|
],
|
716
|
+
subshelves=[],
|
694
717
|
name="Regular Expressions",
|
695
718
|
description="Basic regular expression operations.",
|
696
719
|
)
|
@@ -701,6 +724,8 @@ NODE_SHELF = fn.Shelf(
|
|
701
724
|
string_concat,
|
702
725
|
string_split,
|
703
726
|
string_join,
|
727
|
+
string_encode,
|
728
|
+
string_decode,
|
704
729
|
string_upper,
|
705
730
|
string_lower,
|
706
731
|
string_replace,
|
@@ -0,0 +1,8 @@
|
|
1
|
+
funcnodes_basic/__init__.py,sha256=tNR7s8n_tDNUPe41kUK4F0bZ1XSyN7T1CU2GHPt8C8c,439
|
2
|
+
funcnodes_basic/lists.py,sha256=e0ym5OVZAPRm05gMKxullRspql0oIaHEh4RxXCUsVbE,1553
|
3
|
+
funcnodes_basic/logic.py,sha256=X1gHjQzhGYYFJwV0Y-L0Cty3CD-w6UWbcax72JWmGoM,3577
|
4
|
+
funcnodes_basic/math.py,sha256=9kYKXCH1f8lXvuxiUJnTORUp29rYrjmi24Di71toiDE,11280
|
5
|
+
funcnodes_basic/strings.py,sha256=t89-YUgptDb06DZq9UiOcfCWpOWbfWVbYNwXlalD_y4,16203
|
6
|
+
funcnodes_basic-0.1.2.dist-info/METADATA,sha256=WxUte40KpVbJPi4h7pUT8jPRqZu4LO8nHtJeW2ZdbSg,432
|
7
|
+
funcnodes_basic-0.1.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
8
|
+
funcnodes_basic-0.1.2.dist-info/RECORD,,
|
@@ -1,8 +0,0 @@
|
|
1
|
-
funcnodes_basic/__init__.py,sha256=6xtcdZgh46Taz6ro_8Yfs9eNLBX9XD1hXspxZ_RYHcI,439
|
2
|
-
funcnodes_basic/lists.py,sha256=e0ym5OVZAPRm05gMKxullRspql0oIaHEh4RxXCUsVbE,1553
|
3
|
-
funcnodes_basic/logic.py,sha256=X1gHjQzhGYYFJwV0Y-L0Cty3CD-w6UWbcax72JWmGoM,3577
|
4
|
-
funcnodes_basic/math.py,sha256=9kYKXCH1f8lXvuxiUJnTORUp29rYrjmi24Di71toiDE,11280
|
5
|
-
funcnodes_basic/strings.py,sha256=UqzZEuQ4aYf3dLCc2HK7O3FiIMbS-aYJ-hkpzON1sho,15750
|
6
|
-
funcnodes_basic-0.1.0.dist-info/METADATA,sha256=2aQIJh11BLCCX-AInD5U7k8FmVRCEI0cHW87bhDDcf4,432
|
7
|
-
funcnodes_basic-0.1.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
8
|
-
funcnodes_basic-0.1.0.dist-info/RECORD,,
|
File without changes
|