oslo.i18n integration module.
See https://docs.openstack.org/oslo.i18n/latest/user/usage.html
panko.i18n.
get_available_languages
()¶panko.i18n.
translate
(value, user_locale)¶panko.profiler.
WsgiMiddleware
(application, **kwargs)¶Bases: object
factory
(global_conf, **local_conf)¶panko.profiler.
setup
(conf)¶panko.profiler.
trace_cls
(name, **kwargs)¶Wrap the OSprofiler trace_cls.
Wrap the OSprofiler trace_cls decorator so that it will not try to patch the class unless OSprofiler is present.
name – The name of action. For example, wsgi, rpc, db, …
kwargs – Any other keyword args used by profiler.trace_cls
Utilities and helper functions.
panko.utils.
decimal_to_dt
(dec)¶Return a datetime from Decimal unixtime format.
panko.utils.
decode_unicode
(input)¶Decode the unicode of the message, and encode it into utf-8.
panko.utils.
dt_to_decimal
(utc)¶Datetime to Decimal.
Some databases don’t store microseconds in datetime so we always store as Decimal unixtime.
panko.utils.
recursive_keypairs
(d, separator=':')¶Generator that produces sequence of keypairs for nested dictionaries.
panko.utils.
sanitize_timestamp
(timestamp)¶Return a naive utc datetime object.
panko.utils.
update_nested
(original_dict, updates)¶Updates the leaf nodes in a nest dict.
Updates occur without replacing entire sub-dicts.
panko.
NotImplementedError
¶Bases: NotImplementedError
code
= 501¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.