Skip to main content

http direct access django app

Project description

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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

http_access-0.1.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

http_access-0.1.0-py3.8.egg (12.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page