Skip to main content

Collection of simple utils.

Project description

zenutils

Collection of simple utils. No extra packages required.

Install

pip install zenutils

Utils

  1. zenutils.base64utils
    1. a85decode
    2. a85encode
    3. b16decode
    4. b16encode
    5. b32decode
    6. b32encode
    7. b64decode
    8. b64encode
    9. b85decode
    10. b85encode
    11. decode
    12. decodebytes
    13. encode
    14. encodebytes
    15. standard_b64decode
    16. standard_b64encode
    17. urlsafe_b64decode
    18. urlsafe_b64encode
  2. zenutils.baseutils
    1. Null
  3. zenutils.cacheutils
    1. get_cached_value
  4. zenutils.cipherutils
    1. Base64Encoder
    2. CipherBase
    3. DecryptFailed
    4. EncoderBase
    5. HexlifyEncoder
    6. IvCipher
    7. IvfCipher
    8. MappingCipher
    9. RawDataEncoder
    10. S12Cipher
    11. S1Cipher
    12. S2Cipher
    13. SafeBase64Encoder
    14. Utf8Encoder
  5. zenutils.dictutils
    1. Object
    2. attrgetorset
    3. attrset
    4. change
    5. changes
    6. deep_merge
    7. diff
    8. fix_object
    9. ignore_none_item
    10. prefix_key
    11. select
    12. to_object
    13. touch
    14. update
  6. zenutils.fsutils
    1. TemporaryFile
    2. copy
    3. expand
    4. file_content_replace
    5. filecopy
    6. first_exists_file
    7. get_application_config_filepath
    8. get_application_config_paths
    9. get_size_deviation
    10. get_size_display
    11. get_temp_workspace
    12. get_unit_size
    13. info
    14. mkdir
    15. move
    16. pathjoin
    17. readfile
    18. rename
    19. rm
    20. size_unit_names
    21. size_unit_upper_limit
    22. touch
    23. treecopy
    24. write
  7. zenutils.funcutils
    1. BunchCallable
    2. call_with_inject
    3. chain
    4. classproperty
    5. get_all_builtin_exceptions
    6. get_builtins_dict
    7. get_class_name
    8. get_default_values
    9. get_inject_params
    10. is_a_class
    11. mcall_with_inject
    12. signature
    13. try_again_on_error
  8. zenutils.hashutils
    1. get_file_hash
    2. get_file_md5
    3. get_file_sha
    4. get_file_sha1
    5. get_file_sha224
    6. get_file_sha256
    7. get_file_sha384
    8. get_file_sha512
    9. get_hash_base64
    10. get_hash_hexdigest
    11. get_md5
    12. get_md5_base64
    13. get_md5_hexdigest
    14. get_pbkdf2_hmac
    15. get_pbkdf2_md5
    16. get_pbkdf2_sha
    17. get_pbkdf2_sha1
    18. get_pbkdf2_sha224
    19. get_pbkdf2_sha256
    20. get_pbkdf2_sha384
    21. get_pbkdf2_sha512
    22. get_sha
    23. get_sha1
    24. get_sha1_base64
    25. get_sha1_hexdigest
    26. get_sha224
    27. get_sha224_base64
    28. get_sha224_hexdigest
    29. get_sha256
    30. get_sha256_base64
    31. get_sha256_hexdigest
    32. get_sha384
    33. get_sha384_base64
    34. get_sha384_hexdigest
    35. get_sha512
    36. get_sha512_base64
    37. get_sha512_hexdigest
    38. get_sha_base64
    39. get_sha_hexdigest
    40. method_load
    41. pbkdf2_hmac
    42. validate_pbkdf2_hmac
    43. validate_pbkdf2_md5
    44. validate_pbkdf2_sha
    45. validate_pbkdf2_sha1
    46. validate_pbkdf2_sha224
    47. validate_pbkdf2_sha256
    48. validate_pbkdf2_sha384
    49. validate_pbkdf2_sha512
  9. zenutils.httputils
    1. download
    2. get_sitename
    3. get_url_filename
    4. get_url_save_path
    5. get_urlinfo
    6. urlparse
  10. zenutils.jsonutils
    1. SimpleJsonEncoder
    2. make_simple_json_encoder
    3. register_global_encoder
    4. simple_json_dumps
  11. zenutils.listutils
    1. append_new
    2. chunk
    3. clean_none
    4. compare
    5. compare_execute
    6. first
    7. group
    8. ignore_none_element
    9. int_list_to_bytes
    10. is_ordered
    11. list2dict
    12. pad
    13. replace
    14. topological_sort
    15. topological_test
    16. unique
  12. zenutils.logutils
    1. get_console_handler
    2. get_file_handler
    3. get_simple_config
    4. setup
  13. zenutils.nameutils
    1. get_last_names
    2. get_random_name
    3. get_suggest_first_names
    4. guess_lastname
    5. guess_surname
  14. zenutils.numericutils
    1. _infinity
    2. binary_decompose
    3. bytes2ints
    4. decimal_change_base
    5. float_split
    6. from_bytes
    7. get_float_part
    8. infinity
    9. int2bytes
    10. ints2bytes
    11. is_infinity
    12. ninfinity
    13. pinfinity
  15. zenutils.randomutils
    1. Random
    2. UuidGenerator
    3. choices
    4. uuid1
    5. uuid3
    6. uuid4
    7. uuid5
  16. zenutils.sixutils
    1. BASESTRING_TYPES
    2. BYTES
    3. BYTES_TYPE
    4. INT_TO_BYTES
    5. NUMERIC_TYPES
    6. PY2
    7. PY3
    8. STR_TYPE
    9. TEXT
    10. bchar
    11. bstr_to_array
    12. bytes_to_array
    13. default_encoding
    14. default_encodings
    15. force_bytes
    16. force_text
  17. zenutils.strutils
    1. BAI
    2. BASE64_CHARS
    3. HEXLIFY_CHARS
    4. QIAN
    5. SHI
    6. URLSAFEB64_CHARS
    7. WAN
    8. YI
    9. binarify
    10. bytes2ints
    11. camel
    12. captital_number
    13. char_force_to_int
    14. chunk
    15. clean
    16. combinations
    17. combinations2
    18. decodable
    19. default_cn_digits
    20. default_cn_float_places
    21. default_cn_negative
    22. default_cn_places
    23. default_cn_yuan
    24. default_encoding
    25. default_encodings
    26. default_quotes
    27. default_random_string_choices
    28. do_clean
    29. encodable
    30. force_float
    31. force_int
    32. force_numberic
    33. force_type_to
    34. format_with_mapping
    35. get_all_substrings
    36. get_base64image
    37. get_image_bytes
    38. html_element_css_append
    39. int2bytes
    40. ints2bytes
    41. is_base64_decodable
    42. is_chinese_character
    43. is_hex_digits
    44. is_str_composed_by_the_choices
    45. is_unhexlifiable
    46. is_urlsafeb64_decodable
    47. is_uuid
    48. join_lines
    49. no_mapping
    50. none_to_empty_string
    51. parse_base64image
    52. random_string
    53. remove_prefix
    54. remove_suffix
    55. reverse
    56. simplesplit
    57. smart_get_binary_data
    58. split
    59. split2
    60. str_composed_by
    61. stringlist_append
    62. strip_string
    63. substrings
    64. text_display_length
    65. text_display_shorten
    66. unbinarify
    67. unquote
    68. wholestrip
  18. zenutils.sysutils
    1. default_timeout_kill
    2. execute_script
    3. get_current_thread_id
    4. get_random_script_name
    5. get_worker_id
    6. psutil_timeout_kill
  19. zenutils.threadutils
    1. Counter
    2. LoopIdle
    3. Service
    4. ServiceStop
    5. ServiceTerminate
    6. SimpleConsumer
    7. SimpleProducer
    8. SimpleProducerConsumerServer
    9. SimpleServer
    10. StartOnTerminatedService
  20. zenutils.treeutils
    1. build_tree
    2. print_tree
    3. print_tree_callback
    4. tree_walk
  21. zenutils.typingutils
    1. Number
    2. STRING_ENCODINGS
    3. register_global_caster
    4. smart_cast

Compatibility

Test passed with python versions:

  1. Python 2.7 passed
  2. Python 3.2 passed
  3. Python 3.3 passed
  4. Python 3.4 passed
  5. Python 3.5 passed
  6. Python 3.7 passed
  7. Python 3.8 passed
  8. Python 3.9 passed
  9. Python 3.10 passed

Release

v0.1.0

  • First release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenutils-0.1.0.tar.gz (74.4 kB view hashes)

Uploaded Source

Built Distributions

zenutils-0.1.0-py32-none-any.whl (86.9 kB view hashes)

Uploaded Python 3.2

zenutils-0.1.0-py3-none-any.whl (86.9 kB view hashes)

Uploaded Python 3

zenutils-0.1.0-py2-none-any.whl (86.9 kB view hashes)

Uploaded Python 2

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page