## panko package

updated: 2020-10-17 18:35

# panko package

## Subpackages

- panko.api package
  - Subpackages
    - panko.api.controllers package
      - Subpackages
      - Submodules
      - panko.api.controllers.root module
      - Module contents
  - Submodules
  - panko.api.app module
  - panko.api.hooks module
  - panko.api.middleware module
  - panko.api.rbac module
  - Module contents
- panko.cmd package
  - Submodules
  - panko.cmd.storage module
  - Module contents
- panko.conf package
  - Submodules
  - panko.conf.defaults module
  - Module contents
- panko.policies package
  - Submodules
  - panko.policies.base module
  - panko.policies.segregation module
  - panko.policies.telemetry module
  - Module contents
- panko.publisher package
  - Submodules
  - panko.publisher.database module
  - Module contents
- panko.storage package
  - Subpackages
    - panko.storage.mongo package
      - Submodules
      - panko.storage.mongo.utils module
      - Module contents
    - panko.storage.sqlalchemy package
      - Submodules
      - panko.storage.sqlalchemy.models module
      - Module contents
  - Submodules
  - panko.storage.base module
  - panko.storage.impl_elasticsearch module
  - panko.storage.impl_log module
  - panko.storage.impl_mongodb module
  - panko.storage.impl_sqlalchemy module
  - panko.storage.models module
  - panko.storage.pymongo_base module
  - Module contents

## 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.opts module

`panko.opts.``list_opts`()

## panko.profiler module

class `panko.profiler.``WsgiMiddleware`(application, **kwargs)

  Bases: `object`

  classmethod `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.

  Parameters

    - name – The name of action. For example, wsgi, rpc, db, …

    - kwargs – Any other keyword args used by profiler.trace_cls

## panko.service module

`panko.service.``prepare_service`(argv=None, config_files=None, share=False)

## 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

updated: 2020-10-17 18:35

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

questions?