Wiscopy
Python wrapper for Wisconet. Currently supporting API v1.
Main Features
- Easy to use interface: simply specify the stations, datetime range, and fields you want
- Data automatically formatted into a pandas DataFrame
- Fetch large amounts of data with transparent concurrency
- Automatically respect Wisconet rate limiting (20 requests / 20 seconds)
Install
From PyPI
base install
To install wiscopy from PyPI run
python -m pip install wiscopy
install with plotting library dependencies
python -m pip install 'wiscopy[plot]'
From conda-forge
To install and add wiscopy to a project from conda-forge with Pixi, from the project directory run
pixi add wiscopy
and to install into a particular conda environment with conda, in the activated environment run
conda install --channel conda-forge wiscopy
Usage
Fetch data from multiple stations, create a Dataframe, and plot.
import hvplot.pandas # needed for df.hvplot()
import holoviews as hv
from datetime import datetime
from wiscopy.interface import Wisconet
hv.extension('bokeh')
hv.plotting.bokeh.element.ElementPlot.active_tools = ["box_zoom"]
w = Wisconet()
df = w.get_data(
station_ids=["maple", "arlington"],
start_time="2025-01-01",
end_time="2025-02-01",
fields=["60min_air_temp_f_avg"]
)
df.hvplot(
y="value",
by="station_id",
title="60min_air_temp_f_avg",
ylabel=df.final_units.iloc[0],
grid=True,
rot=90,
)
More examples
see more examples in notebooks/examples.ipynb, or run
pixi run start
Wisconet
Current stations
Wisconet's list of current stations shows all active station names. You can get also that list of strings in wiscopy with:
from wiscopy.interface import Wisconet
w = Wisconet()
station_names = w.all_station_names()
Wisconet also provides a map of those stations with a dropdown menu including some of the currently available fields/variables. You can determine the fields available per station in wiscopy with:
from wiscopy.interface import Wisconet
w = Wisconet()
station_names = w.all_station_names()
this_station = w.get_station(station_names[0])
fields = this_station.get_field_names()
dev install instructions
1. install pixi
See pixi install guide.
2. check out from repo
git clone git@github.com:UW-Madison-DSI/wiscopy.git
3. install local editable version
cd wiscopy
pixi install
4. run tests
pixi run test
5. auto fix ruff linting issues
pixi run -e dev ruff check --fix .
6. run all pre-push checks
Confirm github workflows will pass before pushing: pixi lock file sync, format, lint, tests
pixi run pre-push
7. build package
pixi run build
8. run package build, install, and test in clean environment:
pixi run -e clean-room test-wheel
Contribute
Pull requests welcome! All pull requests must be formated, linted and pass tests
Metadata
Release files for wiscopy 0.2.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 |
|---|---|---|---|---|
| wiscopy-0.2.0.tar.gz | 81.4 kB | With provenance | Details for wiscopy-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wiscopy-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for wiscopy-0.2.0-py3-none-any.whl |
Total release size: 93.8 kB
Release files / wiscopy-0.2.0.tar.gz
| Download URL | wiscopy-0.2.0.tar.gz |
|---|---|
| Size | 81.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e280a5207344b39285930274b54dbe1c1e6a0d7da1a1a93722e7e011434924f
|
|
BLAKE2b-256 checksum How to use checksums |
b9846134802897cd4ea54ca849cd03cd312f5822aa89ec823e99aba01f920fc8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 15, 2026.
Transparency logRelease files / wiscopy-0.2.0-py3-none-any.whl
| Download URL | wiscopy-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5df0707417512d6f8f927dac7bb626b7c01608231c8ff5821b52b3d77b496293
|
|
BLAKE2b-256 checksum How to use checksums |
1bbe61fbc9f9cc8dfec256c3f47bd1dd784b1b23020a49380a183fe032c2d07f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Apr 15, 2026.
Transparency logSecurity for wiscopy 0.2.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 wiscopy-0.2.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 Apr 15, 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.