people.cli

Attributes

cli

EXPORT_FIELDS

Functions

clear(→ Callable[[CoreRequest, Framework], None])

Deletes all people.

export_xlsx(→ Callable[[CoreRequest, Framework], None])

Exports all people to an excel file.

import_xlsx(→ Callable[[CoreRequest, Framework], None])

Imports people from an excel file.

Module Contents

people.cli.cli[source]
people.cli.clear(dry_run: bool) Callable[[CoreRequest, 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) Callable[[CoreRequest, 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]) Callable[[CoreRequest, 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