xulbux 1.5.9__tar.gz → 1.6.0__tar.gz

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.

Files changed (32) hide show
  1. {xulbux-1.5.9/src/xulbux.egg-info → xulbux-1.6.0}/PKG-INFO +1 -1
  2. {xulbux-1.5.9 → xulbux-1.6.0}/pyproject.toml +1 -1
  3. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/__init__.py +1 -1
  4. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_string.py +2 -5
  5. {xulbux-1.5.9 → xulbux-1.6.0/src/xulbux.egg-info}/PKG-INFO +1 -1
  6. {xulbux-1.5.9 → xulbux-1.6.0}/LICENSE +0 -0
  7. {xulbux-1.5.9 → xulbux-1.6.0}/README.md +0 -0
  8. {xulbux-1.5.9 → xulbux-1.6.0}/setup.cfg +0 -0
  9. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/_cli_.py +0 -0
  10. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/_consts_.py +0 -0
  11. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_code.py +0 -0
  12. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_color.py +0 -0
  13. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_console.py +0 -0
  14. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_data.py +0 -0
  15. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_env_path.py +0 -0
  16. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_file.py +0 -0
  17. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_format_codes.py +0 -0
  18. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_json.py +0 -0
  19. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_path.py +0 -0
  20. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_regex.py +0 -0
  21. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux/xx_system.py +0 -0
  22. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux.egg-info/SOURCES.txt +0 -0
  23. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux.egg-info/dependency_links.txt +0 -0
  24. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux.egg-info/entry_points.txt +0 -0
  25. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux.egg-info/requires.txt +0 -0
  26. {xulbux-1.5.9 → xulbux-1.6.0}/src/xulbux.egg-info/top_level.txt +0 -0
  27. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_cmd_info.py +0 -0
  28. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_color.py +0 -0
  29. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_color_types.py +0 -0
  30. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_data.py +0 -0
  31. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_env_vars.py +0 -0
  32. {xulbux-1.5.9 → xulbux-1.6.0}/tests/test_format_codes.py +0 -0
@@ -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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "xulbux"
7
- version = "1.5.9"
7
+ version = "1.6.0"
8
8
  authors = [{ name = "XulbuX", email = "xulbux.real@gmail.com" }]
9
9
  description = "A library which includes a lot of really helpful functions."
10
10
  readme = "README.md"
@@ -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"
@@ -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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes