akvo.iati.checks.fields package

akvo.iati.checks.fields.budgets(project)[source]

Check if budget has start date, end date and a value. Check that start date lies before the end date. Check if the budget has a currency if there is not default currency.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.conditions(project)[source]

Check if condition has a type and description.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.countries_and_regions(project)[source]

Check if recipient countries or regions are present only on project or transaction level.

In case there are multiple recipients, all must have a percentage specified. Percentages for all reported countries and regions must add up to 100%.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.country_budget_items(project)[source]

Check if vocabulary is present if there are any country budget items. Check if percentages add up to 100 if there are multiple budgets.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.crs_add(project)[source]

Check if crs add other flags have a code and significance. Check if loan status year is present if any of the other loan status fields is present. Check if loan status currency or default currency is present if any of the other loan status fields is present.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.dates(project)[source]

Check if a date start planned or actual is present. Check if the actual dates are today, or in the past.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.description(project)[source]

Check if a project has a description field.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

Check if document link has an url, format, title and category.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.fss(project)[source]

Check if fss has extraction date. Check if fss forecast has value, year and currency or a default currency specified.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.humanitarian_scope(project)[source]

Check if all humanitarian scopes have a code, type and vocabulary.

In case the the vocabulary is ‘99’, check if the vocabulary URI is filled in.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.iati_identifier(project)[source]

Check if a project has an IATI identifier.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.language(project)[source]

Check if a project has a language.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.legacy_data(project)[source]

Check if legacy data has a name and value.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.locations(project)[source]

If a(n administrative) code is specified, a vocabulary needs to be specified as well.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.partners(project)[source]

Check if a project has at least one valid partner and issue a warning if a partner misses the role, IATI identifier or name.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.planned_disbursements(project)[source]

Check if planned disbursement has start date, end date and a value. Check that start date lies before the end date. Check if the planned disbursement has a currency if there is not default currency.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.policy_markers(project)[source]

Check if policy marker has a code and significance.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.related_activities(project)[source]

Check if related project has an IATI identifier and relation.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.reporting_org(project)[source]

Check if a project has a reporting organisation and if the reporting organisation has an IATI identifier.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.results(project)[source]
Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.sectors(project)[source]

Check if sectors are present, either on project or transaction level, but not both. If on transaction level, all transactions must have a sector. Per sector vocabulary on project level, the percentages of the sectors should add up to 100%. On transaction level, each sector vocabulary should only occur once per transaction.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.status(project)[source]

Check if a project has a status.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.title(project)[source]

Check if a project has a title.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

akvo.iati.checks.fields.transactions(project)[source]

Check if transaction has a type, date (in the past or today) and value. Check if the transaction has a currency if there is not default currency. Check if provider and receiver org have a IATI identifier.

Parameters:

project – Project object

Returns:

All checks passed boolean, [Check results]

Submodules