http-access

http direct access django app


License
MIT
Install
pip install http-access==0.1.3

Documentation

http_access

An extension of eoxserver that allows direct http access and range requests to access raster data.

Install

To add to a django instance, edit the following files:

settings.py

INSTALLED_APPS = (
    ...
    'http_access'
)

urls.py

urlpatterns = [
    ...
    re_path(r'^http/', include('http_access.urls'))
]

Usage

The files can directly be accessed with http range requests with the Range header, the storage name (STORAGE_NAME) and the path to the file (/PATH/TO/FILE) in the storage.

curl -i -H "Range: bytes=15-60" http://host.com/http/storage/<STORAGE_NAME>/<PATH/TO/FILE>

When the file is not located on a storage, but on a local filesystem, the following request is to be used:

curl -i -H "Range: bytes=15-60" http://host.com/http/local/<PATH/TO/FILE>