Functions to extract data from Hydstra
Project description
pyhydllp is a package that contains many Python functions for extracting data from Hydstra.
Installation
Install via pip:
pip install pyhydllp
Or conda:
conda install -c mullenkamp pyhydllp
Requirements
At a minimum to access the base functions, pyhydllp requires a 32bit python installation and the Pandas package.
To access the MSSQL functionality, the pdsql package is required:
conda install -c mullenkamp pdsql
Usage
Most functions can be accessed and initialized from the hyd class:
from pyhydllp import hyd
ini_path = r'\\fileservices02\ManagedShares\Data\Hydstra\prod\hyd'
dll_path = r'\\fileservices02\ManagedShares\Data\Hydstra\prod\hyd\sys\run'
username = ''
password = ''
hydllp_filename = 'hydllp.dll'
hyaccess_filename = 'Hyaccess.ini'
hyconfig_filename = 'HYCONFIG.INI'
hyd1 = hyd(ini_path, dll_path, hydllp_filename=hydllp_filename,
hyaccess_filename=hyaccess_filename, hyconfig_filename=hyconfig_filename,
username=username, password=password)
Then all of the functions can be accessed via the newly initiated hyd1 object. The following example won’t work outside of ECan:
sites = [70105, 69607]
varto = 100
from_mod_date = '2018-01-01'
to_mod_date = '2018-03-26'
ch1 = hyd1.ts_data_changes(varto=[varto], sites=sites, from_mod_date=from_mod_date,
to_mod_date=to_mod_date)
print(ch1)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyhydllp-1.0.2.tar.gz
(19.2 kB
view details)
File details
Details for the file pyhydllp-1.0.2.tar.gz
.
File metadata
- Download URL: pyhydllp-1.0.2.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a186c0bdafa225a79b164a54b147236657651d4a18377c0bd846d64f83340ea |
|
MD5 | cc3b4624f89768882a4c9c4ac8e7b93b |
|
BLAKE2b-256 | 16111b5b76fb7cea059e4eaffc82bfd42e29fcebcbbbe2f5900b6b9d7a6cc784 |