duck.storageยถ

Defines and provides the storage directory for Duck-related data and configuration files.

Module Contentsยถ

Functionsยถ

BaseDir

Returns the Base Directory for Duck project based on environment variable DUCK_SETTINGS_MODULE.

get_duck_storage

Returns the absolute path of the Duck storage directory.

Dataยถ

duck_storage

APIยถ

duck.storage.BaseDir() โ†’ pathlib.Path[source]ยถ

Returns the Base Directory for Duck project based on environment variable DUCK_SETTINGS_MODULE.

Notes:

  • This useful if you want to have the same base directory everywhere nomatter which settings you are using.

duck.storage.duck_storageยถ

โ€˜get_duck_storage(โ€ฆ)โ€™

duck.storage.get_duck_storage() โ†’ str[source]ยถ

Returns the absolute path of the Duck storage directory.

This directory is intended for storing data, configuration files, or other resources required by the Duck application. The path is resolved based on the current location of this file.

Returns:

The absolute path to the Duck storage directory.

Return type:

str