pydap
A Python library implementing the Data Access Protocol (DAP, aka OPeNDAP).
Science Score: 59.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 3 DOI reference(s) in README -
✓Academic publication links
Links to: zenodo.org -
✓Committers with academic emails
4 of 39 committers (10.3%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (15.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
A Python library implementing the Data Access Protocol (DAP, aka OPeNDAP).
Basic Info
- Host: GitHub
- Owner: pydap
- License: mit
- Language: Python
- Default Branch: main
- Homepage: https://pydap.github.io/pydap/
- Size: 31.1 MB
Statistics
- Stars: 145
- Watchers: 15
- Forks: 87
- Open Issues: 64
- Releases: 10
Topics
Metadata Files
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:
bash
$ 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":
bash
$ conda create -n pydap -c conda-forge python=3.11 pydap numpy jupyterlab ipython netCDF4 scipy matplotlib
Now you simply activate the pydap environment:
bash
$ conda activate pydap
[!NOTE] If you have
mambainstalled, you can replacecondain 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
python
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()
python
.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
python
pyds['sst_anomaly'].shape
python
(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
bash
$ 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:
bash
$ 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
- Name: pydap
- Login: pydap
- Kind: organization
- Repositories: 8
- Profile: https://github.com/pydap
GitHub Events
Total
- Create event: 60
- Release event: 5
- Issues event: 118
- Watch event: 6
- Delete event: 56
- Issue comment event: 152
- Push event: 192
- Pull request review comment event: 6
- Pull request event: 128
- Pull request review event: 16
- Fork event: 1
Last Year
- Create event: 60
- Release event: 5
- Issues event: 118
- Watch event: 6
- Delete event: 56
- Issue comment event: 152
- Push event: 192
- Pull request review comment event: 6
- Pull request event: 128
- Pull request review event: 16
- Fork event: 1
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Roberto De Almeida | r****o@d****t | 227 |
| Frederic Laliberte | l****c@g****m | 185 |
| Miguel Jimenez | m****z@o****g | 101 |
| 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 |
| pre-commit-ci[bot] | 6****] | 6 |
| dependabot[bot] | 4****] | 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 (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 191
- Total pull requests: 266
- Average time to close issues: 5 months
- Average time to close pull requests: 3 months
- Total issue authors: 46
- Total pull request authors: 23
- Average comments per issue: 1.51
- Average comments per pull request: 0.95
- Merged pull requests: 210
- Bot issues: 0
- Bot pull requests: 22
Past Year
- Issues: 91
- Pull requests: 152
- Average time to close issues: 11 days
- Average time to close pull requests: 3 days
- Issue authors: 8
- Pull request authors: 4
- Average comments per issue: 0.97
- Average comments per pull request: 0.56
- Merged pull requests: 128
- Bot issues: 0
- Bot pull requests: 14
Top Authors
Issue Authors
- Mikejmnez (114)
- captainkirk99 (18)
- jgallagher59701 (5)
- tomkralidis (3)
- ndp-opendap (3)
- tennlee (2)
- rabernat (2)
- jayvdb (2)
- mathause (2)
- JimFluke (2)
- jondoesntgit (2)
- albertotb (2)
- laliberte (1)
- peterazmanov (1)
- jgliss (1)
Pull Request Authors
- Mikejmnez (194)
- captainkirk99 (16)
- pre-commit-ci[bot] (11)
- dependabot[bot] (11)
- owenlittlejohns (4)
- pauleckhardt (4)
- jgallagher59701 (3)
- shreddd (3)
- crossi202 (2)
- facutuesca (2)
- Zeitsperre (2)
- raphaeljolivet (2)
- raybellwaves (2)
- neishm (1)
- tirkarthi (1)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 2
-
Total downloads:
- pypi 77,438 last-month
- Total docker downloads: 970
-
Total dependent packages: 27
(may contain duplicates) -
Total dependent repositories: 111
(may contain duplicates) - Total versions: 56
- Total maintainers: 5
pypi.org: pydap
A pure python implementation of the Data Access Protocol.
- Documentation: https://pydap.readthedocs.io/
- License: 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.6
published 6 months ago
Rankings
Maintainers (5)
conda-forge.org: pydap
- Homepage: https://pydap.github.io/pydap/intro.html
- License: MIT
-
Latest release: 3.3.0
published about 4 years ago
Rankings
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