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.30.tar.gz
(2.8 kB
view hashes)
Built Distribution
omnitools-0.0.30-py3-none-any.whl
(17.0 kB
view hashes)
Close
Hashes for omnitools-0.0.30-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6b1d3fa535fc749f8085306f4fc3ebe0c060eba451f7e41efab33d1b9a2c808 |
|
MD5 | f10799f0d678b537ed7ca3754c42aeb9 |
|
BLAKE2b-256 | 54b5b1ca15bbcfc1f932f680cf70404348c6f09441de25963ca48f59be2a7add |