people.cli

Attributes

cli

EXPORT_FIELDS

Functions

clear(...)

Deletes all people.

export_xlsx(...)

Exports all people to an excel file.

import_xlsx(...)

Imports people from an excel file.

Module Contents

people.cli.cli[source]
people.cli.clear(dry_run: bool) collections.abc.Callable[[onegov.core.request.CoreRequest, onegov.core.framework.Framework], None][source]

Deletes all people.

Does not support agencies and memberships at the moment.

Example:

onegov-people –select ‘/org/govikon’ clear

people.cli.EXPORT_FIELDS[source]
people.cli.export_xlsx(filename: str) collections.abc.Callable[[onegov.core.request.CoreRequest, onegov.core.framework.Framework], None][source]

Exports all people to an excel file.

Does not support agencies and memberships at the moment.

Example:

onegov-people –select ‘/onegov_org/govikon’ export people.xlsx

people.cli.import_xlsx(file: IO[bytes]) collections.abc.Callable[[onegov.core.request.CoreRequest, onegov.core.framework.Framework], None][source]

Imports people from an excel file.

Does not support agencies and memberships at the moment.

Example:

onegov-people –select ‘/onegov_org/govikon’ import people.xlsx