A curated list of open technology projects to sustain a stable climate, energy supply, biodiversity and natural resources.

pydap

An implementation of the Opendap/DODS protocol, written from scratch in pure Python, that allows researchers to access NASA Earth science data from a variety of programs.
https://github.com/pydap/pydap

Category: Sustainable Development
Sub Category: Data Catalogs and Interfaces

Keywords

dap data dods opendap science

Keywords from Contributors

compressed weather climate-model climate hdf5 archiving data-catalog pangeo pydata measurements

Last synced: about 13 hours ago
JSON representation

Repository metadata

A Python library implementing the Data Access Protocol (DAP, aka OPeNDAP).

README.md

pydap

Ubuntu CI
MacOS CI
Python
PyPI
conda forge
black
license
pre-commit.ci status
DOI

What is pydap?

pydap is an open-source implementation of the OPeNDAP protocol, written from scratch in pure Python. You can use pydap to access scientific data available on the many OPeNDAP servers publicly-available through the internet. Because pydap supports remote and lazy evaluation, you can access the data 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 application.

Why pydap?

Originally developed in the 2000s, pydap is one of the oldest open-source Python projects available and is routinely developed and maintained by the OPeNDAP community at large. In addition, pydap is a long-recognized backend engine (and dependency) for xarray and chances are you have used pydap in the past without knowing it.

Quickstart

pydap is a lightweight python package that you can use in either of the two modalities: a client and as a server. 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.

pydap is also available through Anaconda. Below we install pydap and its required dependencies, along with common additional packages in a fresh conda environment named "pydap":

    $ conda create -n pydap -c conda-forge python=3.11 pydap numpy jupyterlab ipython netCDF4 scipy matplotlib

Now you simply activate the pydap environment:

    $ conda activate pydap

[!NOTE]
If you have mamba installed, you can replace conda in the commands with mamba.

You can now use pydap as a client and open any remotely served dataset, and pydap will download the accessed data on-the-fly as needed. For example consider this dataset currently hosted on OPeNDAP's Hyrax data server

    from pydap.client import open_url
    pyds = open_url('http://test.opendap.org:8080/opendap/catalog/ghrsst/20210102090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc', protocol='dap4')
    pyds.tree()
    .20210102090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc
    ├──time
    ├──lat
    ├──lon
    ├──analysed_sst
    ├──analysis_error
    ├──mask
    ├──sea_ice_fraction
    ├──dt_1km_data
    └──sst_anomaly
    pyds['sst_anomaly'].shape
    (1, 17999, 36000)

[!NOTE]
In the example above, no data was downloaded, it was all lazily evaluated using OPeNDAP's DMR (DAP4) metadata representation. 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:

Running pydap as a Server

    $ pip install "pydap[server,netcdf]"

This will install the necessary dependencies for running pydap as a server, along with extra dependencies for handling netCDF4 dataset. Now create a directory for your server data.

To run the server just issue the command:

    $ pydap --data ./myserver/data/ --port 8001 --workers 4 --threads 4

This will start a standalone server running on the default http://localhost:8001/, serving netCDF files from ./myserver/data/ Since the server uses the WSGI standard, pydap uses by default one (1) worker and one (1) thread, but these can be defined by the user like in the case above (four (4) workers and four (4) threads). pydap can also easily be run behind Apache.

The server documentation has more information on how to better deploy pydap.

Documentation

For more information, see the pydap documentation.

Help and Community

If you need any help with pydap, open an issue in this repository. You can also email the mailing list. Finally, if you have a broader OPeNDAP access question, you can reach the OPeNDAP team on the OPeNDAP Discourse!


Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 4 days ago

Total Commits: 656
Total Committers: 39
Avg Commits per committer: 16.821
Development Distribution Score (DDS): 0.654

Commits in past year: 81
Committers in past year: 4
Avg Commits per committer in past year: 20.25
Development Distribution Score (DDS) in past year: 0.111

Name Email Commits
Roberto De Almeida r****o@d****t 227
Frederic Laliberte l****c@g****m 185
Miguel Jimenez m****z@o****g 82
James Hiebert j****s@h****e 56
Edward Hartnett E****t@n****v 24
Tom Kralidis t****s@g****m 11
ocefpaf o****f@g****m 9
Ghislain Antony Vaillant g****l 8
Owen Littlejohns o****s@n****v 7
dependabot[bot] 4****] 5
pre-commit-ci[bot] 6****] 5
James Gallagher j****r@o****g 3
Juan Luis Cano Rodríguez j****1@g****m 3
Ray Bell r****0@g****m 2
Michael Bunsen n****t@g****m 2
Lewis John McGibbney l****y@g****m 2
Christian Skarby c****y@m****o 2
Daniel Gray d****n@t****m 2
Aleksandar Jelenak a****k@h****g 1
Will Holmgren w****n@g****m 1
anthonybaxter a****r@g****m 1
epifanio e****a@m****m 1
kikocorreoso k****o 1
nathanlcarlson 2****n 1
Trevor James Smith 1****e 1
Tobias Kölling t****i@d****e 1
Stephan Hoyer s****r@g****m 1
SiggyF f****t@g****m 1
Shreyas Cholia s****s@g****m 1
Sebastian Krieger s****n@n****m 1
and 9 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 1 day ago

