dapclient


Namedapclient JSON
Version 1.0.4 PyPI version JSON
download
home_pageNone
SummaryA client-only fork of pydap using the DAP protocol to access scientific data on the internet.
upload_time2024-03-31 18:29:02
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD-3-Clause
keywords time-series cli-app aggregate fill filter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://github.com/timcera/dapclient/actions/workflows/python-package.yml/badge.svg
    :alt: Tests
    :target: https://github.com/timcera/dapclient/actions/workflows/python-package.yml
    :height: 20

.. image:: https://img.shields.io/coveralls/github/timcera/dapclient
    :alt: Test Coverage
    :target: https://coveralls.io/r/timcera/dapclient?branch=master
    :height: 20

.. image:: https://img.shields.io/pypi/v/dapclient.svg
    :alt: Latest release
    :target: https://pypi.python.org/pypi/dapclient/
    :height: 20

.. image:: http://img.shields.io/pypi/l/dapclient.svg
    :alt: BSD-3 clause license
    :target: https://pypi.python.org/pypi/dapclient/
    :height: 20

.. image:: http://img.shields.io/pypi/dd/dapclient.svg
    :alt: dapclient downloads
    :target: https://pypi.python.org/pypi/dapclient/
    :height: 20

.. image:: https://img.shields.io/pypi/pyversions/dapclient
    :alt: PyPI - Python Version
    :target: https://pypi.org/project/dapclient/
    :height: 20

dapclient - Quick Guide
=======================
dapclient is a client-only fork of the venerable pydap. It implements the
Opendap/DODS protocol.  You can use dapclient 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.

Why fork pydap?
---------------
* Simplify the codebase by remove the server side code
* Update the code to use modern python 3.8+
* Up-to-date pypi and conda packages

This version has no additional features, and it only has a few tests.  My
immediate goal is to have pip and conda packages to support my tsgettoolbox
package.  I will add tests and features as time (and pull requests!) allow.

