inciweb-wildfires
Download wildfire incidents from InciWeb, the interagency incident information system, as GeoJSON or typed Python records.
An incident on InciWeb is an information page that fire agencies post and update. It can lag behind events or differ from other sources, and its figures, such as size and percent contained, are what an agency reported and they change. InciWeb's own disclaimer says: "Information posted on this website is for information purposes only. For official information, contact the Wildfire Agency in the local area."
Install
uv add inciweb-wildfires
Use it from the command line
inciweb-wildfires incidents > incidents.json
inciweb-wildfires prescribed-fires --timeout 30
incidents gives wildfires and prescribed-fires gives fires lit on purpose. Both take --timeout and --verbose, and --verbose writes to stderr so the JSON stays clean.
Use it from Python
import inciweb_wildfires
data = inciweb_wildfires.get_incidents() # GeoJSON
records = inciweb_wildfires.get_incident_records("Wildfire") # typed records
print(records[0].title, records[0].size, records[0].percent_contained)
Use your own request function
Pass a helper as get to send the web request your own way. It is called like get(url, timeout=seconds) and must return something with a status_code and content as bytes. The Fetcher and Reply types are exported so a type checker can check yours. The timeout and retries still work.
import requests
import inciweb_wildfires
from inciweb_wildfires import Reply
def my_get(url: str, *, timeout: float) -> Reply:
return requests.get(url, timeout=timeout, headers={"User-Agent": "my-project"})
data = inciweb_wildfires.get_incidents(get=my_get)
Working on the code
This repository's scraped data files are saved in its history, so copy only the latest version:
git clone --depth 1 https://github.com/datadesk/inciweb-wildfires.git
make install
make check
The tests run offline against a small saved sample. make check also measures test coverage and fails if it drops under 95 percent, counting branches as well as lines. make test-fast skips the coverage step. make test-live calls the real InciWeb.
Things to know
- Incidents are agency reports. The documentation explains each field and what it does not tell you.
- Downloads retry. A request waits 60 seconds, then tries again on network errors and server errors, and raises
inciweb_wildfires.InciWebErrorif it still fails. - The data comes from InciWeb. This package is not run by InciWeb or the agencies that post to it.
- AI helped write this package. AI tools assisted in writing its code, tests and documentation. A person directed and reviewed the work.
The documentation has the full field reference.
Links
Metadata
Release files for inciweb-wildfires 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| inciweb_wildfires-2.0.0.tar.gz | 86.4 kB | With provenance | Details for inciweb_wildfires-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inciweb_wildfires-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for inciweb_wildfires-2.0.0-py3-none-any.whl |
Total release size: 99.6 kB
Release files / inciweb_wildfires-2.0.0.tar.gz
| Download URL | inciweb_wildfires-2.0.0.tar.gz |
|---|---|
| Size | 86.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d2cf5611eebe6fc6fee6b4f4ee9d5399f95b5d6115536c0d1c69d6fce1d39fd
|
|
BLAKE2b-256 checksum How to use checksums |
8a854a4cbeaa0a46df86e76f9508e1616be60f438b864558ccdf6c531355cde7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / inciweb_wildfires-2.0.0-py3-none-any.whl
| Download URL | inciweb_wildfires-2.0.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfb11284e972edac40318b626e732683d8c2410605cd197399f6d35aa3ef2833
|
|
BLAKE2b-256 checksum How to use checksums |
fe6744cbdae7ec74fa37712426cdb7b5417ce283df4a5e70d17b5f2eb9405ade
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for inciweb-wildfires 2.0.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for inciweb_wildfires-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA 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.