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.31.tar.gz
(2.8 kB
view hashes)
Built Distribution
omnitools-0.0.31-py3-none-any.whl
(17.0 kB
view hashes)
Close
Hashes for omnitools-0.0.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e26b512cf5e67f36d33d959333d597e913f996905e244bee4a95304d27eceb6 |
|
MD5 | 8ae38ed729ab11c86cfc27d849afd44a |
|
BLAKE2b-256 | 078f755660b65cf1dbc3b6f109f70cb197903aaebc22e8f91d611c50b7d35be4 |