def _get_package(self):
    if self.sql:
        engine = create_engine('sqlite:///{}'.format(self.datapackage))
        package = Package(storage='sql', engine=engine)
    else:
        package = read_datapackage(self.datapackage)
    return package
def _get_package(self):
    if self.sql:
        engine = create_engine('sqlite:///{}'.format(self.datapackage))
        package = Package(storage='sql', engine=engine)
    else:
        package = read_datapackage(self.datapackage)
    return package