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.16.tar.gz
(2.5 kB
view hashes)
Built Distribution
omnitools-0.0.16-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for omnitools-0.0.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e389981cd757a2a121ba8afe9e65950e272d5589a8d9e51c62c8d7c635ccce2 |
|
MD5 | cf01f7cb0020492fd10c67e3abce848f |
|
BLAKE2b-256 | 950d7fdfb9688f11cfee928ea979a0fbac36fb20cd1ddcb8629fef3bc6059baa |