def get_resource(self, name):
    'Get resource by name.\n\n        Parameters:\n            name (str): resource name\n\n        Raises:\n            FrictionlessException: if resource is not found\n\n        Returns:\n           Resource/None: `Resource` instance or `None` if not found\n        '
    for resource in self.resources:
        if (resource.name == name):
            return resource
    error = errors.PackageError(note=f'resource "{name}" does not exist')
    raise FrictionlessException(error)
Get resource by name.

Parameters:
    name (str): resource name

Raises:
    FrictionlessException: if resource is not found

Returns:
   Resource/None: `Resource` instance or `None` if not found
def get_resource(self, name):
    'Get resource by name.\n\n        Parameters:\n            name (str): resource name\n\n        Raises:\n            FrictionlessException: if resource is not found\n\n        Returns:\n           Resource/None: `Resource` instance or `None` if not found\n        '
    for resource in self.resources:
        if (resource.name == name):
            return resource
    error = errors.PackageError(note=f'resource "{name}" does not exist')
    raise FrictionlessException(error)