Skip to main content

Collection of simple utils.

Project description

zenutils

Collection of simple utils.

Install

pip install zenutils

Extra packages requires

  • For python3.2 and python2.x, requires extra package: inspect2~=0.1.2
  • For user who is using xxhash methods with hashutils, requires extra package: xxhash
  • For user who is using sm3 methods with hashutils, requires extra package: sm3utils.
  • If your python installation's hashlib already support sm3 hash method, you don't have to install sm3utils.
  • xxhash and sm3utils are not put into this package's requirements, you need to install them by your self.

Notice

  • The hashutils' hash methods are different on different python installations. The list below is based on Python 3.10.6 x86_64 on windows. Mostly md5, sha1, sha224, sha256, sha384, sha512 methods are supported.
  • The hashutils' DEFAULT_HASH_METHOD is sm3 and DEFAULT_PASSWORD_HASH_METHOD is ssm3, so if your python installation is not support sm3 hash method, you need to install sm3utils by yourself.

Utils

  1. zenutils.base64utils
    1. a85decode
    2. a85encode
    3. b16decode
    4. b16encode
    5. b32decode
    6. b32encode
    7. b32hexdecode
    8. b32hexencode
    9. b64decode
    10. b64encode
    11. b85decode
    12. b85encode
    13. decode
    14. decodebytes
    15. encode
    16. encodebytes
    17. standard_b64decode
    18. standard_b64encode
    19. urlsafe_b64decode
    20. urlsafe_b64encode
  2. zenutils.baseutils
    1. Null
  3. zenutils.cacheutils
    1. ReqIdCache
    2. cache
    3. get_cached_value
    4. simple_cache
  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.dateutils
    1. get_days
    2. get_months
    3. get_years
  6. zenutils.dictutils
    1. HttpHeadersDict
    2. Object
    3. attrgetorset
    4. attrset
    5. change
    6. changes
    7. deep_merge
    8. diff
    9. fix_object
    10. ignore_none_item
    11. prefix_key
    12. select
    13. to_object
    14. touch
    15. update
  7. zenutils.errorutils
    1. AccessDenied
    2. AccountDisabledError
    3. AccountLockedError
    4. AccountRemovedError
    5. AccountStatusError
    6. AccountTemporaryLockedError
    7. AnotherServiceError
    8. AppAuthFailed
    9. AuthError
    10. BadParameter
    11. BadParameterType
    12. BadResponseContent
    13. BadUserToken
    14. BizError
    15. BizErrorBase
    16. CacheError
    17. CaptchaOnlyAllowedOnce
    18. CaptchaRequired
    19. CaptchaValidateFailed
    20. CastFailedError
    21. CastToBooleanFailed
    22. CastToFloatFailed
    23. CastToIntegerFailed
    24. CastToNumbericFailed
    25. CastToStringFailed
    26. ClientLostError
    27. ConfigError
    28. DataError
    29. DatabaseError
    30. EventNotRegistered
    31. FormError
    32. HttpError
    33. InformalRequestError
    34. InformalResultPackage
    35. InformalResultPackage
    36. LogicError
    37. LoginRequired
    38. MessageQueueError
    39. MissingConfigItem
    40. MissingField
    41. MissingParameter
    42. NetworkError
    43. NoAccessPermissionError
    44. NoDeletePermissionError
    45. NoMatchingRouteFound
    46. NoPermissionError
    47. NoPermissionToCleanCacheError
    48. NoReadPermissionError
    49. NoUpstreamServerAvailabe
    50. NoWritePermissionError
    51. NotSupportedHttpMethod
    52. NotSupportedTypeToCast
    53. OK
    54. ParamError
    55. ParseJsonError
    56. PermissionError
    57. RepeatedlySubmitForm
    58. ReqeustForbidden
    59. ReqidDuplicateError
    60. RequestExpired
    61. SYSTEM_ERROR_CODE_MAPPING
    62. ServiceError
    63. StringTooLong
    64. StringTooShort
    65. SysError
    66. TargetNotFound
    67. TooLargeRequestError
    68. TsExpiredError
    69. TypeError
    70. UndefinedError
    71. UserDoesNotExist
    72. UserPasswordError
    73. ValueExceedsMaxLimit
    74. ValueLessThanMinLimit
    75. WrongFieldType
    76. WrongParameterType
    77. clean_language_name
    78. get_error_info
    79. get_language
    80. set_error_info
    81. set_language
  8. 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_safe_filename
    10. get_size_deviation
    11. get_size_display
    12. get_swap_filename
    13. get_temp_workspace
    14. get_unit_size
    15. info
    16. mkdir
    17. move
    18. pathjoin
    19. readfile
    20. rename
    21. rm
    22. safe_write
    23. size_unit_names
    24. size_unit_upper_limit
    25. touch
    26. treecopy
    27. write
  9. zenutils.funcutils
    1. BunchCallable
    2. ChainableProxy
    3. call_with_inject
    4. chain
    5. classproperty
    6. get_all_builtin_exceptions
    7. get_builtins_dict
    8. get_class_name
    9. get_default_values
    10. get_inject_params
    11. get_method_help
    12. get_method_signature
    13. inspect
    14. is_a_class
    15. isclass
    16. mcall_with_inject
    17. signature
    18. try_again_on_error
  10. zenutils.hashutils
    1. Base64ResultEncoder
    2. Blake2BHexlifyPasswordHash
    3. Blake2BPbkdf2PasswordHash
    4. Blake2BPbkdf2PasswordHashColon
    5. Blake2BSimplePasswordHash
    6. Blake2BSimpleSaltPasswordHash
    7. Blake2SHexlifyPasswordHash
    8. Blake2SPbkdf2PasswordHash
    9. Blake2SPbkdf2PasswordHashColon
    10. Blake2SSimplePasswordHash
    11. Blake2SSimpleSaltPasswordHash
    12. DigestResultEncoder
    13. HexlifyPasswordHashBase
    14. HexlifyResultEncoder
    15. Md5HexlifyPasswordHash
    16. Md5Pbkdf2PasswordHash
    17. Md5Pbkdf2PasswordHashColon
    18. Md5SimplePasswordHash
    19. Md5SimpleSaltPasswordHash
    20. PasswordHashMethodBase
    21. PasswordHashMethodNotSupportError
    22. Pbkdf2PasswordHashBase
    23. ResultEncoderBase
    24. Sha1HexlifyPasswordHash
    25. Sha1Pbkdf2PasswordHash
    26. Sha1Pbkdf2PasswordHashColon
    27. Sha1SimplePasswordHash
    28. Sha1SimpleSaltPasswordHash
    29. Sha224HexlifyPasswordHash
    30. Sha224Pbkdf2PasswordHash
    31. Sha224Pbkdf2PasswordHashColon
    32. Sha224SimplePasswordHash
    33. Sha224SimpleSaltPasswordHash
    34. Sha256HexlifyPasswordHash
    35. Sha256Pbkdf2PasswordHash
    36. Sha256Pbkdf2PasswordHashColon
    37. Sha256SimplePasswordHash
    38. Sha256SimpleSaltPasswordHash
    39. Sha384HexlifyPasswordHash
    40. Sha384Pbkdf2PasswordHash
    41. Sha384Pbkdf2PasswordHashColon
    42. Sha384SimplePasswordHash
    43. Sha384SimpleSaltPasswordHash
    44. Sha3_224HexlifyPasswordHash
    45. Sha3_224Pbkdf2PasswordHash
    46. Sha3_224Pbkdf2PasswordHashColon
    47. Sha3_224SimplePasswordHash
    48. Sha3_224SimpleSaltPasswordHash
    49. Sha3_256HexlifyPasswordHash
    50. Sha3_256Pbkdf2PasswordHash
    51. Sha3_256Pbkdf2PasswordHashColon
    52. Sha3_256SimplePasswordHash
    53. Sha3_256SimpleSaltPasswordHash
    54. Sha3_384HexlifyPasswordHash
    55. Sha3_384Pbkdf2PasswordHash
    56. Sha3_384Pbkdf2PasswordHashColon
    57. Sha3_384SimplePasswordHash
    58. Sha3_384SimpleSaltPasswordHash
    59. Sha3_512HexlifyPasswordHash
    60. Sha3_512Pbkdf2PasswordHash
    61. Sha3_512Pbkdf2PasswordHashColon
    62. Sha3_512SimplePasswordHash
    63. Sha3_512SimpleSaltPasswordHash
    64. Sha512HexlifyPasswordHash
    65. Sha512Pbkdf2PasswordHash
    66. Sha512Pbkdf2PasswordHashColon
    67. Sha512SimplePasswordHash
    68. Sha512SimpleSaltPasswordHash
    69. ShaHexlifyPasswordHash
    70. ShaPbkdf2PasswordHash
    71. ShaPbkdf2PasswordHashColon
    72. ShaSimplePasswordHash
    73. ShaSimpleSaltPasswordHash
    74. SimplePasswordHashBase
    75. SimpleSaltPasswordHashBase
    76. Sm3HexlifyPasswordHash
    77. Sm3Pbkdf2PasswordHash
    78. Sm3Pbkdf2PasswordHashColon
    79. Sm3SimplePasswordHash
    80. Sm3SimpleSaltPasswordHash
    81. Xxh128HexlifyPasswordHash
    82. Xxh128Pbkdf2PasswordHash
    83. Xxh128Pbkdf2PasswordHashColon
    84. Xxh128SimplePasswordHash
    85. Xxh128SimpleSaltPasswordHash
    86. Xxh32HexlifyPasswordHash
    87. Xxh32Pbkdf2PasswordHash
    88. Xxh32Pbkdf2PasswordHashColon
    89. Xxh32SimplePasswordHash
    90. Xxh32SimpleSaltPasswordHash
    91. Xxh64HexlifyPasswordHash
    92. Xxh64Pbkdf2PasswordHash
    93. Xxh64Pbkdf2PasswordHashColon
    94. Xxh64SimplePasswordHash
    95. Xxh64SimpleSaltPasswordHash
    96. algorithms_available
    97. get_blake2b
    98. get_blake2b_base64
    99. get_blake2b_digest
    100. get_blake2b_hexdigest
    101. get_blake2s
    102. get_blake2s_base64
    103. get_blake2s_digest
    104. get_blake2s_hexdigest
    105. get_file_blake2b
    106. get_file_blake2b_base64
    107. get_file_blake2b_digest
    108. get_file_blake2b_hexdigest
    109. get_file_blake2s
    110. get_file_blake2s_base64
    111. get_file_blake2s_digest
    112. get_file_blake2s_hexdigest
    113. get_file_hash
    114. get_file_hash_base64
    115. get_file_hash_hexdigest
    116. get_file_hash_result
    117. get_file_md5
    118. get_file_md5_base64
    119. get_file_md5_digest
    120. get_file_md5_hexdigest
    121. get_file_sha
    122. get_file_sha1
    123. get_file_sha1_base64
    124. get_file_sha1_digest
    125. get_file_sha1_hexdigest
    126. get_file_sha224
    127. get_file_sha224_base64
    128. get_file_sha224_digest
    129. get_file_sha224_hexdigest
    130. get_file_sha256
    131. get_file_sha256_base64
    132. get_file_sha256_digest
    133. get_file_sha256_hexdigest
    134. get_file_sha384
    135. get_file_sha384_base64
    136. get_file_sha384_digest
    137. get_file_sha384_hexdigest
    138. get_file_sha3_224
    139. get_file_sha3_224_base64
    140. get_file_sha3_224_digest
    141. get_file_sha3_224_hexdigest
    142. get_file_sha3_256
    143. get_file_sha3_256_base64
    144. get_file_sha3_256_digest
    145. get_file_sha3_256_hexdigest
    146. get_file_sha3_384
    147. get_file_sha3_384_base64
    148. get_file_sha3_384_digest
    149. get_file_sha3_384_hexdigest
    150. get_file_sha3_512
    151. get_file_sha3_512_base64
    152. get_file_sha3_512_digest
    153. get_file_sha3_512_hexdigest
    154. get_file_sha512
    155. get_file_sha512_base64
    156. get_file_sha512_digest
    157. get_file_sha512_hexdigest
    158. get_file_sha_base64
    159. get_file_sha_digest
    160. get_file_sha_hexdigest
    161. get_file_sm3
    162. get_file_sm3_base64
    163. get_file_sm3_digest
    164. get_file_sm3_hexdigest
    165. get_file_xxh128
    166. get_file_xxh128_base64
    167. get_file_xxh128_digest
    168. get_file_xxh128_hexdigest
    169. get_file_xxh32
    170. get_file_xxh32_base64
    171. get_file_xxh32_digest
    172. get_file_xxh32_hexdigest
    173. get_file_xxh64
    174. get_file_xxh64_base64
    175. get_file_xxh64_digest
    176. get_file_xxh64_hexdigest
    177. get_hash
    178. get_hash_base64
    179. get_hash_digest
    180. get_hash_hexdigest
    181. get_hash_result
    182. get_md5
    183. get_md5_base64
    184. get_md5_digest
    185. get_md5_hexdigest
    186. get_password_hash
    187. get_password_hash_methods
    188. get_pbkdf2_blake2b
    189. get_pbkdf2_blake2s
    190. get_pbkdf2_hmac
    191. get_pbkdf2_md5
    192. get_pbkdf2_sha
    193. get_pbkdf2_sha1
    194. get_pbkdf2_sha224
    195. get_pbkdf2_sha256
    196. get_pbkdf2_sha384
    197. get_pbkdf2_sha3_224
    198. get_pbkdf2_sha3_256
    199. get_pbkdf2_sha3_384
    200. get_pbkdf2_sha3_512
    201. get_pbkdf2_sha512
    202. get_pbkdf2_sm3
    203. get_pbkdf2_xxh128
    204. get_pbkdf2_xxh32
    205. get_pbkdf2_xxh64
    206. get_salted_hash_base64
    207. get_sha
    208. get_sha1
    209. get_sha1_base64
    210. get_sha1_digest
    211. get_sha1_hexdigest
    212. get_sha224
    213. get_sha224_base64
    214. get_sha224_digest
    215. get_sha224_hexdigest
    216. get_sha256
    217. get_sha256_base64
    218. get_sha256_digest
    219. get_sha256_hexdigest
    220. get_sha384
    221. get_sha384_base64
    222. get_sha384_digest
    223. get_sha384_hexdigest
    224. get_sha3_224
    225. get_sha3_224_base64
    226. get_sha3_224_digest
    227. get_sha3_224_hexdigest
    228. get_sha3_256
    229. get_sha3_256_base64
    230. get_sha3_256_digest
    231. get_sha3_256_hexdigest
    232. get_sha3_384
    233. get_sha3_384_base64
    234. get_sha3_384_digest
    235. get_sha3_384_hexdigest
    236. get_sha3_512
    237. get_sha3_512_base64
    238. get_sha3_512_digest
    239. get_sha3_512_hexdigest
    240. get_sha512
    241. get_sha512_base64
    242. get_sha512_digest
    243. get_sha512_hexdigest
    244. get_sha_base64
    245. get_sha_digest
    246. get_sha_hexdigest
    247. get_sm3
    248. get_sm3_base64
    249. get_sm3_digest
    250. get_sm3_hexdigest
    251. get_xxh128
    252. get_xxh128_base64
    253. get_xxh128_digest
    254. get_xxh128_hexdigest
    255. get_xxh32
    256. get_xxh32_base64
    257. get_xxh32_digest
    258. get_xxh32_hexdigest
    259. get_xxh64
    260. get_xxh64_base64
    261. get_xxh64_digest
    262. get_xxh64_hexdigest
    263. is_the_same_hash_method
    264. method_load
    265. new
    266. pbkdf2_hmac
    267. register_hexlify_password_hash
    268. register_password_hash_method
    269. register_pbkdf2_password_hash
    270. register_simple_password_hash
    271. register_simple_salt_password_hash
    272. setup_hash_method_loader
    273. validate_password_hash
    274. validate_pbkdf2_blake2b
    275. validate_pbkdf2_blake2s
    276. validate_pbkdf2_hmac
    277. validate_pbkdf2_md5
    278. validate_pbkdf2_sha
    279. validate_pbkdf2_sha1
    280. validate_pbkdf2_sha224
    281. validate_pbkdf2_sha256
    282. validate_pbkdf2_sha384
    283. validate_pbkdf2_sha3_224
    284. validate_pbkdf2_sha3_256
    285. validate_pbkdf2_sha3_384
    286. validate_pbkdf2_sha3_512
    287. validate_pbkdf2_sha512
    288. validate_pbkdf2_sm3
    289. validate_pbkdf2_xxh128
    290. validate_pbkdf2_xxh32
    291. validate_pbkdf2_xxh64
  11. zenutils.httputils
    1. download
    2. get_sitename
    3. get_url_filename
    4. get_url_save_path
    5. get_urlinfo
    6. urlparse
  12. zenutils.importutils
    1. get_caller_globals
    2. get_caller_locals
    3. import_from_string
    4. import_module
  13. zenutils.jsonutils
    1. SimpleJsonEncoder
    2. make_simple_json_encoder
    3. register_global_encoder
    4. simple_json_dumps
  14. 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
  15. zenutils.logutils
    1. get_console_handler
    2. get_file_handler
    3. get_simple_config
    4. setup
  16. zenutils.nameutils
    1. get_last_names
    2. get_random_name
    3. get_suggest_first_names
    4. guess_lastname
    5. guess_surname
  17. 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
  18. zenutils.packutils
    1. AbstractResultPacker
    2. RcmPacker
  19. zenutils.perfutils
    1. timeit
  20. zenutils.randomutils
    1. Lcg31Random
    2. Random
    3. UuidGenerator
    4. choices
    5. get_password_seed32
    6. uuid1
    7. uuid3
    8. uuid4
    9. uuid5
  21. zenutils.serviceutils
    1. DebugService
    2. ServiceBase
  22. 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. create_new_class
    14. default_encoding
    15. default_encodings
    16. force_bytes
    17. force_text
    18. unicode
  23. zenutils.socketserverutils
    1. NStreamExchangeProtocolBase
    2. ServerEngineBase
    3. ServerHandle
  24. zenutils.strutils
    1. BAI
    2. BASE64_CHARS
    3. HEXLIFY_CHARS
    4. QIAN
    5. SHI
    6. StrUtils
    7. URLSAFEB64_CHARS
    8. WAN
    9. YI
    10. binarify
    11. bytes2ints
    12. camel
    13. captital_number
    14. char_force_to_int
    15. chunk
    16. clean
    17. combinations
    18. combinations2
    19. decodable
    20. default_cn_digits
    21. default_cn_float_places
    22. default_cn_negative
    23. default_cn_places
    24. default_cn_yuan
    25. default_encoding
    26. default_encodings
    27. default_quotes
    28. default_random_string_choices
    29. do_clean
    30. encodable
    31. force_float
    32. force_int
    33. force_numberic
    34. force_type_to
    35. format_with_mapping
    36. get_all_substrings
    37. get_base64image
    38. get_image_bytes
    39. html_element_css_append
    40. int2bytes
    41. ints2bytes
    42. is_base64_decodable
    43. is_chinese_character
    44. is_hex_digits
    45. is_str_composed_by_the_choices
    46. is_unhexlifiable
    47. is_urlsafeb64_decodable
    48. is_uuid
    49. join_lines
    50. no_mapping
    51. none_to_empty_string
    52. parse_base64image
    53. random_string
    54. remove_prefix
    55. remove_suffix
    56. reverse
    57. simple_cn_yuan
    58. simplesplit
    59. smart_get_binary_data
    60. split
    61. split2
    62. str_composed_by
    63. stringlist_append
    64. strip_string
    65. substrings
    66. text_display_length
    67. text_display_shorten
    68. unbinarify
    69. unquote
    70. wholestrip
  25. zenutils.sysutils
    1. default_timeout_kill
    2. execute_script
    3. get_current_thread_id
    4. get_node_ip
    5. get_random_script_name
    6. get_worker_id
    7. psutil_timeout_kill
  26. zenutils.threadutils
    1. ConcurrentLimitJobQueue
    2. Counter
    3. Future
    4. JobExecuteTimeout
    5. JobQueue
    6. JobResultNotSet
    7. LoopIdle
    8. Service
    9. ServiceStop
    10. ServiceTerminate
    11. SimpleConsumer
    12. SimpleProducer
    13. SimpleProducerConsumerServer
    14. SimpleServer
    15. StartOnTerminatedService
  27. zenutils.treeutils
    1. SimpleRouterTree
    2. build_tree
    3. print_tree
    4. print_tree_callback
    5. tree_walk
  28. zenutils.typingutils
    1. Number
    2. STRING_ENCODINGS
    3. register_global_caster
    4. smart_cast
  29. zenutils.xmlrpcutils
    1. SimpleAuthMixin
    2. SimpleAuthSafeTransport
    3. SimpleAuthTransport

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
  10. Python 3.11 passed

