Skip to main content

An implementation of the Data Access Protocol.

Project description


[![Build Status](](

[Pydap]( is an implementation of the Opendap/DODS protocol, written from scratch in pure python. You can use Pydap to access scientific data on the internet without having to
download it; instead, you work with special array and iterable objects that
download data on-the-fly as necessary, saving bandwidth and time. The module
also comes with a robust-but-lightweight Opendap server, implemented as a WSGI


You can install the latest version using [pip]( After [installing pip]( you can install Pydap with this command:
$ pip install Pydap
This will install Pydap together with all the required dependencies. You can now open any remotely served dataset, and Pydap will download the accessed data on-the-fly as needed:


>>> from pydap.client import open_url
>>> dataset = open_url('')
>>> var = dataset['SST']
>>> var.shape
(12, 90, 180)
>>> var.dtype
>>> data = var[0,10:14,10:14] # this will download data from the server
>>> data
<GridType with array 'SST' and maps 'TIME', 'COADSY', 'COADSX'>
>>> print(
[array([[[ -1.26285708e+00, -9.99999979e+33, -9.99999979e+33,
[ -7.69166648e-01, -7.79999971e-01, -6.75454497e-01,
[ 1.28333330e-01, -5.00000156e-02, -6.36363626e-02,
[ 6.38000011e-01, 8.95384610e-01, 7.21666634e-01,
8.10000002e-01]]], dtype=float32), array([ 366.]), array([-69., -67., -65., -63.]), array([ 41., 43., 45., 47.])]

For more information, please check the documentation on [using Pydap as a client]( Pydap also comes with a simple server, implemented as a [WSGI]( application. To use it, you first need to install the server and optionally a data handler:


$ pip install Pydap[server,handlers.netcdf]
This will install support for [netCDF]( files; more [handlers]( for different formats are available, if necessary. Now create a directory for your server data.

To run the server just issue the command:


$ pydap --data ./myserver/data/ --port 8001
This will start a standalone server running on http://localhost:8001/, serving netCDF files from ``./myserver/data/``, similar to the test server at Since the server uses the [WSGI]( standard, it can easily be run behind Apache. The [server documentation](server.html) has more information on how to better deploy Pydap.

## Documentation
For more information, see [![documentation](](

## Help

If you need any help with Pydap, please feel free to send an email to the [mailing list](

Project details

Download files

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

Files for Pydap, version 3.2.2
Filename, size File type Python version Upload date Hashes
Filename, size Pydap-3.2.2.tar.gz (3.9 MB) File type Source Python version None Upload date Hashes View
Filename, size Pydap-3.2.2-py3-none-any.whl (2.3 MB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page