Skip to content

Helpers

iterator

descriptor_iteration(**kwargs)

Iterate on package(s) descriptor(s) and apply a function to each package.

resources_iteration(package, **kwargs)

Iterate on resources from a package descriptor or a package object and apply a function to each resource.

validate

check_resource(resource, rows, errors, **kwargs)

Validates a resource and adds its result to the validation report. If validation fails, processing stops unless no_stop is enabled.

validate_datapackage(package, **kwargs)

Validate all resources of a datapackage, before any processing.

validate_resources(rows, errors, **kwargs)

Displays validation results and detected errors. If validation fails, execution stops unless no_stop is enabled.

network

force_ipv4()

Make all host name lookups resolve to IPv4 addresses only.

configure_proxy_from_env()

Route socket connections through the proxy set in the environment.

Reads HTTPS_PROXY or HTTP_PROXY (upper or lower case) and loads the .env file from the current working directory.