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.19.tar.gz
(2.5 kB
view hashes)
Built Distribution
omnitools-0.0.19-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for omnitools-0.0.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75934a496eb3a900d219d7b8bf5b93329421aee5fdac7a0d1800abedf849f8cf |
|
MD5 | afcc83ca66b763aacc441111dcc911ee |
|
BLAKE2b-256 | b6cfcb2073243bb1621dadd9c2f66700ee6321fc41e29466fe3b7a79a7b94aba |