datakit_data.commands package

Submodules

datakit_data.commands.init module

class datakit_data.commands.init.Init(app, app_args, cmd_name=None)[source]

Bases: datakit_data.project_mixin.ProjectMixin, datakit.command_helpers.CommandHelpers, cliff.command.Command

Initialize a directory for use with an S3 data store.

Creates:
  • data/ directory (which should be excluded from version control)
  • config/datakit-data.json
create_project_config()[source]

Create project config if they don’t already exist.

Plugin-level configs, if configured, will override project defaults.

finalize_configs(configs)[source]
pop_key(config, name)[source]
take_action(parsed_args)[source]

datakit_data.commands.pull module

class datakit_data.commands.pull.Pull(app, app_args, cmd_name=None)[source]

Bases: datakit_data.project_mixin.ProjectMixin, datakit.command_helpers.CommandHelpers, cliff.command.Command

Pull data from S3

get_parser(prog_name)[source]
take_action(parsed_args)[source]

datakit_data.commands.push module

class datakit_data.commands.push.Push(app, app_args, cmd_name=None)[source]

Bases: datakit_data.project_mixin.ProjectMixin, datakit.command_helpers.CommandHelpers, cliff.command.Command

Push local data to S3

get_parser(prog_name)[source]
take_action(parsed_args)[source]

Module contents