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.22.tar.gz
(2.6 kB
view hashes)
Built Distribution
omnitools-0.0.22-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for omnitools-0.0.22-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79ab944985fd18397f16017f7eb69948b946206bdc0317b454e55a719eb68be9 |
|
MD5 | a5025cc1ffed024a6d0431be775733d9 |
|
BLAKE2b-256 | 06f65bf0b52187900cde36d41649366c7b421c9389698d9cecd8a7752f62f0f7 |