Skip to main content

Module to extract data from SHEF formated files with ability to save output as flat file, dss file, or directly into Corps water management systems (CWMS) database

Project description

Package SHEF Parser

A python based package to parser SHEF files and then loads them into various file formats based on the loader applied. This package can be run as a module in python or through command line

Install

pip install git+https://github.com/HydrologicEngineeringCenter/SHEF_processing.git@master

Command line implementation

#base loader
shefParser -i input_filename -o output_filename

#CWMS cda loader
shefParser -i input_filename --loader cda[$API_ROOT][$API_KEY]

Module implementation

from shef import shef_parser

#base loader
shef_parser.parse(
    input_name=input_filename,
    output_name=output_filename
)

#CWMS CDA loader
shef_parser.parse(
    input_name=input_filename,
    loader_spec=f"cda[{CDA_URL}][{CDA_API_KEY}]",
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shef_parser-1.5.3.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shef_parser-1.5.3-py3-none-any.whl (70.4 kB view details)

Uploaded Python 3

File details

Details for the file shef_parser-1.5.3.tar.gz.

File metadata

  • Download URL: shef_parser-1.5.3.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shef_parser-1.5.3.tar.gz
Algorithm Hash digest
SHA256 a253285612ddc1b129229a1899ad98b56ef1cb78789166c494dcc9fc0f3c0ccb
MD5 dd076fee9f7711d3726c6584eac83a71
BLAKE2b-256 95be61079a66d4133ca8a61ad83d5559d4330db6c52241c7ba7ec7c1d4acd5b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for shef_parser-1.5.3.tar.gz:

Publisher: pypi-deploy.yml on HydrologicEngineeringCenter/SHEF_processing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file shef_parser-1.5.3-py3-none-any.whl.

File metadata

  • Download URL: shef_parser-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 70.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shef_parser-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d9e5b9acf3343bfc763f5aa32075e1a0b888aa3031a56654eb283560a98b27c5
MD5 dacd5407f16538fc09bc00df76d46f0d
BLAKE2b-256 b44386f24c51915319e21d0aeb0895618a78c209a247edaec888113cef8f04db

See more details on using hashes here.

Provenance

The following attestation bundles were made for shef_parser-1.5.3-py3-none-any.whl:

Publisher: pypi-deploy.yml on HydrologicEngineeringCenter/SHEF_processing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page