Total issues: 174
Total pull requests: 145
Average time to close issues: 5 months
Average time to close pull requests: 3 months
Total issue authors: 44
Total pull request authors: 23
Average comments per issue: 1.91
Average comments per pull request: 1.06
Merged pull request: 122
Bot issues: 0
Bot pull requests: 10

Past year issues: 95
Past year pull requests: 94
Past year average time to close issues: 17 days
Past year average time to close pull requests: 1 day
Past year issue authors: 8
Past year pull request authors: 4
Past year average comments per issue: 1.51
Past year average comments per pull request: 0.76
Past year merged pull request: 88
Past year bot issues: 0
Past year bot pull requests: 8

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/pydap/pydap

Top Issue Authors

  • Mikejmnez (96)
  • captainkirk99 (18)
  • jgallagher59701 (7)
  • tomkralidis (3)
  • ndp-opendap (3)
  • tennlee (2)
  • rabernat (2)
  • jayvdb (2)
  • mathause (2)
  • JimFluke (2)
  • jondoesntgit (2)
  • albertotb (2)
  • pauleckhardt (2)
  • peterazmanov (1)
  • jgliss (1)

Top Pull Request Authors

  • Mikejmnez (92)
  • captainkirk99 (16)
  • dependabot[bot] (5)
  • pre-commit-ci[bot] (5)
  • owenlittlejohns (4)
  • jgallagher59701 (3)
  • raybellwaves (2)
  • shreddd (2)
  • pauleckhardt (2)
  • neishm (1)
  • d70-t (1)
  • cskarby (1)
  • raphaeljolivet (1)
  • rbeucher (1)
  • tirkarthi (1)

Top Issue Labels

  • enhancement (20)
  • documentation (16)
  • bug (9)
  • tests (6)
  • docs (4)
  • invalid (4)
  • confirmed (2)
  • build (1)
  • dependencies (1)
  • feature (1)

Top Pull Request Labels

  • dependencies (6)
  • docs (2)

Package metadata

pypi.org: pydap

A pure python implementation of the Data Access Protocol.

  • Homepage:
  • Documentation: https://pydap.readthedocs.io/
  • Licenses: The MIT License Copyright (c) 2003-2010 Roberto De Almeida Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 3.5.5 (published 13 days ago)
  • Last Synced: 2025-04-25T13:06:16.916Z (1 day ago)
  • Versions: 50
  • Dependent Packages: 18
  • Dependent Repositories: 57
  • Downloads: 32,920 Last month
  • Docker Downloads: 970
  • Rankings:
    • Dependent packages count: 0.752%
    • Downloads: 1.746%
    • Average: 1.76%
    • Dependent repos count: 1.965%
    • Docker downloads count: 2.577%
  • Maintainers (5)
conda-forge.org: pydap

  • Homepage: https://pydap.github.io/pydap/intro.html
  • Licenses: MIT
  • Latest release: 3.3.0 (published about 3 years ago)
  • Last Synced: 2025-04-25T13:06:21.680Z (1 day ago)
  • Versions: 5
  • Dependent Packages: 9
  • Dependent Repositories: 54
  • Rankings:
    • Dependent repos count: 4.831%
    • Average: 5.639%
    • Dependent packages count: 6.447%

Dependencies

setup.py pypi
  • Jinja2 *
  • Webob *
  • beautifulsoup4 *
  • docopt *
  • numpy *
  • requests *
  • six *
.github/workflows/publish_to_pypi.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • pypa/gh-action-pypi-publish release/v1 composite
.github/workflows/run_tests_macos.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/run_tests_ubuntu.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
pyproject.toml pypi
  • Jinja2 *
  • Webob *
  • beautifulsoup4 *
  • docopt-ng *
  • numpy *
  • requests *
.github/workflows/pre-commit.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v5 composite
  • pre-commit/action v3.0.1 composite
ci/environment.yml pypi
  • coards *
  • cryptography *
  • gsw *
  • requests-mock *
  • testresources *
  • webtest *
  • werkzeug >=2.2.2
docs/environment.yml pypi

Score: 19.402128759241222