Release

v0.1.0

  • First release.

v0.2.0

  • Add treeutils.SimpleRouterTree.
  • Add randomutils.HashPrng.
  • Add hashutils.get_password_hash and hashutils.validate_password_hash.
  • Add dictutils.HttpHeadersDict.
  • Add sysutils.get_node_ip.

v0.3.1

  • Add funcutils.retry.
  • Fix hashutils.validate_password_hash problem.

v0.3.2

  • Add sm3 hash support in hashutils.
  • Add xxhash hash support in hashutils.
  • Export hashutils.pbkdf2_hmac to work with your self defined hash methods.
  • Fix problem in sysutils.get_random_script_name on windows.
  • Fix path string problem in tests.test_httputils on windows.

v0.3.3

  • Fix funcutils.isclass can not detect classes with metaclass. Use inspect.isclass instead.
  • Add cacheutils.cache.

v0.3.5

  • Change default log file path from pwd/app.log to pwd/logs/app.log.
  • Add fsutils.get_swap_filename.
  • Add fsutils.safe_write.
  • Add fsutils.get_safe_filename.

v0.3.6

  • Add sixutils.create_new_class.
  • Fix hashutils problem in python3.3 and below.
  • Extend numericutils.int2bytes as int.to_bytes.

V0.3.7

  • Add randomutils.Lcg31Random.
  • Add randomutils.get_password_seed32.

