dicogis.cli.cmd_publish module

class dicogis.cli.cmd_publish.RichProgressReporter(progress)

Bases: object

ProgressReporter on top of a Rich progress bar. Nothing cancels it: Ctrl+C interrupts the command.

__init__(progress)

Add a task to a progress bar.

Parameters:

progress (Progress) – running Rich progress bar

increment(amount=1)

Increment the progress counter.

Return type:

None

is_canceled()

Tell the operation has not been asked to stop.

Return type:

bool

set_message(message)

Update the description of the task.

Return type:

None

set_total(total)

Set the total value of the progress counter.

Return type:

None

dicogis.cli.cmd_publish.publish(input_folder=None, udata_api_key=None, udata_api_url_base='https://demo.data.gouv.fr/api/', udata_api_version='1', udata_organization_id=None, timeout=30.0, opt_notify_sound=True, verbose=False)

Publish metadata (previously exported as JSON files) to a catalog.