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.17.tar.gz
(2.5 kB
view hashes)
Built Distribution
omnitools-0.0.17-py3-none-any.whl
(16.3 kB
view hashes)
Close
Hashes for omnitools-0.0.17-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11f28d785a78d44b2bb071c42d7a1ff84ca5ca81999f23af9191055ab8f06713 |
|
MD5 | cf6c0c0f2da7308010882fbd05582615 |
|
BLAKE2b-256 | 7e6e15c12f5d139a9cf7cc849263f899c66327f40b203e8013f6857b7494d15b |