v0.3.8

  • Fix force_text in handling NON-STR type data.

v0.3.9

  • Add delete_script parameter in fsutils.execute_script.

v0.3.12

  • dictutils.Object add select method.
  • Add errorutils.
  • Add packutils.
  • Add perfutils.
  • Add serviceutils.

v0.3.15

  • Add serviceutils.ServerEngineBase.

v0.3.16

  • Rename serviceutils.ServerEngineBase to socketserverutils.ServerEngineBase.
  • Add socketserverutils.NStreamExchangeProtocolBase.
  • Add ServerHandle.

v0.3.19

  • Fix NStreamExchangeProtocolBase makefile buffering problem for py2.7.
  • Fix log format problem in old version python.
  • Add more exception classes in errorutils.
  • Add dateutils.
  • Add errorutils.AuthenticationRequired.

v0.3.23

  • Fix logger.error missing msg problem.
  • Add threadutils.ConcurrentLimitJobQueue.

v0.4.8

  • Fix *args problem in call_with_inject.
  • Change serviceutils.ServiceBase.register_to.
  • Add cacheutils.ReqIdCache.
  • Add xmlrpcutils.SimpleAuthTransport.
  • Add xmlrpcutils.SimpleAuthSafeTransport.
  • Add threadutils.JobQueue.
  • Add threadutils.Future.
  • Add funcutils.get_method_help.
  • Add funcutils.get_method_signature.

v0.4.9

  • Add cacheutils.simple_cache.

v0.4.10

  • Fix readme document.
  • Fix pylint warnings.
  • Unit test problems fix.

v0.5.0

  • Add sixutils.unicode.

v0.5.1

  • Fix logutils default format missing space between thread and module fields.

v0.5.2

  • Add hashutils.get_hash_digest.
  • Add log_to_console and log_to_file option in logutils.get_simple_config.

v0.5.3

  • Fix jsonutils.simple_json_dumps for set value problem.

v0.5.4

  • fsutils.safe_write add timestr suffix.

v0.5.5

  • Remove tests from release package.

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.5.5.tar.gz (88.9 kB view hashes)

Uploaded Source

Built Distributions

zenutils-0.5.5-py32-none-any.whl (94.4 kB view hashes)

Uploaded Python 3.2

zenutils-0.5.5-py3-none-any.whl (94.4 kB view hashes)

Uploaded Python 3

zenutils-0.5.5-py2-none-any.whl (94.4 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