xulbux 1.5.9__py3-none-any.whl → 1.6.0__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.

Potentially problematic release.


This version of xulbux might be problematic. Click here for more details.

xulbux/__init__.py CHANGED
@@ -19,7 +19,7 @@
19
19
  • REGEX PATTERN TEMPLATES xx.Regex
20
20
  """
21
21
 
22
- __version__ = "1.5.9"
22
+ __version__ = "1.6.0"
23
23
  __author__ = "XulbuX"
24
24
  __email__ = "xulbux.real@gmail.com"
25
25
  __license__ = "MIT"
xulbux/xx_string.py CHANGED
@@ -122,11 +122,8 @@ class String:
122
122
  @staticmethod
123
123
  def to_camel_case(string: str, upper: bool = True) -> str:
124
124
  """Will convert the string of any type of casing to UpperCamelCase or lowerCamelCase if `upper` is false."""
125
- return (
126
- (parts := String.decompose(string))[0].lower()
127
- if upper
128
- else "" + "".join(part.capitalize() for part in (parts[1:] if upper else parts))
129
- )
125
+ parts = String.decompose(string)
126
+ return ("" if upper else parts[0].lower()) + "".join(part.capitalize() for part in (parts if upper else parts[1:]))
130
127
 
131
128
  @staticmethod
132
129
  def to_delimited_case(string: str, delimiter: str = "_", screaming: bool = False) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xulbux
3
- Version: 1.5.9
3
+ Version: 1.6.0
4
4
  Summary: A library which includes a lot of really helpful functions.
5
5
  Author-email: XulbuX <xulbux.real@gmail.com>
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- xulbux/__init__.py,sha256=1I5Hbze_27gyM9k1JJ_JZdVUV8EM-7zQrNNpbvUtToE,1658
1
+ xulbux/__init__.py,sha256=atWR3hKxFB9Jq182TOrwhLHIEaYW5go9F6xosD76dog,1658
2
2
  xulbux/_cli_.py,sha256=U25ZrtpQgpKXtvOSTBBbh7-AJ_WTeZ95A66DQARAqzo,3558
3
3
  xulbux/_consts_.py,sha256=2-swueg8B5retfsAQqmR8nFNc06tqAwpL__TOv3V4kw,4882
4
4
  xulbux/xx_code.py,sha256=dAksTh2Fw6-XTIGn8eEJVUlvJOsrWbctDZJDk4cs8FQ,5137
@@ -11,11 +11,11 @@ xulbux/xx_format_codes.py,sha256=NIleZ9TrXdF0i9UMCZP7ZI_k1ChJjYlHCFAcHZHHq2c,148
11
11
  xulbux/xx_json.py,sha256=1xAYBmpb4o8hOS_TaMQW2E5pZdE1YqbUdSJm-53wm-s,5054
12
12
  xulbux/xx_path.py,sha256=KB1HGYCxFB3_T97RVACajy3-QiksbviZVIW9-iQcr4s,4558
13
13
  xulbux/xx_regex.py,sha256=-dU1x4GDhFKEg0uQPT6uw9Yyo0vo7f98TtlicG9uBJo,7872
14
- xulbux/xx_string.py,sha256=SC5Wn-rp601sre5cTFCVrvKeHr6v1Y_GIkqMcLWF4b0,7128
14
+ xulbux/xx_string.py,sha256=21gV3ozegkimLbCk4PMDD_ObxYElREABxuZ0p1Ga2HY,7090
15
15
  xulbux/xx_system.py,sha256=yehO57ggWDRJbeFoTE1VisW4QrbkqZzAyjKoL3xHx9k,3935
16
- xulbux-1.5.9.dist-info/LICENSE,sha256=6NflEcvzFEe8_JFVNCPVwZBwBhlLLd4vqQi8WiX_Xk4,1084
17
- xulbux-1.5.9.dist-info/METADATA,sha256=Exj7GULPxlgsB9PlaASWXeD9JX4wPmy1pnasSp7vR3A,6836
18
- xulbux-1.5.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
19
- xulbux-1.5.9.dist-info/entry_points.txt,sha256=a3womfLIMZKnOFiyy-xnVb4g2qkZsHR5FbKKkljcGns,94
20
- xulbux-1.5.9.dist-info/top_level.txt,sha256=FkK4EZajwfP36fnlrPaR98OrEvZpvdEOdW1T5zTj6og,7
21
- xulbux-1.5.9.dist-info/RECORD,,
16
+ xulbux-1.6.0.dist-info/LICENSE,sha256=6NflEcvzFEe8_JFVNCPVwZBwBhlLLd4vqQi8WiX_Xk4,1084
17
+ xulbux-1.6.0.dist-info/METADATA,sha256=ZGzDhbqYvTl-dg68I0WFesKfkvlG_Vm-2iJL8-DVRyg,6836
18
+ xulbux-1.6.0.dist-info/WHEEL,sha256=A3WOREP4zgxI0fKrHUG8DC8013e3dK3n7a6HDbcEIwE,91
19
+ xulbux-1.6.0.dist-info/entry_points.txt,sha256=a3womfLIMZKnOFiyy-xnVb4g2qkZsHR5FbKKkljcGns,94
20
+ xulbux-1.6.0.dist-info/top_level.txt,sha256=FkK4EZajwfP36fnlrPaR98OrEvZpvdEOdW1T5zTj6og,7
21
+ xulbux-1.6.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (75.7.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5