frictionlessdata / datapackage-py

A Python library for working with Data Packages.
https://frictionlessdata.io
MIT License
189 stars 44 forks source link

Check path safety optionally instead of always #261

Closed davibicudo closed 4 years ago

davibicudo commented 4 years ago

Hi,

When instantiating a resource, would it be possible to check the path for safety only optionally? Refering to: https://github.com/frictionlessdata/datapackage-py/blob/c6f479db4e7804ce7cfffaea1b39593918ecc3b3/datapackage/resource.py#L806

In my use case, we have a project with files stored on the local server and I'd like to better manage these files and perform data validation for internal purposes. This means what I'm doing is intended for a safe environment, not for any customer application. In this case, I'd like to be able to access the shared datasets from the absolute path, which is currently not possible. Would it be possible to add an argument to the Datapackage instance allowing absolute paths? Or maybe there is a better way of doing this which I'm not aware of?

Thank you!

davibicudo commented 4 years ago

I just realized this is already an open issue at https://github.com/frictionlessdata/datapackage-py/issues/171 Sorry for the duplicate.