Collection of simple utils.
Project description
zenutils
Collection of simple utils. No extra packages required.
Install
pip install zenutils
Utils
- zenutils.base64utils
- a85decode
- a85encode
- b16decode
- b16encode
- b32decode
- b32encode
- b32hexdecode
- b32hexencode
- b64decode
- b64encode
- b85decode
- b85encode
- decode
- decodebytes
- encode
- encodebytes
- standard_b64decode
- standard_b64encode
- urlsafe_b64decode
- urlsafe_b64encode
- zenutils.baseutils
- Null
- zenutils.cacheutils
- get_cached_value
- zenutils.cipherutils
- Base64Encoder
- CipherBase
- DecryptFailed
- EncoderBase
- HexlifyEncoder
- IvCipher
- IvfCipher
- MappingCipher
- RawDataEncoder
- S12Cipher
- S1Cipher
- S2Cipher
- SafeBase64Encoder
- Utf8Encoder
- zenutils.dictutils
- Object
- attrgetorset
- attrset
- change
- changes
- deep_merge
- diff
- fix_object
- ignore_none_item
- prefix_key
- select
- to_object
- touch
- update
- zenutils.fsutils
- TemporaryFile
- copy
- expand
- file_content_replace
- filecopy
- first_exists_file
- get_application_config_filepath
- get_application_config_paths
- get_size_deviation
- get_size_display
- get_temp_workspace
- get_unit_size
- info
- mkdir
- move
- pathjoin
- readfile
- rename
- rm
- size_unit_names
- size_unit_upper_limit
- touch
- treecopy
- write
- zenutils.funcutils
- BunchCallable
- call_with_inject
- chain
- classproperty
- get_all_builtin_exceptions
- get_builtins_dict
- get_class_name
- get_default_values
- get_inject_params
- is_a_class
- mcall_with_inject
- signature
- try_again_on_error
- zenutils.hashutils
- get_file_hash
- get_file_md5
- get_file_sha
- get_file_sha1
- get_file_sha224
- get_file_sha256
- get_file_sha384
- get_file_sha512
- get_hash_base64
- get_hash_hexdigest
- get_md5
- get_md5_base64
- get_md5_hexdigest
- get_password_hash
- get_password_hash_methods
- get_pbkdf2_hmac
- get_pbkdf2_md5
- get_pbkdf2_sha
- get_pbkdf2_sha1
- get_pbkdf2_sha224
- get_pbkdf2_sha256
- get_pbkdf2_sha384
- get_pbkdf2_sha512
- get_sha
- get_sha1
- get_sha1_base64
- get_sha1_hexdigest
- get_sha224
- get_sha224_base64
- get_sha224_hexdigest
- get_sha256
- get_sha256_base64
- get_sha256_hexdigest
- get_sha384
- get_sha384_base64
- get_sha384_hexdigest
- get_sha512
- get_sha512_base64
- get_sha512_hexdigest
- get_sha_base64
- get_sha_hexdigest
- method_load
- pbkdf2_hmac
- register_password_hash_method
- validate_password_hash
- validate_pbkdf2_hmac
- validate_pbkdf2_md5
- validate_pbkdf2_sha
- validate_pbkdf2_sha1
- validate_pbkdf2_sha224
- validate_pbkdf2_sha256
- validate_pbkdf2_sha384
- validate_pbkdf2_sha512
- zenutils.httputils
- download
- get_sitename
- get_url_filename
- get_url_save_path
- get_urlinfo
- urlparse
- zenutils.jsonutils
- SimpleJsonEncoder
- make_simple_json_encoder
- register_global_encoder
- simple_json_dumps
- zenutils.listutils
- append_new
- chunk
- clean_none
- compare
- compare_execute
- first
- group
- ignore_none_element
- int_list_to_bytes
- is_ordered
- list2dict
- pad
- replace
- topological_sort
- topological_test
- unique
- zenutils.logutils
- get_console_handler
- get_file_handler
- get_simple_config
- setup
- zenutils.nameutils
- get_last_names
- get_random_name
- get_suggest_first_names
- guess_lastname
- guess_surname
- zenutils.numericutils
- _infinity
- binary_decompose
- bytes2ints
- decimal_change_base
- float_split
- from_bytes
- get_float_part
- infinity
- int2bytes
- ints2bytes
- is_infinity
- ninfinity
- pinfinity
- zenutils.randomutils
- Random
- UuidGenerator
- choices
- uuid1
- uuid3
- uuid4
- uuid5
- zenutils.sixutils
- BASESTRING_TYPES
- BYTES
- BYTES_TYPE
- INT_TO_BYTES
- NUMERIC_TYPES
- PY2
- PY3
- STR_TYPE
- TEXT
- bchar
- bstr_to_array
- bytes_to_array
- default_encoding
- default_encodings
- force_bytes
- force_text
- zenutils.strutils
- BAI
- BASE64_CHARS
- HEXLIFY_CHARS
- QIAN
- SHI
- URLSAFEB64_CHARS
- WAN
- YI
- binarify
- bytes2ints
- camel
- captital_number
- char_force_to_int
- chunk
- clean
- combinations
- combinations2
- decodable
- default_cn_digits
- default_cn_float_places
- default_cn_negative
- default_cn_places
- default_cn_yuan
- default_encoding
- default_encodings
- default_quotes
- default_random_string_choices
- do_clean
- encodable
- force_float
- force_int
- force_numberic
- force_type_to
- format_with_mapping
- get_all_substrings
- get_base64image
- get_image_bytes
- html_element_css_append
- int2bytes
- ints2bytes
- is_base64_decodable
- is_chinese_character
- is_hex_digits
- is_str_composed_by_the_choices
- is_unhexlifiable
- is_urlsafeb64_decodable
- is_uuid
- join_lines
- no_mapping
- none_to_empty_string
- parse_base64image
- random_string
- remove_prefix
- remove_suffix
- reverse
- simplesplit
- smart_get_binary_data
- split
- split2
- str_composed_by
- stringlist_append
- strip_string
- substrings
- text_display_length
- text_display_shorten
- unbinarify
- unquote
- wholestrip
- zenutils.sysutils
- default_timeout_kill
- execute_script
- get_current_thread_id
- get_node_ip
- get_random_script_name
- get_worker_id
- psutil_timeout_kill
- zenutils.threadutils
- Counter
- LoopIdle
- Service
- ServiceStop
- ServiceTerminate
- SimpleConsumer
- SimpleProducer
- SimpleProducerConsumerServer
- SimpleServer
- StartOnTerminatedService
- zenutils.treeutils
- SimpleRouterTree
- build_tree
- print_tree
- print_tree_callback
- tree_walk
- zenutils.typingutils
- Number
- STRING_ENCODINGS
- register_global_caster
- smart_cast
Compatibility
Test passed with python versions:
- Python 2.7 passed
- Python 3.2 passed
- Python 3.3 passed
- Python 3.4 passed
- Python 3.5 passed
- Python 3.7 passed
- Python 3.8 passed
- Python 3.9 passed
- Python 3.10 passed
Release
v0.1.0
- First release.
v0.2.0
- Add treeutils.SimpleRouterTree.
- Add randomutils.HashPrng.
- Add hashutils.get_password_hash and hashutils.verify_password_hash.
- Add dictutils.HttpHeadersDict.
- Add sysutils.get_node_ip.
Project details
Release history Release notifications | RSS feed
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.2.0.tar.gz
(98.5 kB
view hashes)
Built Distributions
zenutils-0.2.0-py32-none-any.whl
(110.0 kB
view hashes)
zenutils-0.2.0-py3-none-any.whl
(110.0 kB
view hashes)
zenutils-0.2.0-py2-none-any.whl
(110.0 kB
view hashes)
Close
Hashes for zenutils-0.2.0-py32-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32739691ad813c723995d7e11eef1209b1ccc6f393f698ba842611646a3ec432 |
|
MD5 | 184dcb68bf072849984b2069667d0566 |
|
BLAKE2b-256 | c716568ffb318e53af735cf48a88a49f2714ba6e441127741fc56f1c58f51510 |