Metadata-Version: 2.4
Name: tsgettoolbox_hydstra
Version: 27.0.0
Summary: Plugin for tsgettoolbox to retrieve time series data from Hydstra web services.
Author-email: Tim Cera <tim@cerazone.net>
License-Expression: BSD-3-Clause
Project-URL: bitbucket, https://bitbucket.org/timcera/tsgettoolbox_hydstra/src/main/
Project-URL: documentation, https://timcera.bitbucket.io/tsgettoolbox/docs/index.html#tsgettoolbox-documentation
Project-URL: github, https://github.com/timcera/tsgettoolbox_hydstra
Keywords: rest,time-series,uri,url,web_services
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Science/Research
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE.txt
Requires-Dist: pandas
Requires-Dist: requests
Requires-Dist: tsgettoolbox>=27.0.0
Dynamic: license-file

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

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

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

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

tsgettoolbox_hydstra - Quick Guide
==================================
The 'tsgettoolbox_hydstra' is a plugin-in for 'tsgettoolbox' that supplies
a command line interface and Python library to get time-series data from the
Hydstra database.  The tsgettoolbox_hydstra is a plugin-in for the tsgettoolbox
package. The tsgettoolbox_hydstra will work with Python 3.10+.

Documentation
-------------
Reference documentation is at `tsgettoolbox HYDSTRA API`_.

Installation
------------
At the command line::

    $ pip install tsgettoolbox_hydstra

    OR

    $ conda install -c conda-forge tsgettoolbox_hydstra

Usage Summary - Command Line
----------------------------
Just run 'tsgettoolbox --help' to get a list of subcommands.  To get detailed
help for a particular sub-command, for instance 'hydstra', type 'tsgettoolbox
hydstra --help'.

+------------------+---------+--------+---------+----------+-----------------------+
| Sub-command      | Spatial | Time   | Type    | Time     | Description           |
|                  | Extent  | Extent |         | Interval |                       |
+==================+=========+========+=========+==========+=======================+
| hydstra_ts       | varies  | varies | station | E,H,D,M  | Kisters Hydstra       |
|                  |         |        |         |          | Webservice - time     |
|                  |         |        |         |          | series values         |
+------------------+---------+--------+---------+----------+-----------------------+
| hydstra_catalog  | varies  | varies | station | -NA-     | Kisters Hydstra       |
|                  |         |        |         |          | Webservice - variable |
|                  |         |        |         |          | catalog               |
+------------------+---------+--------+---------+----------+-----------------------+
| hydstra_stations | varies  | varies | station | -NA-     | Kisters Hydstra       |
|                  |         |        |         |          | Webservice - station  |
|                  |         |        |         |          | list                  |
+------------------+---------+--------+---------+----------+-----------------------+

+-------------------+-------------+
| Time Interval     | Description |
| Code              |             |
+===================+=============+
| E                 | Event       |
+-------------------+-------------+
| H                 | Hourly      |
+-------------------+-------------+
| D                 | Daily       |
+-------------------+-------------+
| M                 | Monthly     |
+-------------------+-------------+

Usage Summary - Python Library
------------------------------
To use the tsgettoolbox in a project::

    from tsgettoolbox import tsgettoolbox
    df = tsgettoolbox.cdec("PRA", start_date="2000-01-01", end_date="2000-02-01")
    print(df.head())

Refer to the API Documentation at `tsgettoolbox HYDSTRA API`_.

Usage Summary - Command Line
----------------------------

    tsgettoolbox cdec --start_date 2000-01-01 --end_date 2000-02-01 "PRA" > output.csv

Refer to the command line documentation at `tsgettoolbox HYDSTRA CLI`_.

Development
~~~~~~~~~~~
Development is managed on bitbucket or github.
https://bitbucket.org/timcera/tsgettoolbox_hydstra/overview.
https://github.com/timcera/tsgettoolbox_hydstra

.. _tsgettoolbox_documentation: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/index.html
.. _tsgettoolbox HYDSTRA API: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/_function_autosummary/tsgettoolbox.hydstra_ts.html
.. _tsgettoolbox HYDSTRA CLI: https://timcera.bitbucket.io/linked_pkg_dirs/tsgettoolbox/docs/command_line.html#hydstra-ts
