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.28.tar.gz
(2.4 kB
view hashes)
Built Distribution
omnitools-0.0.28-py3-none-any.whl
(15.7 kB
view hashes)
Close
Hashes for omnitools-0.0.28-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1f20de6907e62983ab4290afd3d345a45ba5739a675ba9d2490ef830c43f7a |
|
MD5 | a4a46a52455b24f47b3845c9bacd2627 |
|
BLAKE2b-256 | 9ce74a37498b201686cf8de8a51a3fc637212a103b362e70acbdda0cf79949fc |