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.28.1

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.28.1
File Size Uploaded
pyiem-1.28.1.tar.gz 40.0 MB Details

Release files / pyiem-1.28.1.tar.gz

Download URL pyiem-1.28.1.tar.gz
Size 40.0 MB
Tags Source
SHA-256 checksum
How to use checksums
4f3407a37355e4a08a8896e52cf50dc8b2bd3e4358bf98b68db6513714fc51e1
BLAKE2b-256 checksum
How to use checksums
4f7c716ab960f1e95b0805b8285815b98697c3e9722455795e38ea62b1af39e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

1.28.1 This release

1 release file

1.28.0

1 release file

1.27.0

1 release file

1.26.0

1 release file

1.25.0

1 release file

1.24.0

1 release file

1.23.0

1 release file

1.22.1

1 release file

1.22.0

1 release file

1.21.0

1 release file

1.20.0

1 release file

1.19.0

1 release file

1.18.0

1 release file

1.17.0

1 release file

1.16.0

1 release file

1.15.0

1 release file

1.14.0

1 release file

1.13.0

1 release file

1.12.0

1 release file

1.11.0

1 release file

1.10.0

1 release file

1.9.0

1 release file

1.8.0

1 release file

1.7.0

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.18.0

1 release file

0.17.0

1 release file

0.16.0

1 release file

0.15.0

1 release file

0.14.0

1 release file

0.13.0

1 release file

0.12.0

1 release file

0.11.0

1 release file

0.10.0

1 release file

0.9.1

1 release file

0.8.0

1 release file

0.7.0

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.1

1 release file

0.5.0

1 release file

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