Skip to main content

pyIEM

A collection of python code that support various other python projects I have and the Iowa Environmental Mesonet. A goal here is to upstream anything useful into Unidata's MetPy and also remove any redundant code.

CodeCov Documentation

Current release info

Name Downloads Version Platforms
Conda Recipe Conda Downloads Conda Version Conda Platforms

Dependencies

Python 3.11+ is required. Python releases 3.11 through 3.14 are actively tested and supported within this repository.

The codebase currently makes direct database calls with hardcoded assumptions of the hostname iemdb.local and database names. Someday, I'll use a proper ORM and software design techniques to make this more extensible for others!

Installation

Since this library depends on Cartopy, you likely do not want to let pip install Cartopy. So the installation options are either:

  1. Install Cartopy via some other mechanism than pip.
  2. Install pyiem via pip.

Or:

  1. Install pyiem via conda using the conda-forge channel.

How to use NWS product ingestors

This library provides a number of parsers for various NWS products. The implementation of these parsers can be found with my pyWWA project. The main limitation is that the pyWWA parsers use Twisted Python and thus have a somewhat steep learning curve. The pyIEM parsers do not require the usage of Twisted though, so how does one use them?

The general entry point for a text product is the parser method of pyiem.nws.products. So given a NWS text file, the code would look like.

from pyiem.nws.products import parser

text = open("MYFILE.txt").read()
prod = parser(text)
print(prod.get_product_id())

The actual methods and attributes on the prod object above will vary depending on the type of product involved.

Metadata

Release files for pyiem 1.29.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyiem 1.29.0
File Size Uploaded Provenance Actions
pyiem-1.29.0.tar.gz 40.0 MB Without provenance Details for pyiem-1.29.0.tar.gz

Release files / pyiem-1.29.0.tar.gz

Download URL pyiem-1.29.0.tar.gz
Size 40.0 MB
Tags Source
SHA-256 checksum
How to use checksums
341c55d7e433fcf864cfbf4eb6ab71fba1316dac3da60f13f29ed74936fc4d56
BLAKE2b-256 checksum
How to use checksums
3c9e1fb45826ffb0bbb0b531b4cf6f58758bc799084ab9c2b70ebb16a2622e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for pyiem 1.29.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.

Release history Release notifications | RSS feed

This release

1.29.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page