Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load remote datapackages #11

Closed
vitorbaptista opened this issue Nov 27, 2015 · 2 comments
Closed

Load remote datapackages #11

vitorbaptista opened this issue Nov 27, 2015 · 2 comments

Comments

@vitorbaptista
Copy link
Contributor

It should be possible to do:

import datapackage

dp = datapackage.DataPackage('http://data.okfn.org/data/cpi/')
@vitorbaptista
Copy link
Contributor Author

We still need to figure out how the base path works in this case. Probably, the resources will be loaded with their paths relative to the URL as well. I've asked for clarifications at frictionlessdata/specs#232

vitorbaptista added a commit that referenced this issue Nov 30, 2015
For example, say that the datapackage lives at
`http://someplace.com/datapackage.json` and has the following resources:

```
{
    # ...
    "resources": [
        { "path": "data/foo.csv" }
    ]
    # ...
}
```

We should try loading that from `http://someplace.com/data/foo.csv`.
@vitorbaptista
Copy link
Contributor Author

I've considered that the base path works the same way for URLs and file paths. If we discover this is wrong, we must reopen this issue.

@vitorbaptista vitorbaptista removed their assignment Mar 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant