Skip to main content

pyextremes

Extreme Value Analysis (EVA) in Python

Test Coverage Docs PyPI Package Python Versions Anaconda Package

About

Documentation: https://georgebv.github.io/pyextremes/

License: MIT

Support: ask a question or create an issue, any input is appreciated and would help develop the project

pyextremes is a Python library aimed at performing univariate Extreme Value Analysis (EVA). It provides tools necessary to perform a wide range of tasks required to perform EVA, such as:

  • extraction of extreme events from time series using methods such as Block Maxima (BM) or Peaks Over Threshold (POT)
  • fitting continuous distributions, such as GEVD, GPD, or user-specified continuous distributions to the extracted extreme events
  • visualization of model inputs, results, and goodness-of-fit statistics
  • estimation of extreme events of given probability or return period (e.g. 100-year event) and of corresponding confidence intervals
  • tools assisting with model selection and tuning, such as selection of block size in BM and threshold in POT

Check out this repository with Jupyter notebooks used to produce figures for this readme and for the official documentation.

Installation

pyextremes supports Python 3.9 to 3.14 and works with pandas 1.x, 2.x, and 3.x.

Get latest version from PyPI:

pip install pyextremes

Or add it to a project managed by uv:

uv add pyextremes

Install with optional dependencies:

pip install "pyextremes[full]"

Get latest experimental build from GitHub:

pip install "pyextremes @ git+https://github.com/georgebv/pyextremes.git"

Get pyextremes for the Anaconda Python distribution:

conda install -c conda-forge pyextremes

Illustrations

Model diagnostic

Diagnostic plot

Extreme value extraction

Diagnostic plot

Trace plot

Diagnostic plot

Corner plot

Diagnostic plot

Acknowledgements

I wanted to thank Max Larson who has inspired me to start this project and who taught me a lot about extreme value theory.

Metadata

Release files for pyextremes 2.6.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 pyextremes 2.6.1
File Size Uploaded Provenance Actions
pyextremes-2.6.1.tar.gz 45.8 kB Without provenance Details for pyextremes-2.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyextremes 2.6.1
File Interpreter ABI Platform Actions
pyextremes-2.6.1-py3-none-any.whl Python 3 none any Details for pyextremes-2.6.1-py3-none-any.whl

Total release size: 105.6 kB

Release files / pyextremes-2.6.1.tar.gz

Download URL pyextremes-2.6.1.tar.gz
Size 45.8 kB
Tags Source
SHA-256 checksum
How to use checksums
491dbbbc4a1721850fc4a82c69a0e63bfff2c6778ed77bed465634afd5d0fff2
BLAKE2b-256 checksum
How to use checksums
b9830f850de5c1c83bfc8deaae1de36cff845167539e8713ebcc672c350a7989
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pyextremes-2.6.1-py3-none-any.whl

Download URL pyextremes-2.6.1-py3-none-any.whl
Size 59.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9763c213b3c544ab84c92ebaaeac9ed6aa2d82aac23aef69d030c8e5768f0288
BLAKE2b-256 checksum
How to use checksums
2edd4f394a42d57b610ae40c50c9831a5a238c15ef4c6f7c3ec3323170446821
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for pyextremes 2.6.1

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.

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