Skip to main content

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.18.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

omnitools-0.0.18-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page