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).
- Host: GitHub
- URL: https://github.com/pydap/pydap
- Owner: pydap
- License: mit
- Created: 2013-06-03T20:42:50.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T06:01:37.000Z (13 days ago)
- Last Synced: 2025-04-17T22:45:29.636Z (9 days ago)
- Topics: dap, data, dods, opendap, science
- Language: Python
- Homepage: https://pydap.github.io/pydap/
- Size: 34.3 MB
- Stars: 141
- Watchers: 15
- Forks: 87
- Open Issues: 60
- Releases: 9
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
README.md
pydap
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 havemamba
installed, you can replaceconda
in the commands withmamba
.
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
- Name: pydap
- Login: pydap
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/19211449?v=4
- Repositories: 8
- Last ynced at: 2024-04-16T05:40:56.292Z
- Profile URL: https://github.com/pydap
GitHub Events
Total
- Create event: 39
- Release event: 5
- Issues event: 80
- Watch event: 3
- Delete event: 31
- Issue comment event: 119
- Push event: 103
- Pull request review comment event: 5
- Pull request event: 84
- Pull request review event: 11
- Fork event: 1
Last Year
- Create event: 39
- Release event: 5
- Issues event: 80
- Watch event: 3
- Delete event: 31
- Issue comment event: 119
- Push event: 103
- Pull request review comment event: 5
- Pull request event: 84
- Pull request review event: 11
- Fork event: 1
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 | 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:
- opendap.org: 3
- usgs.gov: 1
- anu.edu.au: 1
- nublia.com: 1
- die70.de: 1
- me.com: 1
- hdfgroup.org: 1
- technigami.com: 1
- met.no: 1
- nasa.gov: 1
- noaa.gov: 1
- hiebert.name: 1
- dealmeida.net: 1
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
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
- Total packages: 2
-
Total downloads:
- pypi: 32,920 last-month
- Total docker downloads: 970
- Total dependent packages: 27 (may contain duplicates)
- Total dependent repositories: 111 (may contain duplicates)
- Total versions: 55
- Total maintainers: 5
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
- Jinja2 *
- Webob *
- beautifulsoup4 *
- docopt *
- numpy *
- requests *
- six *
- actions/checkout v3 composite
- actions/setup-python v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- actions/checkout v3 composite
- actions/setup-python v4 composite
- Jinja2 *
- Webob *
- beautifulsoup4 *
- docopt-ng *
- numpy *
- requests *
- actions/checkout v4 composite
- actions/setup-python v5 composite
- pre-commit/action v3.0.1 composite
- coards *
- cryptography *
- gsw *
- requests-mock *
- testresources *
- webtest *
- werkzeug >=2.2.2
Score: 19.402128759241222