Miscellaneous functions written in short forms.
Project description
Omnitools
Miscellaneous functions written in short forms.
Hierarchy
omnitools
|---- p()
|---- charenc()
'---- Obj()
Example
python
from omnitools import *
# print and always flush buffer
p("abc")
# abc
#
# detect character encoding
p(charenc(b"\xe3\x81\x82"))
# utf-8
# turn (nested) dict into an object
p(Obj({"a":{"b":{"c":123}}}).a.b.c)
# 123
shell
rem omnitools.exe <function name> [argument] ...
omnitools.exe p abc
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
omnitools-0.0.18.tar.gz
(2.5 kB
view hashes)
Built Distribution
omnitools-0.0.18-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for omnitools-0.0.18-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9875692fb3e2ca70469c9805ef3a546d5ad48b9b8926ed0aceb442b72fda6807 |
|
MD5 | 11d888ff7d60326bf5d8f1820d51b658 |
|
BLAKE2b-256 | 54fa3c859953171e89d64fb8aef615df3371a24ef69d250c5db1f05889cdcc2d |