HIEvPy
HIEvPy is a python 3 wrapper around the API interface of the HIEv, a data capture application used by the Hawkesbury Institute for the Environment at Western Sydney University.
A short overview of the HIEvPy library, including installation instructions, is given below. Full documentation, with examples, can be found on the project's documentation pages.
Pre-requisites
To use HIEvPY you must have an active account (and subsequently a HIEv API token) on the HIEv application. To discuss registration please contact HIE's data manager, Gerry Devine
Installation
HIEvPy can be installed via pip:
$ pip install --index-url https://test.pypi.org/simple/ hievpy
Note: HIEvPy is currently hosted on Test PyPi. This will soon be moved to the official PyPi repository
Once HIEvPy has been installed, you can import it into a python console or script using:
import hievpy as hp
(using the optional as hp as a shortcut)
HIEvPy functions
Generic functions
- search: Return a list of HIEv records matching a set of input search parameters
- search_download: Perform a hievpy search and automatically downloads the matching files
- upload: Upload a file to HIEv with associated metadata
- update_metadata: Update metadata on a list of records returned by hievpy search
TOA5 functions
- toa5_summary: Returns toa5 summary information (variable names, units and measurement types) for a given individual search-returned record.
- search_loaf_toa5df: Performs a hievpy search and loads results into a pandas dataframe given the file records
See the project's documentation pages for a full explanation of all HIEvPy functions
Examples
The examples folder contains a number of example scripts outlining usage of the different HIEvPy functions.
To run any of the example scripts you need to run hievpy.utils.make_credsfile() which creates a file github won't share called credentials.py and populates it with your HIEv API token
import hievpy as hp
hp.utils.make_credsfile()
License
Copyright (c) 2018 Gerry Devine
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.
Metadata
Release files for hievpy 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hievpy-1.2.0.tar.gz | 6.4 kB | Without provenance | Details for hievpy-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hievpy-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for hievpy-1.2.0-py3-none-any.whl |
Total release size: 14.1 kB
Release files / hievpy-1.2.0.tar.gz
| Download URL | hievpy-1.2.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0300dc9157f0906e3412d906f4bb1ecd8e37f437694873379abb334f23fc7ea2
|
|
BLAKE2b-256 checksum How to use checksums |
745c233b485a245eb757948a4edfc3df4a64d9cd48a8021bebb87c1dee57eaaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3
|
Release files / hievpy-1.2.0-py3-none-any.whl
| Download URL | hievpy-1.2.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4df90ff92975614fa389469aafae704c0c5e23ab1063e5d7e94143c0bd6c2ac
|
|
BLAKE2b-256 checksum How to use checksums |
55a1d4ddfad960de814073c106b9814b6a8246ccb443f81d08323e3f5c7eb11b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.4.2 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.3
|
Security for hievpy 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.