rite 0.2.2__tar.gz → 0.2.4__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.
Files changed (494) hide show
  1. {rite-0.2.2 → rite-0.2.4}/PKG-INFO +18 -17
  2. {rite-0.2.2 → rite-0.2.4}/README.md +16 -16
  3. {rite-0.2.2 → rite-0.2.4}/pyproject.toml +30 -13
  4. {rite-0.2.2 → rite-0.2.4}/src/rite/__main__.py +12 -16
  5. {rite-0.2.2 → rite-0.2.4}/src/rite/__version__.py +1 -1
  6. rite-0.2.4/src/rite/cli.py +287 -0
  7. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_autokey.py +1 -1
  8. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_structured.py +1 -0
  9. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_histogram.py +2 -0
  10. {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/server_http.py +12 -13
  11. {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_run.py +28 -12
  12. {rite-0.2.2 → rite-0.2.4}/LICENSE +0 -0
  13. {rite-0.2.2 → rite-0.2.4}/src/rite/__init__.py +0 -0
  14. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/__init__.py +0 -0
  15. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/__init__.py +0 -0
  16. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/bounded_buffer.py +0 -0
  17. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/circular_buffer.py +0 -0
  18. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/ring_buffer.py +0 -0
  19. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/sliding_window.py +0 -0
  20. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/__init__.py +0 -0
  21. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/lfu_cache.py +0 -0
  22. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/lru_cache.py +0 -0
  23. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/ttl_cache.py +0 -0
  24. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/__init__.py +0 -0
  25. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_deep_get.py +0 -0
  26. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_deep_set.py +0 -0
  27. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_filter.py +0 -0
  28. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_invert.py +0 -0
  29. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_merge.py +0 -0
  30. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/__init__.py +0 -0
  31. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_chunk.py +0 -0
  32. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_flatten.py +0 -0
  33. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_group_by.py +0 -0
  34. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_interleave.py +0 -0
  35. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_partition.py +0 -0
  36. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_unique.py +0 -0
  37. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/__init__.py +0 -0
  38. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/object_pool.py +0 -0
  39. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/observer.py +0 -0
  40. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/singleton.py +0 -0
  41. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/__init__.py +0 -0
  42. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/circular_queue.py +0 -0
  43. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/deque_wrapper.py +0 -0
  44. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/priority_queue.py +0 -0
  45. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/set/__init__.py +0 -0
  46. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/__init__.py +0 -0
  47. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/binary_tree_node.py +0 -0
  48. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/nested_set.py +0 -0
  49. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/tree_node.py +0 -0
  50. {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/trie.py +0 -0
  51. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/__init__.py +0 -0
  52. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/__init__.py +0 -0
  53. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_base64_decode.py +0 -0
  54. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_base64_encode.py +0 -0
  55. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_hex_decode.py +0 -0
  56. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_hex_encode.py +0 -0
  57. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_json_decode.py +0 -0
  58. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_json_encode.py +0 -0
  59. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_url_decode.py +0 -0
  60. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_url_encode.py +0 -0
  61. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/is_protected_type.py +0 -0
  62. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_bool.py +0 -0
  63. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_bytes.py +0 -0
  64. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_number.py +0 -0
  65. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_percentage.py +0 -0
  66. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/__init__.py +0 -0
  67. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_bool.py +0 -0
  68. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_bytes.py +0 -0
  69. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_dict.py +0 -0
  70. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_float.py +0 -0
  71. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_int.py +0 -0
  72. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_list.py +0 -0
  73. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_number.py +0 -0
  74. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_percentage.py +0 -0
  75. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_set.py +0 -0
  76. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_str.py +0 -0
  77. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_tuple.py +0 -0
  78. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/__init__.py +0 -0
  79. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_length.py +0 -0
  80. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_temperature.py +0 -0
  81. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_time.py +0 -0
  82. {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_weight.py +0 -0
  83. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/__init__.py +0 -0
  84. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/__init__.py +0 -0
  85. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_atbash.py +0 -0
  86. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_baconian.py +0 -0
  87. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_caesar.py +0 -0
  88. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_four_square.py +0 -0
  89. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_playfair.py +0 -0
  90. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_rail_fence.py +0 -0
  91. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_rot13.py +0 -0
  92. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_scytale.py +0 -0
  93. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_transposition.py +0 -0
  94. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_vigenere.py +0 -0
  95. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_xor.py +0 -0
  96. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/__init__.py +0 -0
  97. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_blake2b.py +0 -0
  98. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_blake2s.py +0 -0
  99. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_md5.py +0 -0
  100. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha1.py +0 -0
  101. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha256.py +0 -0
  102. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha384.py +0 -0
  103. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha3_256.py +0 -0
  104. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha3_512.py +0 -0
  105. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha512.py +0 -0
  106. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/__init__.py +0 -0
  107. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_bytes.py +0 -0
  108. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_choice.py +0 -0
  109. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_hex.py +0 -0
  110. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_int.py +0 -0
  111. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_urlsafe.py +0 -0
  112. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/__init__.py +0 -0
  113. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_from_name.py +0 -0
  114. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_get_version.py +0 -0
  115. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_hex.py +0 -0
  116. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_is_random.py +0 -0
  117. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_is_valid.py +0 -0
  118. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_random.py +0 -0
  119. {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_string.py +0 -0
  120. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/__init__.py +0 -0
  121. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/__init__.py +0 -0
  122. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_dump.py +0 -0
  123. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_inspect.py +0 -0
  124. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_locals.py +0 -0
  125. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_trace.py +0 -0
  126. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/error_handler.py +0 -0
  127. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/__init__.py +0 -0
  128. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_catch.py +0 -0
  129. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_format_traceback.py +0 -0
  130. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_get_chain.py +0 -0
  131. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_retry.py +0 -0
  132. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logger.py +0 -0
  133. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/__init__.py +0 -0
  134. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_to_console.py +0 -0
  135. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_to_file.py +0 -0
  136. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_with_context.py +0 -0
  137. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/__init__.py +0 -0
  138. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_counter.py +0 -0
  139. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_gauge.py +0 -0
  140. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_timer.py +0 -0
  141. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/__init__.py +0 -0
  142. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_count_calls.py +0 -0
  143. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_memory.py +0 -0
  144. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_stopwatch.py +0 -0
  145. {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_timer.py +0 -0
  146. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/__init__.py +0 -0
  147. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/__init__.py +0 -0
  148. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_compress.py +0 -0
  149. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_settings.py +0 -0
  150. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_uncompress.py +0 -0
  151. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/__init__.py +0 -0
  152. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_copy.py +0 -0
  153. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_copy_multiple.py +0 -0
  154. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_delete.py +0 -0
  155. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_move.py +0 -0
  156. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_read_bytes.py +0 -0
  157. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_read_text.py +0 -0
  158. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_rename.py +0 -0
  159. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_size_to_string.py +0 -0
  160. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_spooled.py +0 -0
  161. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_spooled_settings.py +0 -0
  162. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_write_bytes.py +0 -0
  163. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_write_text.py +0 -0
  164. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/__init__.py +0 -0
  165. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_construct.py +0 -0
  166. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_normalize.py +0 -0
  167. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_regex.py +0 -0
  168. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_validate.py +0 -0
  169. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_sanitize.py +0 -0
  170. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_to_date.py +0 -0
  171. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_to_datestring.py +0 -0
  172. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/__init__.py +0 -0
  173. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_content_delete.py +0 -0
  174. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_create.py +0 -0
  175. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_ensure_exists.py +0 -0
  176. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_list_files.py +0 -0
  177. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_list_folders.py +0 -0
  178. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_size_get.py +0 -0
  179. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_size_to_string.py +0 -0
  180. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/__init__.py +0 -0
  181. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_guess.py +0 -0
  182. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_guess_from_path.py +0 -0
  183. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_match.py +0 -0
  184. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_read_head_bytes.py +0 -0
  185. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_sniff.py +0 -0
  186. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_validate.py +0 -0
  187. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_verify.py +0 -0
  188. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/__init__.py +0 -0
  189. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_clean.py +0 -0
  190. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_exists.py +0 -0
  191. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_is_dir.py +0 -0
  192. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_is_file.py +0 -0
  193. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_leaf.py +0 -0
  194. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_safe_join.py +0 -0
  195. {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_secure.py +0 -0
  196. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/__init__.py +0 -0
  197. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/__init__.py +0 -0
  198. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_chain.py +0 -0
  199. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_compose.py +0 -0
  200. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_pipe.py +0 -0
  201. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/__init__.py +0 -0
  202. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/currying_curry.py +0 -0
  203. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/currying_uncurry.py +0 -0
  204. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/__init__.py +0 -0
  205. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_debounce.py +0 -0
  206. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_deprecated.py +0 -0
  207. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_once.py +0 -0
  208. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_throttle.py +0 -0
  209. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/__init__.py +0 -0
  210. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/memoization_lru_cache.py +0 -0
  211. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/memoization_memoize.py +0 -0
  212. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/__init__.py +0 -0
  213. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/partial_apply.py +0 -0
  214. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/partial_right.py +0 -0
  215. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/__init__.py +0 -0
  216. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_constant.py +0 -0
  217. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_identity.py +0 -0
  218. {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_negate.py +0 -0
  219. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/__init__.py +0 -0
  220. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/__init__.py +0 -0
  221. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/entities_decode.py +0 -0
  222. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/entities_encode.py +0 -0
  223. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/__init__.py +0 -0
  224. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_clean.py +0 -0
  225. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_escape.py +0 -0
  226. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_strip_tags.py +0 -0
  227. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_unescape.py +0 -0
  228. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/__init__.py +0 -0
  229. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/markdown_escape.py +0 -0
  230. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/markdown_to_html.py +0 -0
  231. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/__init__.py +0 -0
  232. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_filename.py +0 -0
  233. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_html.py +0 -0
  234. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_url.py +0 -0
  235. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/__init__.py +0 -0
  236. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_escape.py +0 -0
  237. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_format.py +0 -0
  238. {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_unescape.py +0 -0
  239. {rite-0.2.2 → rite-0.2.4}/src/rite/net/__init__.py +0 -0
  240. {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/__init__.py +0 -0
  241. {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_is_method.py +0 -0
  242. {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_parse_headers.py +0 -0
  243. {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_status_code.py +0 -0
  244. {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/__init__.py +0 -0
  245. {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_guess_extension.py +0 -0
  246. {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_guess_type.py +0 -0
  247. {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_parse.py +0 -0
  248. {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/__init__.py +0 -0
  249. {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/request_get.py +0 -0
  250. {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/request_post.py +0 -0
  251. {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/__init__.py +0 -0
  252. {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/server_sqlite.py +0 -0
  253. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/__init__.py +0 -0
  254. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_build.py +0 -0
  255. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_decode.py +0 -0
  256. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_encode.py +0 -0
  257. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_parse.py +0 -0
  258. {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_parse_query.py +0 -0
  259. {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/__init__.py +0 -0
  260. {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_email.py +0 -0
  261. {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_ipv4.py +0 -0
  262. {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_port.py +0 -0
  263. {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_url.py +0 -0
  264. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/__init__.py +0 -0
  265. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/clamp.py +0 -0
  266. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/__init__.py +0 -0
  267. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_from_percentage.py +0 -0
  268. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_to_decimal.py +0 -0
  269. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_to_percentage.py +0 -0
  270. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/__init__.py +0 -0
  271. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_from_degree_minute_second.py +0 -0
  272. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_to_degree_minute.py +0 -0
  273. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_to_degree_minute_second.py +0 -0
  274. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/float_to_degree_minute.py +0 -0
  275. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/float_to_degree_minute_second.py +0 -0
  276. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/__init__.py +0 -0
  277. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_abs.py +0 -0
  278. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_clamp.py +0 -0
  279. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_pow.py +0 -0
  280. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_sign.py +0 -0
  281. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/__init__.py +0 -0
  282. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_in_range.py +0 -0
  283. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_normalize.py +0 -0
  284. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_scale.py +0 -0
  285. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/__init__.py +0 -0
  286. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_ceil.py +0 -0
  287. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_floor.py +0 -0
  288. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_round.py +0 -0
  289. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_trunc.py +0 -0
  290. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/__init__.py +0 -0
  291. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_mean.py +0 -0
  292. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_median.py +0 -0
  293. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_min_max.py +0 -0
  294. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_sum.py +0 -0
  295. {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/value_to_decimal.py +0 -0
  296. {rite-0.2.2 → rite-0.2.4}/src/rite/py.typed +0 -0
  297. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/__init__.py +0 -0
  298. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/__init__.py +0 -0
  299. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_del_attr.py +0 -0
  300. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_get_attr.py +0 -0
  301. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_has_attr.py +0 -0
  302. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_set_attr.py +0 -0
  303. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/__init__.py +0 -0
  304. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_comments.py +0 -0
  305. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_docstring.py +0 -0
  306. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_file.py +0 -0
  307. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/__init__.py +0 -0
  308. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_class.py +0 -0
  309. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_function.py +0 -0
  310. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_module.py +0 -0
  311. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/__init__.py +0 -0
  312. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_functions.py +0 -0
  313. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_members.py +0 -0
  314. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_methods.py +0 -0
  315. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_source.py +0 -0
  316. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/__init__.py +0 -0
  317. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_parameters.py +0 -0
  318. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_return_annotation.py +0 -0
  319. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_signature.py +0 -0
  320. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/__init__.py +0 -0
  321. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_class.py +0 -0
  322. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_function.py +0 -0
  323. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_method.py +0 -0
  324. {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_module.py +0 -0
  325. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/__init__.py +0 -0
  326. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/__init__.py +0 -0
  327. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_detect_delimiter.py +0 -0
  328. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_read.py +0 -0
  329. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_write.py +0 -0
  330. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/__init__.py +0 -0
  331. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_get.py +0 -0
  332. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_read.py +0 -0
  333. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_set.py +0 -0
  334. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_write.py +0 -0
  335. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/__init__.py +0 -0
  336. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_dump.py +0 -0
  337. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_dumps.py +0 -0
  338. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_load.py +0 -0
  339. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_loads.py +0 -0
  340. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_validate.py +0 -0
  341. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/__init__.py +0 -0
  342. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_dump.py +0 -0
  343. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_dumps.py +0 -0
  344. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_load.py +0 -0
  345. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_loads.py +0 -0
  346. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/__init__.py +0 -0
  347. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/toml_load.py +0 -0
  348. {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/toml_loads.py +0 -0
  349. {rite-0.2.2 → rite-0.2.4}/src/rite/system/__init__.py +0 -0
  350. {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/__init__.py +0 -0
  351. {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_delete.py +0 -0
  352. {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_get.py +0 -0
  353. {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_list.py +0 -0
  354. {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_set.py +0 -0
  355. {rite-0.2.2 → rite-0.2.4}/src/rite/system/get_escaped_command_arg.py +0 -0
  356. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/__init__.py +0 -0
  357. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_absolute.py +0 -0
  358. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_exists.py +0 -0
  359. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_is_dir.py +0 -0
  360. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_is_file.py +0 -0
  361. {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_join.py +0 -0
  362. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/__init__.py +0 -0
  363. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_architecture.py +0 -0
  364. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_linux.py +0 -0
  365. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_macos.py +0 -0
  366. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_windows.py +0 -0
  367. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_name.py +0 -0
  368. {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_python_version.py +0 -0
  369. {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/__init__.py +0 -0
  370. {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_call.py +0 -0
  371. {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_check_output.py +0 -0
  372. {rite-0.2.2 → rite-0.2.4}/src/rite/system/run_command.py +0 -0
  373. {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/__init__.py +0 -0
  374. {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_escape.py +0 -0
  375. {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_join.py +0 -0
  376. {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_split.py +0 -0
  377. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/__init__.py +0 -0
  378. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/__init__.py +0 -0
  379. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_is_leap_year.py +0 -0
  380. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_month_days.py +0 -0
  381. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_weekday.py +0 -0
  382. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/__init__.py +0 -0
  383. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_format.py +0 -0
  384. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_from_timestamp.py +0 -0
  385. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_now.py +0 -0
  386. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_parse.py +0 -0
  387. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_to_iso.py +0 -0
  388. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_to_timestamp.py +0 -0
  389. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/__init__.py +0 -0
  390. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_days.py +0 -0
  391. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_hours.py +0 -0
  392. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_minutes.py +0 -0
  393. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_seconds.py +0 -0
  394. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_to_seconds.py +0 -0
  395. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/__init__.py +0 -0
  396. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_human_readable.py +0 -0
  397. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_iso8601.py +0 -0
  398. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_rfc3339.py +0 -0
  399. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/__init__.py +0 -0
  400. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_convert.py +0 -0
  401. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_get.py +0 -0
  402. {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_list.py +0 -0
  403. {rite-0.2.2 → rite-0.2.4}/src/rite/text/__init__.py +0 -0
  404. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/__init__.py +0 -0
  405. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/average_word_length.py +0 -0
  406. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/char_frequency.py +0 -0
  407. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/is_palindrome.py +0 -0
  408. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/longest_word.py +0 -0
  409. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/shortest_word.py +0 -0
  410. {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/word_count.py +0 -0
  411. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/__init__.py +0 -0
  412. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_acronym.py +0 -0
  413. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alphabet_position.py +0 -0
  414. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alternate_character_deletion.py +0 -0
  415. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alternate_uppercase_lowercase.py +0 -0
  416. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_diagonal_text.py +0 -0
  417. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_first_letter_of_each_word.py +0 -0
  418. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_leet_speak.py +0 -0
  419. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_pig_latin.py +0 -0
  420. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_random.py +0 -0
  421. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_slug.py +0 -0
  422. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spinal.py +0 -0
  423. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spongebob_meme.py +0 -0
  424. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spongebob_mocking.py +0 -0
  425. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_swap.py +0 -0
  426. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_consonant.py +0 -0
  427. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_first_letter.py +0 -0
  428. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_vowel.py +0 -0
  429. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upside_down.py +0 -0
  430. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_zalgo_text.py +0 -0
  431. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_camel_case.py +0 -0
  432. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_constant_case.py +0 -0
  433. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_dot_case.py +0 -0
  434. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_kebab_case.py +0 -0
  435. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_lower_case.py +0 -0
  436. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_pascal_case.py +0 -0
  437. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_path_case.py +0 -0
  438. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_sentence_case.py +0 -0
  439. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_snake_case.py +0 -0
  440. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_title_case.py +0 -0
  441. {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_upper_case.py +0 -0
  442. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/__init__.py +0 -0
  443. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_abbreviation.py +0 -0
  444. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_ascii_value.py +0 -0
  445. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_braille_transcription.py +0 -0
  446. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_double_every_second_word.py +0 -0
  447. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_emoji.py +0 -0
  448. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_hexadecimal.py +0 -0
  449. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_nato_phonetic_alphabet.py +0 -0
  450. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_numeric_words_to_numbers.py +0 -0
  451. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_numeronym.py +0 -0
  452. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_rainbow.py +0 -0
  453. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_substitute_numbers_with_words.py +0 -0
  454. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_vowel_concatenation.py +0 -0
  455. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_vowel_removal.py +0 -0
  456. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_binary.py +0 -0
  457. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_bool.py +0 -0
  458. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_datetime.py +0 -0
  459. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_decimal.py +0 -0
  460. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_float.py +0 -0
  461. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_int.py +0 -0
  462. {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/string_clean.py +0 -0
  463. {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/__init__.py +0 -0
  464. {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_pad_left.py +0 -0
  465. {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_pad_right.py +0 -0
  466. {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_truncate.py +0 -0
  467. {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_wrap.py +0 -0
  468. {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/__init__.py +0 -0
  469. {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/morse_decode.py +0 -0
  470. {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/morse_encode.py +0 -0
  471. {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/__init__.py +0 -0
  472. {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_alphanumeric.py +0 -0
  473. {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_hex.py +0 -0
  474. {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_string.py +0 -0
  475. {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/__init__.py +0 -0
  476. {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/sanitize_clean.py +0 -0
  477. {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/sanitize_text.py +0 -0
  478. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/__init__.py +0 -0
  479. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_contains.py +0 -0
  480. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_count.py +0 -0
  481. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_ends_with.py +0 -0
  482. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_find.py +0 -0
  483. {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_starts_with.py +0 -0
  484. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/__init__.py +0 -0
  485. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_add_prefix.py +0 -0
  486. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_add_suffix.py +0 -0
  487. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_is_valid.py +0 -0
  488. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_unique.py +0 -0
  489. {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slugify.py +0 -0
  490. {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/__init__.py +0 -0
  491. {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_alpha.py +0 -0
  492. {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_alphanumeric.py +0 -0
  493. {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_email.py +0 -0
  494. {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_numeric.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rite
3
- Version: 0.2.2
3
+ Version: 0.2.4
4
4
  Summary: Python Utility Package
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -17,6 +17,7 @@ Classifier: Programming Language :: Python :: 3.13
17
17
  Classifier: Programming Language :: Python :: 3.14
18
18
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Classifier: Typing :: Typed
20
+ Requires-Dist: tzdata (>=2024.1) ; sys_platform == "win32"
20
21
  Project-URL: Documentation, https://github.com/scape-agency/rite/docs
21
22
  Project-URL: Homepage, https://www.pyrites.dev
22
23
  Project-URL: Repository, https://github.com/scape-agency/rite
@@ -103,22 +104,22 @@ Description-Content-Type: text/markdown
103
104
 
104
105
  ### Module Overview
105
106
 
106
- | Module | Description |
107
- |--------|-------------|
108
- | **collections** | Buffers, caches (LRU/LFU/TTL), dict/list/set utilities, queues, trees |
109
- | **conversion** | Type conversions, format transformations, unit conversions |
110
- | **crypto** | UUID generation, hashing (SHA-256, MD5, BLAKE2), ciphers, random |
111
- | **diagnostics** | Debugging, error handling, logging, metrics, profiling |
112
- | **filesystem** | File/folder operations, compression, path utilities, MIME types |
113
- | **functional** | Composition, currying, decorators, memoization, predicates |
114
- | **markup** | HTML/XML/Markdown processing, entity encoding, sanitization |
115
- | **net** | HTTP utilities, MIME types, URL encoding, request helpers |
116
- | **numeric** | Math operations, statistics, number formatting |
117
- | **reflection** | Attributes, inspection, signatures, type checking |
118
- | **serialization** | JSON, CSV, INI, TOML, pickle serialization |
119
- | **system** | Environment, platform detection, process management, shell |
120
- | **temporal** | Date/time utilities, timestamp operations, formatting |
121
- | **text** | Slug generation, case conversion, sanitization, analysis, search |
107
+ | Module | Description |
108
+ | ----------------- | --------------------------------------------------------------------- |
109
+ | **collections** | Buffers, caches (LRU/LFU/TTL), dict/list/set utilities, queues, trees |
110
+ | **conversion** | Type conversions, format transformations, unit conversions |
111
+ | **crypto** | UUID generation, hashing (SHA-256, MD5, BLAKE2), ciphers, random |
112
+ | **diagnostics** | Debugging, error handling, logging, metrics, profiling |
113
+ | **filesystem** | File/folder operations, compression, path utilities, MIME types |
114
+ | **functional** | Composition, currying, decorators, memoization, predicates |
115
+ | **markup** | HTML/XML/Markdown processing, entity encoding, sanitization |
116
+ | **net** | HTTP utilities, MIME types, URL encoding, request helpers |
117
+ | **numeric** | Math operations, statistics, number formatting |
118
+ | **reflection** | Attributes, inspection, signatures, type checking |
119
+ | **serialization** | JSON, CSV, INI, TOML, pickle serialization |
120
+ | **system** | Environment, platform detection, process management, shell |
121
+ | **temporal** | Date/time utilities, timestamp operations, formatting |
122
+ | **text** | Slug generation, case conversion, sanitization, analysis, search |
122
123
 
123
124
  ---
124
125
 
@@ -79,22 +79,22 @@
79
79
 
80
80
  ### Module Overview
81
81
 
82
- | Module | Description |
83
- |--------|-------------|
84
- | **collections** | Buffers, caches (LRU/LFU/TTL), dict/list/set utilities, queues, trees |
85
- | **conversion** | Type conversions, format transformations, unit conversions |
86
- | **crypto** | UUID generation, hashing (SHA-256, MD5, BLAKE2), ciphers, random |
87
- | **diagnostics** | Debugging, error handling, logging, metrics, profiling |
88
- | **filesystem** | File/folder operations, compression, path utilities, MIME types |
89
- | **functional** | Composition, currying, decorators, memoization, predicates |
90
- | **markup** | HTML/XML/Markdown processing, entity encoding, sanitization |
91
- | **net** | HTTP utilities, MIME types, URL encoding, request helpers |
92
- | **numeric** | Math operations, statistics, number formatting |
93
- | **reflection** | Attributes, inspection, signatures, type checking |
94
- | **serialization** | JSON, CSV, INI, TOML, pickle serialization |
95
- | **system** | Environment, platform detection, process management, shell |
96
- | **temporal** | Date/time utilities, timestamp operations, formatting |
97
- | **text** | Slug generation, case conversion, sanitization, analysis, search |
82
+ | Module | Description |
83
+ | ----------------- | --------------------------------------------------------------------- |
84
+ | **collections** | Buffers, caches (LRU/LFU/TTL), dict/list/set utilities, queues, trees |
85
+ | **conversion** | Type conversions, format transformations, unit conversions |
86
+ | **crypto** | UUID generation, hashing (SHA-256, MD5, BLAKE2), ciphers, random |
87
+ | **diagnostics** | Debugging, error handling, logging, metrics, profiling |
88
+ | **filesystem** | File/folder operations, compression, path utilities, MIME types |
89
+ | **functional** | Composition, currying, decorators, memoization, predicates |
90
+ | **markup** | HTML/XML/Markdown processing, entity encoding, sanitization |
91
+ | **net** | HTTP utilities, MIME types, URL encoding, request helpers |
92
+ | **numeric** | Math operations, statistics, number formatting |
93
+ | **reflection** | Attributes, inspection, signatures, type checking |
94
+ | **serialization** | JSON, CSV, INI, TOML, pickle serialization |
95
+ | **system** | Environment, platform detection, process management, shell |
96
+ | **temporal** | Date/time utilities, timestamp operations, formatting |
97
+ | **text** | Slug generation, case conversion, sanitization, analysis, search |
98
98
 
99
99
  ---
100
100
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  [tool.poetry]
9
9
  name = "rite"
10
- version = "0.2.2"
10
+ version = "0.2.4"
11
11
  description = "Python Utility Package"
12
12
  authors = ["Scape Agency <info@scape.agency>"]
13
13
  license = "MIT License"
@@ -42,21 +42,26 @@ packages = [{ include = "rite", from = "src" }]
42
42
  [tool.poetry.dependencies]
43
43
  python = ">=3.12,<4.0"
44
44
 
45
+ # Windows-specific dependency for timezone data
46
+ tzdata = { version = ">=2024.1", markers = "sys_platform == 'win32'" }
47
+
45
48
 
46
49
  # =============================================================================
47
50
  # Development Dependencies
48
51
  # =============================================================================
49
52
 
50
53
  [tool.poetry.group.dev.dependencies]
51
- pytest = "^8.3.4" # Framework for testing
52
- pytest-cov = "^6.0.0" # Code coverage for tests
53
- coverage = "^7.6.10" # Coverage measurement
54
- black = "^24.8.0" # Code formatter
54
+ pytest = "^9.0.2" # Framework for testing
55
+ pytest-cov = "^7.0.0" # Code coverage for tests
56
+ pytest-benchmark = "^5.2.0" # Performance benchmarking
57
+ coverage = "^7.13.0" # Coverage measurement
58
+ urllib3 = "^2.6.2" # HTTP client (transitive, pinned for security)
59
+ black = "^25.12.0" # Code formatter
55
60
  flake8 = "^7.1.0" # Linter for code quality
56
- mypy = "^1.14.1" # Static type checker
57
- isort = "^5.10.1" # Import sorter
61
+ mypy = "^1.19.1" # Static type checker
62
+ isort = "^7.0.0" # Import sorter
58
63
  tox = "^4.4.6" # Testing multiple environments
59
- pre-commit = "^4.0.1" # Pre-commit hooks for linting and formatting
64
+ pre-commit = "^4.5.1" # Pre-commit hooks for linting and formatting
60
65
  pylint = "^4.0.4" # Static code analyzer
61
66
  bandit = { extras = ["toml"], version = "^1.7.5" } # Security linter
62
67
 
@@ -73,7 +78,7 @@ markdown = "^3.7.0"
73
78
  pygments = "^2.18.0"
74
79
  sphinx = "^8.1.0"
75
80
  sphinx-rtd-theme = "^3.0.2"
76
- sphinx-autodoc-typehints = "^2.5.0"
81
+ sphinx-autodoc-typehints = "^3.5.2"
77
82
  myst-parser = "^4.0.0"
78
83
 
79
84
 
@@ -92,7 +97,7 @@ build-backend = "poetry.core.masonry.api"
92
97
 
93
98
  [tool.poetry.scripts]
94
99
  rite = "rite.__main__:main" # Entry point for the package
95
- # test = "pytest --cov=rite tests/:main" # Run tests with coverage
100
+ # test = "pytest --cov=rite tests/:main" # Run tests with coverage
96
101
  # lint = "flake8 src/rite/:main" # Run linter on source files
97
102
  # format = "black src/rite/:main" # Format source files
98
103
  # type-check = "mypy src/rite/:main" # Type-check source files
@@ -182,6 +187,18 @@ exclude_dirs = [
182
187
  "*/bup/*",
183
188
  "*/wip/*",
184
189
  ]
185
- skips = ["B101", "B601"]
186
- # B101: assert_used (we use asserts in tests)
187
- # B601: paramiko_calls (not applicable)
190
+ skips = [
191
+ "B101", # assert_used - we use asserts in tests
192
+ "B301", # pickle - we provide pickle utilities (documented risk)
193
+ "B310", # urllib_urlopen - URL utilities need to open URLs
194
+ "B311", # random - used for non-cryptographic purposes (text styling)
195
+ "B318", # xml.dom.minidom.parseString - XML parsing utilities
196
+ "B324", # hashlib weak hash - we provide MD5/SHA1 for compatibility
197
+ "B403", # pickle import - we provide pickle serialization utilities
198
+ "B404", # subprocess import - required for process management
199
+ "B406", # xml.sax - XML parsing utilities (documented risk)
200
+ "B408", # xml.dom.minidom - XML parsing utilities (documented risk)
201
+ "B601", # paramiko_calls - not applicable
202
+ "B603", # subprocess_without_shell - shell=False is intentional
203
+ "B608", # hardcoded_sql - SQL utilities use parameterized queries
204
+ ]
@@ -3,10 +3,14 @@
3
3
  # =============================================================================
4
4
 
5
5
  """
6
- Provides a rite entry point
7
- ===========================
6
+ Rite CLI Entry Point
7
+ ====================
8
8
 
9
+ Command-line interface entry point for the rite package.
9
10
 
11
+ Usage:
12
+ python -m rite [command] [options]
13
+ rite [command] [options]
10
14
 
11
15
  """
12
16
 
@@ -19,28 +23,20 @@ Provides a rite entry point
19
23
  from __future__ import annotations
20
24
 
21
25
  # Import | Standard Library
22
- import platform
26
+ import sys
23
27
 
24
28
  # Import | Local Modules
25
- import rite
29
+ from .cli import cli_main
26
30
 
27
31
  # =============================================================================
28
32
  # Main
29
33
  # =============================================================================
30
34
 
31
35
 
32
- def main():
33
- """Main entry point for rite package."""
34
- print()
35
- print("rite is set!")
36
- print()
37
- print(f"rite: {rite.__version__}")
38
- print(
39
- f"Python: {platform.python_version()}"
40
- f" ({platform.python_implementation()})"
41
- )
42
- print()
36
+ def main() -> int:
37
+ """Main entry point for rite CLI."""
38
+ return cli_main()
43
39
 
44
40
 
45
41
  if __name__ == "__main__":
46
- main()
42
+ sys.exit(main())
@@ -31,7 +31,7 @@ try:
31
31
  __version__ = version("rite")
32
32
  except PackageNotFoundError:
33
33
  # Package is not installed (development mode)
34
- __version__ = "0.2.2" # Keep in sync with pyproject.toml
34
+ __version__ = "0.2.4" # Keep in sync with pyproject.toml
35
35
 
36
36
  # =============================================================================
37
37
  # Exports
@@ -0,0 +1,287 @@
1
+ # =============================================================================
2
+ # Docstring
3
+ # =============================================================================
4
+
5
+ """
6
+ Rite CLI Module
7
+ ===============
8
+
9
+ Command-line interface for Rite utility functions.
10
+
11
+ """
12
+
13
+ # =============================================================================
14
+ # Imports
15
+ # =============================================================================
16
+
17
+ # Import | Future
18
+ from __future__ import annotations
19
+
20
+ # Import | Standard Library
21
+ import argparse
22
+ from pathlib import Path
23
+ import sys
24
+
25
+ # Import | Local Modules
26
+ import rite
27
+ from rite.crypto.hash import hash_md5, hash_sha256
28
+ from rite.crypto.uuid import uuid_hex, uuid_random
29
+ from rite.filesystem import (
30
+ file_read_text,
31
+ file_write_text,
32
+ path_exists,
33
+ )
34
+ from rite.text import (
35
+ slugify,
36
+ to_camel_case,
37
+ to_kebab_case,
38
+ to_pascal_case,
39
+ to_snake_case,
40
+ )
41
+
42
+ # =============================================================================
43
+ # CLI Functions
44
+ # =============================================================================
45
+
46
+
47
+ def cmd_version(args: argparse.Namespace) -> int:
48
+ """Display version information."""
49
+ print(f"rite v{rite.__version__}")
50
+ return 0
51
+
52
+
53
+ def cmd_hash(args: argparse.Namespace) -> int:
54
+ """Hash input text."""
55
+ text = args.text
56
+ algorithm = args.algorithm.lower()
57
+
58
+ if algorithm == "sha256":
59
+ result = hash_sha256(text)
60
+ elif algorithm == "md5":
61
+ result = hash_md5(text)
62
+ else:
63
+ print(f"Error: Unknown algorithm '{algorithm}'", file=sys.stderr)
64
+ return 1
65
+
66
+ print(result)
67
+ return 0
68
+
69
+
70
+ def cmd_uuid(args: argparse.Namespace) -> int:
71
+ """Generate a UUID."""
72
+ if args.count < 1:
73
+ print("Error: Count must be at least 1", file=sys.stderr)
74
+ return 1
75
+
76
+ for _ in range(args.count):
77
+ if args.hex:
78
+ print(uuid_hex())
79
+ else:
80
+ uid = uuid_random()
81
+ print(str(uid))
82
+
83
+ return 0
84
+
85
+
86
+ def cmd_slug(args: argparse.Namespace) -> int:
87
+ """Generate a slug from text."""
88
+ text = args.text
89
+ result = slugify(text)
90
+ print(result)
91
+ return 0
92
+
93
+
94
+ def cmd_case(args: argparse.Namespace) -> int:
95
+ """Convert text case."""
96
+ text = args.text
97
+ case_type = args.type.lower()
98
+
99
+ converters = {
100
+ "snake": to_snake_case,
101
+ "camel": to_camel_case,
102
+ "pascal": to_pascal_case,
103
+ "kebab": to_kebab_case,
104
+ }
105
+
106
+ if case_type not in converters:
107
+ print(f"Error: Unknown case type '{case_type}'", file=sys.stderr)
108
+ return 1
109
+
110
+ result = converters[case_type](text)
111
+ print(result)
112
+ return 0
113
+
114
+
115
+ def cmd_file_hash(args: argparse.Namespace) -> int:
116
+ """Hash file contents."""
117
+ file_path = Path(args.file)
118
+
119
+ if not path_exists(file_path):
120
+ print(f"Error: File not found: {file_path}", file=sys.stderr)
121
+ return 1
122
+
123
+ try:
124
+ content = file_read_text(file_path)
125
+ algorithm = args.algorithm.lower()
126
+
127
+ if algorithm == "sha256":
128
+ result = hash_sha256(content)
129
+ elif algorithm == "md5":
130
+ result = hash_md5(content)
131
+ else:
132
+ print(f"Error: Unknown algorithm '{algorithm}'", file=sys.stderr)
133
+ return 1
134
+
135
+ print(f"{result} {file_path}")
136
+ return 0
137
+ except Exception as e:
138
+ print(f"Error: {e}", file=sys.stderr)
139
+ return 1
140
+
141
+
142
+ def cmd_info(args: argparse.Namespace) -> int:
143
+ """Display package information."""
144
+ print(f"rite v{rite.__version__}")
145
+ print(f"\nA pure Python utility library with zero dependencies.")
146
+ print(f"\nAvailable modules:")
147
+ modules = [
148
+ "collections",
149
+ "conversion",
150
+ "crypto",
151
+ "diagnostics",
152
+ "filesystem",
153
+ "functional",
154
+ "markup",
155
+ "net",
156
+ "numeric",
157
+ "reflection",
158
+ "serialization",
159
+ "system",
160
+ "temporal",
161
+ "text",
162
+ ]
163
+ for module in modules:
164
+ print(f" - rite.{module}")
165
+ print(f"\nFor more information, visit: https://www.pyrites.dev")
166
+ return 0
167
+
168
+
169
+ # =============================================================================
170
+ # CLI Parser
171
+ # =============================================================================
172
+
173
+
174
+ def create_parser() -> argparse.ArgumentParser:
175
+ """Create CLI argument parser."""
176
+ parser = argparse.ArgumentParser(
177
+ prog="rite",
178
+ description="Rite - Python Utility Library CLI",
179
+ formatter_class=argparse.RawDescriptionHelpFormatter,
180
+ )
181
+
182
+ parser.add_argument(
183
+ "-v",
184
+ "--version",
185
+ action="version",
186
+ version=f"%(prog)s {rite.__version__}",
187
+ )
188
+
189
+ subparsers = parser.add_subparsers(
190
+ dest="command", help="Available commands"
191
+ )
192
+
193
+ # Info command
194
+ parser_info = subparsers.add_parser(
195
+ "info", help="Show package information"
196
+ )
197
+ parser_info.set_defaults(func=cmd_info)
198
+
199
+ # Hash command
200
+ parser_hash = subparsers.add_parser("hash", help="Hash text")
201
+ parser_hash.add_argument("text", help="Text to hash")
202
+ parser_hash.add_argument(
203
+ "-a",
204
+ "--algorithm",
205
+ choices=["sha256", "md5"],
206
+ default="sha256",
207
+ help="Hash algorithm (default: sha256)",
208
+ )
209
+ parser_hash.set_defaults(func=cmd_hash)
210
+
211
+ # UUID command
212
+ parser_uuid = subparsers.add_parser("uuid", help="Generate UUID")
213
+ parser_uuid.add_argument(
214
+ "-n",
215
+ "--count",
216
+ type=int,
217
+ default=1,
218
+ help="Number of UUIDs to generate (default: 1)",
219
+ )
220
+ parser_uuid.add_argument(
221
+ "--hex",
222
+ action="store_true",
223
+ help="Output in hex format",
224
+ )
225
+ parser_uuid.set_defaults(func=cmd_uuid)
226
+
227
+ # Slug command
228
+ parser_slug = subparsers.add_parser("slug", help="Generate URL slug")
229
+ parser_slug.add_argument("text", help="Text to slugify")
230
+ parser_slug.set_defaults(func=cmd_slug)
231
+
232
+ # Case command
233
+ parser_case = subparsers.add_parser("case", help="Convert text case")
234
+ parser_case.add_argument("text", help="Text to convert")
235
+ parser_case.add_argument(
236
+ "-t",
237
+ "--type",
238
+ choices=["snake", "camel", "pascal", "kebab"],
239
+ required=True,
240
+ help="Target case type",
241
+ )
242
+ parser_case.set_defaults(func=cmd_case)
243
+
244
+ # File hash command
245
+ parser_file_hash = subparsers.add_parser(
246
+ "file-hash", help="Hash file contents"
247
+ )
248
+ parser_file_hash.add_argument("file", help="File to hash")
249
+ parser_file_hash.add_argument(
250
+ "-a",
251
+ "--algorithm",
252
+ choices=["sha256", "md5"],
253
+ default="sha256",
254
+ help="Hash algorithm (default: sha256)",
255
+ )
256
+ parser_file_hash.set_defaults(func=cmd_file_hash)
257
+
258
+ return parser
259
+
260
+
261
+ def cli_main() -> int:
262
+ """Main CLI entry point."""
263
+ parser = create_parser()
264
+ args = parser.parse_args()
265
+
266
+ if not hasattr(args, "func"):
267
+ parser.print_help()
268
+ return 0
269
+
270
+ return args.func(args)
271
+
272
+
273
+ # =============================================================================
274
+ # Exports
275
+ # =============================================================================
276
+
277
+
278
+ __all__: list[str] = [
279
+ "cli_main",
280
+ "create_parser",
281
+ "cmd_info",
282
+ "cmd_hash",
283
+ "cmd_uuid",
284
+ "cmd_slug",
285
+ "cmd_case",
286
+ "cmd_file_hash",
287
+ ]
@@ -40,7 +40,7 @@ def _shift_char(c: str, k: str, decode: bool = False) -> str:
40
40
  Args:
41
41
  c: Character to shift.
42
42
  k: Key character to use for shift.
43
- decode: Whether to decode (subtract shift) instead of encode (add shift).
43
+ decode: Whether to decode (subtract) instead of encode (add).
44
44
 
45
45
  Returns:
46
46
  Shifted character.
@@ -155,6 +155,7 @@ class _KeyValueFormatter(logging.Formatter):
155
155
  "exc_info",
156
156
  "exc_text",
157
157
  "stack_info",
158
+ "taskName", # Python 3.12+
158
159
  ):
159
160
  extras.append(f'{key}="{value}"')
160
161
 
@@ -120,6 +120,8 @@ class metrics_histogram:
120
120
  """
121
121
  if not self._values:
122
122
  return 0.0
123
+ if len(self._values) == 1:
124
+ return self._values[0]
123
125
  return statistics.quantiles(self._values, n=100)[int(p) - 1]
124
126
 
125
127
  def reset(self) -> None:
@@ -150,19 +150,18 @@ class BaseHTTPServer(BaseHTTPRequestHandler):
150
150
  server_class: type[HTTPServer] = HTTPServer,
151
151
  handler_class: type[BaseHTTPRequestHandler] | None = None,
152
152
  port: int = 8000,
153
- ):
154
- """
155
- Static method to run the HTTP server.
156
-
157
- Parameters:
158
- server_class (HTTPServer): The HTTP server class.
159
- handler_class (BaseHTTPRequestHandler): The HTTP request handler
160
- class.
161
- port (int): Port number to run the server on.
162
-
163
- Returns
164
- -------
165
- None
153
+ ) -> None:
154
+ """Run the HTTP server.
155
+
156
+ Args:
157
+ server_class: HTTP server class to use. Defaults to
158
+ :class:`http.server.HTTPServer`.
159
+ handler_class: Request handler class. Defaults to
160
+ :class:`BaseHTTPServer` if not provided.
161
+ port: Port number to run the server on. Defaults to ``8000``.
162
+
163
+ Returns:
164
+ None.
166
165
  """
167
166
  if handler_class is None:
168
167
  handler_class = BaseHTTPServer
@@ -32,7 +32,13 @@ import subprocess
32
32
 
33
33
 
34
34
  def process_run(
35
- cmd: list[str], cwd: Path | str | None = None, check: bool = False
35
+ cmd: list[str],
36
+ cwd: Path | str | None = None,
37
+ check: bool = False,
38
+ *,
39
+ timeout: float | None = None,
40
+ env: dict[str, str] | None = None,
41
+ stdin_text: str | None = None,
36
42
  ) -> tuple[int, str, str]:
37
43
  """
38
44
  Run command in subprocess and return result.
@@ -41,43 +47,53 @@ def process_run(
41
47
  cmd: Command as list of strings.
42
48
  cwd: Working directory. Defaults to current.
43
49
  check: Raise exception on non-zero exit.
50
+ timeout: Timeout in seconds. None means no timeout.
51
+ env: Environment variables for the process.
52
+ stdin_text: Text to send to stdin.
44
53
 
45
54
  Returns:
46
55
  Tuple of (return_code, stdout, stderr).
47
56
 
48
57
  Raises:
49
58
  CalledProcessError: If check=True and command fails.
59
+ TimeoutExpired: If timeout is exceeded.
50
60
 
51
61
  Examples:
52
62
  >>> process_run(["echo", "hello"])
53
63
  (0, 'hello', '')
54
64
  >>> process_run(["ls"], Path("/tmp"))
55
65
  (0, '...', '')
66
+ >>> process_run(["cat"], stdin_text="hello")
67
+ (0, 'hello', '')
56
68
 
57
69
  Notes:
58
- Uses Popen for subprocess execution.
70
+ Uses subprocess.run for execution.
59
71
  Output is text mode with UTF-8 encoding.
60
72
  """
61
73
  work_dir = str(cwd) if cwd else None
62
74
 
63
- p = subprocess.Popen(
75
+ result = subprocess.run(
64
76
  cmd,
65
77
  cwd=work_dir,
66
- stdout=subprocess.PIPE,
67
- stderr=subprocess.PIPE,
78
+ capture_output=True,
68
79
  text=True,
80
+ check=check,
81
+ timeout=timeout,
82
+ env=env,
83
+ input=stdin_text,
69
84
  )
70
85
 
71
- out, err = p.communicate()
72
-
73
- if check and p.returncode != 0:
74
- raise subprocess.CalledProcessError(p.returncode, cmd, out, err)
75
-
76
- return p.returncode, out.strip(), err.strip()
86
+ return (
87
+ result.returncode,
88
+ (result.stdout or "").strip(),
89
+ (result.stderr or "").strip(),
90
+ )
77
91
 
78
92
 
79
93
  # =============================================================================
80
94
  # Exports
81
95
  # =============================================================================
82
96
 
83
- __all__: list[str] = ["process_run"]
97
+ __all__: list[str] = [
98
+ "process_run",
99
+ ]
File without changes
File without changes