Quickstart
----------
You can install the latest version using
[pip](http://pypi.python.org/pypi/pip) or conda.

    $ pip install dapclient

Also maintained on the conda-forge channel [conda channel](https://anaconda.org/conda-forge/dapclient)::

    $ conda install -c conda-forge dapclient

This will install dapclient together with all the required
dependencies. You can now open any remotely served dataset, and dapclient
will download the accessed data on-the-fly as needed::

    >>> from dapclient.client import open_url
    >>> dataset = open_url('http://test.opendap.org/dap/data/nc/coads_climatology.nc')
    >>> var = dataset['SST']
    >>> var.shape
    (12, 90, 180)
    >>> var.dtype
    dtype('>f4')
    >>> 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(data.data)
    [array([[[ -1.26285708e+00,  -9.99999979e+33,  -9.99999979e+33, -9.99999979e+33],
            [ -7.69166648e-01,  -7.79999971e-01,  -6.75454497e-01, -5.95714271e-01],
            [  1.28333330e-01,  -5.00000156e-02,  -6.36363626e-02, -1.41666666e-01],
            [  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 dapclient
as a client](https://timcera.bitbucket.io/dapclient/client.html).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "dapclient",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "time-series, cli-app, aggregate, fill, filter",
    "author": null,
    "author_email": "Tim Cera <tim@cerazone.net>",
    "download_url": "https://files.pythonhosted.org/packages/5e/56/c3f8deaddb3e545da11e6a404b7caf4f6b15ded546ddebb425c34ba8589a/dapclient-1.0.4.tar.gz",
    "platform": null,
    "description": ".. image:: https://github.com/timcera/dapclient/actions/workflows/python-package.yml/badge.svg\n    :alt: Tests\n    :target: https://github.com/timcera/dapclient/actions/workflows/python-package.yml\n    :height: 20\n\n.. image:: https://img.shields.io/coveralls/github/timcera/dapclient\n    :alt: Test Coverage\n    :target: https://coveralls.io/r/timcera/dapclient?branch=master\n    :height: 20\n\n.. image:: https://img.shields.io/pypi/v/dapclient.svg\n    :alt: Latest release\n    :target: https://pypi.python.org/pypi/dapclient/\n    :height: 20\n\n.. image:: http://img.shields.io/pypi/l/dapclient.svg\n    :alt: BSD-3 clause license\n    :target: https://pypi.python.org/pypi/dapclient/\n    :height: 20\n\n.. image:: http://img.shields.io/pypi/dd/dapclient.svg\n    :alt: dapclient downloads\n    :target: https://pypi.python.org/pypi/dapclient/\n    :height: 20\n\n.. image:: https://img.shields.io/pypi/pyversions/dapclient\n    :alt: PyPI - Python Version\n    :target: https://pypi.org/project/dapclient/\n    :height: 20\n\ndapclient - Quick Guide\n=======================\ndapclient is a client-only fork of the venerable pydap. It implements the\nOpendap/DODS protocol.  You can use dapclient to access scientific data on the\ninternet without having to download it; instead, you work with special array\nand iterable objects that download data on-the-fly as necessary, saving\nbandwidth and time.\n\nWhy fork pydap?\n---------------\n* Simplify the codebase by remove the server side code\n* Update the code to use modern python 3.8+\n* Up-to-date pypi and conda packages\n\nThis version has no additional features, and it only has a few tests.  My\nimmediate goal is to have pip and conda packages to support my tsgettoolbox\npackage.  I will add tests and features as time (and pull requests!) allow.\n\nQuickstart\n----------\nYou can install the latest version using\n[pip](http://pypi.python.org/pypi/pip) or conda.\n\n    $ pip install dapclient\n\nAlso maintained on the conda-forge channel [conda channel](https://anaconda.org/conda-forge/dapclient)::\n\n    $ conda install -c conda-forge dapclient\n\nThis will install dapclient together with all the required\ndependencies. You can now open any remotely served dataset, and dapclient\nwill download the accessed data on-the-fly as needed::\n\n    >>> from dapclient.client import open_url\n    >>> dataset = open_url('http://test.opendap.org/dap/data/nc/coads_climatology.nc')\n    >>> var = dataset['SST']\n    >>> var.shape\n    (12, 90, 180)\n    >>> var.dtype\n    dtype('>f4')\n    >>> data = var[0,10:14,10:14]  # this will download data from the server\n    >>> data\n    <GridType with array 'SST' and maps 'TIME', 'COADSY', 'COADSX'>\n    >>> print(data.data)\n    [array([[[ -1.26285708e+00,  -9.99999979e+33,  -9.99999979e+33, -9.99999979e+33],\n            [ -7.69166648e-01,  -7.79999971e-01,  -6.75454497e-01, -5.95714271e-01],\n            [  1.28333330e-01,  -5.00000156e-02,  -6.36363626e-02, -1.41666666e-01],\n            [  6.38000011e-01,   8.95384610e-01,   7.21666634e-01, 8.10000002e-01]]], dtype=float32),\n               array([ 366.]),\n               array([-69., -67., -65., -63.]),\n               array([ 41.,  43.,  45.,  47.])]\n\nFor more information, please check the documentation on [using dapclient\nas a client](https://timcera.bitbucket.io/dapclient/client.html).\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A client-only fork of pydap using the DAP protocol to access scientific data on the internet.",
    "version": "1.0.4",
    "project_urls": {
        "bitbucket": "https://bitbucket.org/timcera/dapclient/src/main/",
        "documentation": "https://timcera.bitbucket.io/dapclient/docs/index.html#dapclient-documentation",
        "github": "https://github.com/timcera/dapclient"
    },
    "split_keywords": [
        "time-series",
        " cli-app",
        " aggregate",
        " fill",
        " filter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0dc56c35fa41dd4235b0a89959901f132072a3650573d92ff2bf431dcfe0321b",
                "md5": "c2765156cbbf95a1c086e8d90fd19617",
                "sha256": "3485e57cc3b0be13a876e487c49e0be570a9e7dd73a914c2bcadcdbd03385be4"
            },
            "downloads": -1,
            "filename": "dapclient-1.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c2765156cbbf95a1c086e8d90fd19617",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 53326,
            "upload_time": "2024-03-31T18:31:16",
            "upload_time_iso_8601": "2024-03-31T18:31:16.725219Z",
            "url": "https://files.pythonhosted.org/packages/0d/c5/6c35fa41dd4235b0a89959901f132072a3650573d92ff2bf431dcfe0321b/dapclient-1.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e56c3f8deaddb3e545da11e6a404b7caf4f6b15ded546ddebb425c34ba8589a",
                "md5": "5c4a86c264fd8f73a26c0923e3cad075",
                "sha256": "ba83b8c5339e51bf07ede8d043909de6513d67752853fac4f00b1c4291ba0b31"
            },
            "downloads": -1,
            "filename": "dapclient-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "5c4a86c264fd8f73a26c0923e3cad075",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 2226493,
            "upload_time": "2024-03-31T18:29:02",
            "upload_time_iso_8601": "2024-03-31T18:29:02.970802Z",
            "url": "https://files.pythonhosted.org/packages/5e/56/c3f8deaddb3e545da11e6a404b7caf4f6b15ded546ddebb425c34ba8589a/dapclient-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-31 18:29:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "timcera",
    "github_project": "dapclient",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "dapclient"
}
        
Elapsed time: 0.21979s