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.20.tar.gz
(2.6 kB
view hashes)
Built Distribution
omnitools-0.0.20-py3-none-any.whl
(16.4 kB
view hashes)
Close
Hashes for omnitools-0.0.20-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d7fe6a434766145a7307447a8fa0374c0281311059661098eb21b8aba3d08bd |
|
MD5 | 90e57e277aec15420d71fd1aaace844d |
|
BLAKE2b-256 | dd75792d5aec35e8859377effbea82744ffaa15418cfe85345cae3a745df1419 |