kkpyutil 1.33.4__tar.gz → 1.33.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kkpyutil
3
- Version: 1.33.4
3
+ Version: 1.33.6
4
4
  Summary: Building blocks for sysadmin and DevOps
5
5
  Home-page: https://github.com/kakyoism/kkpyutil/
6
6
  License: MIT
@@ -1514,7 +1514,7 @@ def convert_compound_cases(text, style='pascal', instyle='auto'):
1514
1514
 
1515
1515
  def _detect_casing(txt):
1516
1516
  case_patterns = {
1517
- 'snake': r'^[a-z]+(_[a-zA_Z0-9]+)*$',
1517
+ 'snake': r'^[a-z][a-z0-9]*(_[a-zA_Z0-9]+)*$',
1518
1518
  'SNAKE': r'^[A-Z]+(_[A-Z0-9]+)*$',
1519
1519
  'camel': r'^[a-z]+([A-Z][a-z0-9]*)*$',
1520
1520
  'kebab': r'^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)+$',
@@ -1671,7 +1671,8 @@ def is_number_text(text):
1671
1671
  """
1672
1672
  # Remove leading/trailing whitespace
1673
1673
  text = text.strip()
1674
-
1674
+ if not text:
1675
+ return False
1675
1676
  # Check for negative numbers
1676
1677
  if text.startswith('-'):
1677
1678
  text = text[1:]
@@ -2864,8 +2865,7 @@ def remove_unsupported_dict_keys(mydict: dict, supported_keys: set):
2864
2865
 
2865
2866
 
2866
2867
  def _test():
2867
- # print(say('hello'))
2868
- alert('line1\nline2')
2868
+ print(say('hello'))
2869
2869
 
2870
2870
 
2871
2871
  if __name__ == '__main__':
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kkpyutil"
3
- version = "1.33.4"
3
+ version = "1.33.6"
4
4
  description = "Building blocks for sysadmin and DevOps"
5
5
  authors = ["Beinan Li <li.beinan@gmail.com>"]
6
6
  maintainers = ["Beinan Li <li.beinan@gmail.com>"]
File without changes
File without changes