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.15.tar.gz
(2.2 kB
view hashes)
Built Distribution
omnitools-0.0.15-py3-none-any.whl
(15.6 kB
view hashes)
Close
Hashes for omnitools-0.0.15-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c37cb37c43dd67f73c8b23ea8e90109e7cdef7590bffc7bba48806c0e869988 |
|
MD5 | a4707ee0457317d67f2c9699dbda36b8 |
|
BLAKE2b-256 | 0d5b968cfc507031bf5db1297539c0ecc9acb22b10caf88c1161cd16db19bd51 |