{"action":"created","issue":{"url":"https://api.github.com/repos/astropy/astropy/issues/3985","labels_url":"https://api.github.com/repos/astropy/astropy/issues/3985/labels{/name}","comments_url":"https://api.github.com/repos/astropy/astropy/issues/3985/comments","events_url":"https://api.github.com/repos/astropy/astropy/issues/3985/events","html_url":"https://github.com/astropy/astropy/issues/3985","id":96327848,"number":3985,"title":"Make it easy to re-use astropy.utils.data functionality for other servers","user":{"login":"astrofrog","id":314716,"avatar_url":"https://avatars.githubusercontent.com/u/314716?v=3","gravatar_id":"","url":"https://api.github.com/users/astrofrog","html_url":"https://github.com/astrofrog","followers_url":"https://api.github.com/users/astrofrog/followers","following_url":"https://api.github.com/users/astrofrog/following{/other_user}","gists_url":"https://api.github.com/users/astrofrog/gists{/gist_id}","starred_url":"https://api.github.com/users/astrofrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/astrofrog/subscriptions","organizations_url":"https://api.github.com/users/astrofrog/orgs","repos_url":"https://api.github.com/users/astrofrog/repos","events_url":"https://api.github.com/users/astrofrog/events{/privacy}","received_events_url":"https://api.github.com/users/astrofrog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astropy/astropy/labels/config","name":"config","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-21T14:21:11Z","updated_at":"2015-07-21T14:53:24Z","closed_at":null,"body":"As part of a discussion with STScI folk, it became apparent that it would be useful to be able to reuse the functions like ``get_pkg_data_filename`` in other packages but with a different server. However, currently only one base URL can be used, the one set by the configuration item ``dataurl``. Changing that configuration item would not be wise since it needs to be what it is for astropy and affiliated packages.\r\n\r\n@embray @mdboom - any ideas? Could we consider having a context manager, or something like this?"},"comment":{"url":"https://api.github.com/repos/astropy/astropy/issues/comments/123356914","html_url":"https://github.com/astropy/astropy/issues/3985#issuecomment-123356914","issue_url":"https://api.github.com/repos/astropy/astropy/issues/3985","id":123356914,"user":{"login":"pllim","id":2090236,"avatar_url":"https://avatars.githubusercontent.com/u/2090236?v=3","gravatar_id":"","url":"https://api.github.com/users/pllim","html_url":"https://github.com/pllim","followers_url":"https://api.github.com/users/pllim/followers","following_url":"https://api.github.com/users/pllim/following{/other_user}","gists_url":"https://api.github.com/users/pllim/gists{/gist_id}","starred_url":"https://api.github.com/users/pllim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pllim/subscriptions","organizations_url":"https://api.github.com/users/pllim/orgs","repos_url":"https://api.github.com/users/pllim/repos","events_url":"https://api.github.com/users/pllim/events{/privacy}","received_events_url":"https://api.github.com/users/pllim/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T14:53:24Z","updated_at":"2015-07-21T14:53:24Z","body":":+1: to adding example. I might have gotten the usage from Mike via private communications."}}