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.27.tar.gz
(2.4 kB
view hashes)
Built Distribution
omnitools-0.0.27-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for omnitools-0.0.27-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d15f6f7060b54f65b3251a0657e8ee50e2dc995945e49ecacecc6108b8c8225c |
|
MD5 | 0a43d10a8190e283c85c44ca5a926c70 |
|
BLAKE2b-256 | 7bf5e43c739d126770e6f821f2f0ca13db629bf169c39d75414e5ddf9aa8342f |