dragonfly.config module

Dragonfly configurations.

Import this into every module where access configurations are needed.

Usage:

from dragonfly.config import folders
print(folders.dragonfly_schema_version_str)
class dragonfly.config.Folders[source]

Bases: object

Dragonfly folders.

Properties:
  • dragonfly_core_version

  • dragonfly_core_version_str

  • dragonfly_schema_version

  • dragonfly_schema_version_str

  • python_package_path

property dragonfly_core_version

Get a tuple for the installed version of dragonfly-core (eg. (1, 47, 26)).

This will be None if the version could not be sensed (it was not installed via pip).

property dragonfly_core_version_str

Get a string for the installed version of dragonfly-core (eg. “1.47.26”).

This will be None if the version could not be sensed.

property dragonfly_schema_version

Get a tuple for the installed version of dragonfly-schema (eg. (1, 5, 27)).

This will be None if the version could not be sensed (it was not installed via pip) or if no dragonfly-schema installation was found next to the dragonfly-core installation.

property dragonfly_schema_version_str

Get a string for the installed version of dragonfly-schema (eg. “1.5.27”).

This will be None if the version could not be sensed.

property python_package_path

Get the path to where this Python package is installed.