The panko.utils Module

The panko.utils Module

Utilities and helper functions.


Return a datetime from Decimal unixtime format.


Decode the unicode of the message, and encode it into utf-8.


Datetime to Decimal.

Some databases don’t store microseconds in datetime so we always store as Decimal unixtime.

@panko.utils.recursive_keypairs(d, separator=':')[source]

Generator that produces sequence of keypairs for nested dictionaries.


Return a naive utc datetime object.

@panko.utils.update_nested(original_dict, updates)[source]

Updates the leaf nodes in a nest dict.

Updates occur without replacing entire sub-dicts.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.