panko package¶
Subpackages¶
- panko.api package
- panko.cmd package
- panko.conf package
- panko.policies package
- panko.publisher package
- panko.storage package
Submodules¶
panko.i18n module¶
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 module¶
-
class
panko.profiler.
WsgiMiddleware
(application, **kwargs)¶ Bases:
object
-
classmethod
factory
(global_conf, **local_conf)¶
-
classmethod
-
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.
- Parameters
name – The name of action. For example, wsgi, rpc, db, …
kwargs – Any other keyword args used by profiler.trace_cls
panko.utils module¶
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.version module¶
Module contents¶
-
exception
panko.
NotImplementedError
¶ Bases:
NotImplementedError
-
code
= 501¶
-