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.25.tar.gz
(2.4 kB
view hashes)
Built Distribution
omnitools-0.0.25-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for omnitools-0.0.25-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6506216786aa8144e83d1e7cb409029d4528bb462c621777b1c75379c74a3423 |
|
MD5 | d84d15d75bd3814d92b777ae4ed75733 |
|
BLAKE2b-256 | 865d6da7a186ed34053f1410374c2ef4ce56242f0f490d51708f5ed636bb8218 |