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.
- {rite-0.2.2 → rite-0.2.4}/PKG-INFO +18 -17
- {rite-0.2.2 → rite-0.2.4}/README.md +16 -16
- {rite-0.2.2 → rite-0.2.4}/pyproject.toml +30 -13
- {rite-0.2.2 → rite-0.2.4}/src/rite/__main__.py +12 -16
- {rite-0.2.2 → rite-0.2.4}/src/rite/__version__.py +1 -1
- rite-0.2.4/src/rite/cli.py +287 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_autokey.py +1 -1
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_structured.py +1 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_histogram.py +2 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/server_http.py +12 -13
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_run.py +28 -12
- {rite-0.2.2 → rite-0.2.4}/LICENSE +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/bounded_buffer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/circular_buffer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/ring_buffer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/buffer/sliding_window.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/lfu_cache.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/lru_cache.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/cache/ttl_cache.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_deep_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_deep_set.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_filter.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_invert.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/dict/dict_merge.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_chunk.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_flatten.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_group_by.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_interleave.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_partition.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/list/list_unique.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/object_pool.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/observer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/pattern/singleton.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/circular_queue.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/deque_wrapper.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/queue/priority_queue.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/set/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/binary_tree_node.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/nested_set.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/tree_node.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/collections/tree/trie.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_base64_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_base64_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_hex_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_hex_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_json_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_json_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_url_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/formats/formats_url_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/is_protected_type.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_bool.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_number.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/to_percentage.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_bool.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_dict.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_float.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_int.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_list.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_number.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_percentage.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_set.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_str.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/types/types_to_tuple.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_length.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_temperature.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_time.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/conversion/units/units_weight.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_atbash.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_baconian.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_caesar.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_four_square.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_playfair.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_rail_fence.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_rot13.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_scytale.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_transposition.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_vigenere.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/cipher/cipher_xor.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_blake2b.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_blake2s.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_md5.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha1.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha256.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha384.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha3_256.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha3_512.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/hash/hash_sha512.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_choice.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_hex.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_int.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/random/random_urlsafe.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_from_name.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_get_version.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_hex.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_is_random.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_is_valid.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_random.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/crypto/uuid/uuid_string.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_dump.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_inspect.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_locals.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/debugging/debugging_trace.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/error_handler.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_catch.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_format_traceback.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_get_chain.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/errors/errors_retry.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logger.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_to_console.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_to_file.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/logging/logging_with_context.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_counter.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_gauge.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/metrics/metrics_timer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_count_calls.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_memory.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_stopwatch.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/diagnostics/profiling/profiling_timer.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_compress.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_settings.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/compress/gzip_uncompress.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_copy.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_copy_multiple.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_delete.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_move.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_read_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_read_text.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_rename.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_size_to_string.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_spooled.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_spooled_settings.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_write_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file/file_write_text.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_construct.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_normalize.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_regex.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_extension/extension_validate.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_sanitize.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_to_date.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/file_name/filename_to_datestring.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_content_delete.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_create.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_ensure_exists.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_list_files.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_list_folders.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_size_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/folder/folder_size_to_string.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_guess.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_guess_from_path.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_match.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_read_head_bytes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_sniff.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_validate.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/mimetype/mimetype_verify.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_clean.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_exists.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_is_dir.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_is_file.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_leaf.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_safe_join.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/filesystem/path/path_secure.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_chain.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_compose.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/composition/composition_pipe.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/currying_curry.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/currying/currying_uncurry.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_debounce.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_deprecated.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_once.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/decorators/decorators_throttle.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/memoization_lru_cache.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/memoization/memoization_memoize.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/partial_apply.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/partial/partial_right.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_constant.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_identity.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/functional/predicates/predicates_negate.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/entities_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/entities/entities_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_clean.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_escape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_strip_tags.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/html/html_unescape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/markdown_escape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/markdown/markdown_to_html.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_filename.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_html.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/sanitize/sanitize_url.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_escape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_format.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/markup/xml/xml_unescape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_is_method.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_parse_headers.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/http/http_status_code.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_guess_extension.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_guess_type.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/mime/mime_parse.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/request_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/request/request_post.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/servers/server_sqlite.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_build.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_parse.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/url/url_parse_query.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_email.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_ipv4.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_port.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/net/validation/validation_is_url.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/clamp.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_from_percentage.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_to_decimal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/conversion/conversion_to_percentage.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_from_degree_minute_second.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_to_degree_minute.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/coordinates/coordinates_to_degree_minute_second.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/float_to_degree_minute.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/float_to_degree_minute_second.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_abs.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_clamp.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_pow.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/math/math_sign.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_in_range.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_normalize.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/range/range_scale.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_ceil.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_floor.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_round.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/rounding/rounding_trunc.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_mean.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_median.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_min_max.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/statistics/statistics_sum.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/numeric/value_to_decimal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/py.typed +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_del_attr.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_get_attr.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_has_attr.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/attributes/attributes_set_attr.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_comments.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_docstring.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/documentation/documentation_get_file.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_class.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_function.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/importing/importing_load_module.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_functions.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_members.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_methods.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/inspection/inspection_get_source.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_parameters.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_return_annotation.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/signature/signature_get_signature.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_class.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_function.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_method.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/reflection/types/types_is_module.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_detect_delimiter.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_read.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/csv/csv_write.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_read.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_set.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/ini/ini_write.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_dump.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_dumps.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_load.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_loads.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/json/json_validate.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_dump.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_dumps.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_load.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/pickle/pickle_loads.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/toml_load.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/serialization/toml/toml_loads.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_delete.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_list.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/environment/env_set.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/get_escaped_command_arg.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_absolute.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_exists.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_is_dir.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_is_file.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/path/path_join.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_architecture.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_linux.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_macos.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_is_windows.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_name.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/platform/platform_python_version.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_call.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/process/process_check_output.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/run_command.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_escape.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_join.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/system/shell/shell_split.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_is_leap_year.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_month_days.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/calendar/calendar_weekday.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_format.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_from_timestamp.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_now.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_parse.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_to_iso.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/datetime/datetime_to_timestamp.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_days.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_hours.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_minutes.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_from_seconds.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/duration/duration_to_seconds.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_human_readable.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_iso8601.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/formatting/format_rfc3339.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_convert.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_get.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/temporal/timezone/timezone_list.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/average_word_length.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/char_frequency.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/is_palindrome.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/longest_word.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/shortest_word.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/analysis/word_count.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_acronym.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alphabet_position.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alternate_character_deletion.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_alternate_uppercase_lowercase.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_diagonal_text.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_first_letter_of_each_word.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_leet_speak.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_pig_latin.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_random.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_slug.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spinal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spongebob_meme.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_spongebob_mocking.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_swap.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_consonant.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_first_letter.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upper_vowel.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_upside_down.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/case_to_zalgo_text.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_camel_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_constant_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_dot_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_kebab_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_lower_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_pascal_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_path_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_sentence_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_snake_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_title_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/case/to_upper_case.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_abbreviation.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_ascii_value.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_braille_transcription.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_double_every_second_word.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_emoji.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_hexadecimal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_nato_phonetic_alphabet.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_numeric_words_to_numbers.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_numeronym.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_rainbow.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_substitute_numbers_with_words.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_vowel_concatenation.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/case_to_vowel_removal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_binary.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_bool.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_datetime.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_decimal.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_float.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/converter_string_to_int.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/converters/string_clean.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_pad_left.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_pad_right.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_truncate.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/manipulation/text_wrap.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/morse_decode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/morse/morse_encode.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_alphanumeric.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_hex.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/random/random_string.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/sanitize_clean.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/sanitize/sanitize_text.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_contains.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_count.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_ends_with.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_find.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/search/text_starts_with.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_add_prefix.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_add_suffix.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_is_valid.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slug_unique.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/slug/slugify.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/__init__.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_alpha.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_alphanumeric.py +0 -0
- {rite-0.2.2 → rite-0.2.4}/src/rite/text/validation/text_is_email.py +0 -0
- {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.
|
|
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
|
|
107
|
-
|
|
108
|
-
| **collections**
|
|
109
|
-
| **conversion**
|
|
110
|
-
| **crypto**
|
|
111
|
-
| **diagnostics**
|
|
112
|
-
| **filesystem**
|
|
113
|
-
| **functional**
|
|
114
|
-
| **markup**
|
|
115
|
-
| **net**
|
|
116
|
-
| **numeric**
|
|
117
|
-
| **reflection**
|
|
118
|
-
| **serialization** | JSON, CSV, INI, TOML, pickle serialization
|
|
119
|
-
| **system**
|
|
120
|
-
| **temporal**
|
|
121
|
-
| **text**
|
|
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
|
|
83
|
-
|
|
84
|
-
| **collections**
|
|
85
|
-
| **conversion**
|
|
86
|
-
| **crypto**
|
|
87
|
-
| **diagnostics**
|
|
88
|
-
| **filesystem**
|
|
89
|
-
| **functional**
|
|
90
|
-
| **markup**
|
|
91
|
-
| **net**
|
|
92
|
-
| **numeric**
|
|
93
|
-
| **reflection**
|
|
94
|
-
| **serialization** | JSON, CSV, INI, TOML, pickle serialization
|
|
95
|
-
| **system**
|
|
96
|
-
| **temporal**
|
|
97
|
-
| **text**
|
|
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.
|
|
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 = "^
|
|
52
|
-
pytest-cov = "^
|
|
53
|
-
|
|
54
|
-
|
|
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.
|
|
57
|
-
isort = "^
|
|
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.
|
|
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 = "^
|
|
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"
|
|
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 = [
|
|
186
|
-
#
|
|
187
|
-
#
|
|
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
|
-
|
|
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
|
|
26
|
+
import sys
|
|
23
27
|
|
|
24
28
|
# Import | Local Modules
|
|
25
|
-
import
|
|
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
|
|
34
|
-
|
|
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.
|
|
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
|
|
43
|
+
decode: Whether to decode (subtract) instead of encode (add).
|
|
44
44
|
|
|
45
45
|
Returns:
|
|
46
46
|
Shifted character.
|
|
@@ -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
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
handler_class
|
|
160
|
-
|
|
161
|
-
port
|
|
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],
|
|
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
|
|
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
|
-
|
|
75
|
+
result = subprocess.run(
|
|
64
76
|
cmd,
|
|
65
77
|
cwd=work_dir,
|
|
66
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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] = [
|
|
97
|
+
__all__: list[str] = [
|
|
98
|
+
"process_run",
|
|
99
|
+
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|