connectivity: multi-resolution landscape connectivity in Python
- connectivity: multi-resolution landscape connectivity in Python
The eco-connectivity Python package implements an efficient multi-resolution least-cost algorithm for calculating connectivity-based biodiversity indicators, including Connected Habitat (connectivity-adjusted condition), the Protected Area Connectedness Index (PARC-connectedness), and the Bioclimatic Ecosystem Resilience Index (BERI). It combines habitat condition, least-cost paths and dispersal kernels to estimate how much surrounding habitat is accessible across dispersal scales. The algorithm retains fine spatial resolution near each focal cell and progressively coarsens with distance, enabling analysis of large landscapes. PARC-connectedness incorporates protected-area coverage, while BERI uses current and future climate-related compositional similarity to assess ecosystem resilience under climate change. The package uses rasterio and geopandas for spatial data processing and the connectivity-core Rust engine, shared with the R package connectivity, for numerical computations. See Valavi et al. (2026) for the full method.
Installation
Install from PyPI
The package is published on PyPI as eco-connectivity (NOTE: pip install connectivity installs an unrelated package):
pip install eco-connectivity
The import name is still connectivity:
from connectivity import connectedness, beri
Install from Source
To build the latest development version from the GitHub repository, install Rust first, then run:
git clone https://github.com/csiro/connectivity.git
cd connectivity
pip install ./python
Or install directly from GitHub without cloning:
pip install "git+https://github.com/csiro/connectivity.git#subdirectory=python"
Rust Core Library
The numerical engine is a separate Rust crate, connectivity-core, which works on in-memory arrays without Python, GDAL or file I/O. Rust programs can use it directly; see its README and crate documentation. cargo test --workspace runs every Rust test, and cargo test -p connectivity-core needs no Python.
Connectivity Analysis
Resolve the bundled example paths once so they can be reused throughout the analysis:
from connectivity import beri, connectedness, example_data_path, resolution_info
condition_file = example_data_path("site_condition")
pa_file = example_data_path("pa_proportion")
current_file = example_data_path("transgrids/1990")
future_files = [
example_data_path("transgrids/IPS50_45"),
example_data_path("transgrids/GFD50_85"),
]
To bound the spatial extent of the connectivity calculation, the algorithm limits how far it searches across neighboring cells in the condition raster. The approximate one-sided search reach is computed as:
max_reach = outer_window * max(levels) * resolution. For example, with a 1 km resolution raster, a max-level of 32, and an outer_window of 11, the resulting search reach is:
distance = outer_window × max_level × resolution
= 11 × 32 × 1 km
= 352 km
Use resolution_info() to preview how candidate levels will change raster
dimensions and approximate search reach before running the analysis:
resolution_info(condition_file, outer_window=9)
File: .../connectivity/data/site_condition.tif
Base raster: 588 x 516 cells (303.41K total)
Base resolution: 0.008333 degrees
CRS: EPSG:4326
Bands: 1
Data type(s): float32
Nodata: -9999.0
Outer window: 9
Small-dimension warning threshold: < 16 cells
Distance note: approximate km values use centre latitude -41.550
Candidate internally generated levels:
Level Width Height Cells % base Resolution Reach Reach km Note
1 588 516 303.41K 100.000% 0.008333 degrees 0.075 degrees 8.349 km
2 294 258 75.85K 25.000% 0.01667 degrees 0.15 degrees 16.7 km
4 147 129 18.96K 6.250% 0.03333 degrees 0.3 degrees 33.4 km
8 74 65 4.81K 1.585% 0.06667 degrees 0.6 degrees 66.79 km
16 37 33 1.22K 0.402% 0.1333 degrees 1.2 degrees 133.6 km
32 19 17 323 0.106% 0.2667 degrees 2.4 degrees 267.2 km
64 10 9 90 0.030% 0.5333 degrees 4.8 degrees 534.3 km small grid; review
128 5 5 25 0.008% 1.067 degrees 9.6 degrees 1.07K km small grid; review
256 3 3 9 0.003% 2.133 degrees 19.2 degrees 2.14K km small grid; review
512 2 2 4 0.001% 4.267 degrees 38.4 degrees 4.27K km small grid; review
The default window_mode="circular" uses source-centered circular annuli with
fractional area/count support at annulus boundaries. The
window_mode="square" option uses the same source-centered fractional
construction with square annuli. These modes change indicator values, so
compare outputs only between runs that use the same window mode.
Each coloured neighbourhood represents a different raster aggregation level. Fine levels capture nearby cells at higher resolution, while coarser levels extend the search over larger distances. Their contributions are combined into a single graph, in which the least-cost path from the focal cell is calculated for each aggregated cell. See Valavi et al. (2026) for the full method.
Connected Habitat (Connectedness)
To compute connected-habitat (or plain connectedness), you only need a habitat condition raster. Use option argument to generate the connected-habitat from connectedness and input condition with:
connectednessconnectedness * conditionsqrt(connectedness * condition)— geometric mean (default)
connd = connectedness(
condition_file = condition_file,
lambdas = [2, 20, 200],
max_cost = 2.0,
window_size = 5,
outer_window = 11,
window_mode = "circular",
levels = [2, 4, 8, 16, 32],
nodata_crossing = "strict",
crossing_width = 1.0,
crossing_cost = 4.0,
option = 3,
filename = "./results/connected_habitat.tif"
)
Optional resistance surface
By default the habitat condition raster does double duty: it weights how costly each cell is to
move through and supplies the habitat value used in the indicator. Pass an optional
resistance_file to decouple these two roles. The resistance raster (values in [0, 1],
higher = harder to cross, scaled with resistance_scale) then drives only the least-cost path
traversal, while condition still supplies the habitat value:
connd = connectedness(
condition_file = condition_file,
resistance_file = resistance_file, # optional; decoupled movement-cost surface
resistance_scale = None, # divide resistance into [0, 1] if needed
max_cost = 2.0,
window_mode = "circular",
levels = [2, 4, 8, 16, 32],
)
The edge weight becomes w = (1.0 - max_cost) * (1 - resistance) + max_cost, so resistance = 0
is free (w = 1) and resistance = 1 is the most costly (w = max_cost). When resistance_file
is omitted, condition is used for traversal as before, and the output is unchanged. Cells valid in
condition but missing a resistance value fall back to condition for traversal and raise a warning,
so the analysis domain is never changed silently. The same resistance_file / resistance_scale
arguments are available on beri().
PARC-Connectedness
To compute PARC-connectedness, provide both:
- a habitat condition raster, and
- a protected-areas proportion raster.
When pa_file (proportion of protected-areas in each cell) is supplied, the function automatically returns PARC-connectedness instead of standard connectedness.
parcc = connectedness(
condition_file = condition_file,
pa_file = pa_file,
lambdas = [2, 20, 200],
max_cost = 2.0,
window_size = 5,
outer_window = 11,
window_mode = "circular",
levels = [2, 4, 8, 16, 32],
filename = "./results/parc_connectedness.tif"
)
Use pixel_coverage() when you need the proportion of each raster pixel covered
by polygon geometry. The calculation is backed by a performant Rust
implementation:
from connectivity import pixel_coverage
coverage = pixel_coverage(
"./data/polygons.gpkg",
condition_file,
)
Bioclimatic Ecosystem Resilience Index (BERI)
To compute BERI, you must provide:
- a condition raster
- current GDM transgrids
- one or more future transgrids scenarios (as a list)
beris = beri(
condition_file = condition_file,
current_file = current_file,
future_files = future_files,
lambdas = [2, 20, 200],
max_cost = 2.0,
window_size = 5,
outer_window = 11,
window_mode = "circular",
levels = [2, 4, 8, 16, 32],
nodata_crossing = "strict",
crossing_width = 1.0,
crossing_cost = 4.0,
filename = "./results/berri.tif"
)
NoData gaps: rivers, coasts and islands
NoData cells of the condition raster, such as sea, lakes and rivers, never count
as habitat. The multi-resolution graph aggregates cells into coarser levels, and
nodata_crossing sets whether and where paths may cross NoData:
"strict"(the default since 3.0): NoData gaps at mostcrossing_widthkilometres wide (default 1) may be crossed, atcrossing_cost(default 4), and no wider gap is crossed at any level, including rivers and inlets inside one landmass. Routes around a barrier within the search window are kept."landmass": separate landmasses are linked only across such gaps; within one landmass coarse levels still link land across wider water.None: the legacy handling of versions 2.x. The finest level does not cross NoData, but coarse levels link land on both sides of gaps narrower than about twice their cell size, at no cost, and only from some cells, which can leave steps on islands, coastlines and irregular boundaries.
crossing_width is a hard limit: wider gaps are never crossed.
crossing_cost penalises the crossings it permits, as a movement cost per unit
distance relative to intact land: 1 costs as much as intact land, 4 four times
as much. It is independent of condition, resistance and max_cost, and neither
setting depends on lambdas. Crossed NoData only carries movement: it adds no
habitat area, protected area or climate. The defaults are pragmatic,
literature-informed choices, not universally calibrated ecological parameters;
appropriate values depend on the species, spatial resolution, timescale and
assessment objectives, including longer-term climate-related assessments such
as BERI. When NoData marks areas that should not be traversed, set
crossing_width = 0: it crosses no gap but keeps strict routing, which is not
the same as nodata_crossing = None.
# A sensitivity scenario: cross gaps up to 2 km wide at twice the cost of intact land
connd_2km = connectedness(
condition_file = condition_file,
nodata_crossing = "strict",
crossing_width = 2.0,
crossing_cost = 2.0,
)
# Reproduce results of version 2.x
connd_legacy = connectedness(condition_file = condition_file, nodata_crossing = None)
The default changes results wherever NoData lies near land, an intentional change of method in 3.0. On the bundled Tasmania raster (cells about 0.69 x 0.93 km), it changes almost every cell of plain connectedness from 2.x (by 0.008 on average, up to 0.71); 17% of cells change by more than 0.01, and 89% of those lie within 8 cells of NoData or the raster edge.
Condition time series
Use band to select one band of a multi-band condition raster, such as one
year of a time series stored as a multi-band GeoTIFF. Bands are numbered from
1, as in GDAL, rasterio and terra. band applies to the condition raster only:
pa_file and resistance_file must have one band, which is used with every
band of the condition raster, so a layer of a multi-band protected-area or
resistance raster has to be written to its own file first. The climate rasters
of beri() keep all their bands, which are environmental variables. Without
band, a multi-band condition raster raises an error.
import rasterio
series_file = "./data/condition_2001_2020.tif" # one band per year
with rasterio.open(series_file) as src:
n_years = src.count
for band, year in enumerate(range(2001, 2001 + n_years), start=1):
connectedness(
condition_file = series_file,
band = band,
pa_file = pa_file, # one band: the same protected areas every year
filename = f"./results/parc_{year}.tif",
)
Run logs
When filename is given, connectedness() and beri() also write a run log
beside the output: result.tif gets result.toml, a small text file of the
indicator, settings, input paths and output of the run. The R package and
Eco-Connectivity Studio write the same format, and dropping a log on Studio's
window restores its settings. Version 3.0 writes format 2, which always records
the NoData crossing (nodata_crossing = "none" for the legacy handling); a log
of format 1 without one describes a legacy run. Pass save_log=False to skip the log for one
call, or set the environment variable CONNECTIVITY_SAVE_LOG=0 (or false,
no, off) for a whole session or batch job, which turns off the R package's
logs too. An existing run log is replaced, but another file of that name is
kept, with a warning.
Running Analysis with Tiles
To run the model using tiles, create a rectangular tile polygon as a GeoDataFrame
and pass it to the polygon_mask argument. This limits data loading to only the
portion required for the tile, i.e. the output core plus the internally buffered
neighborhood.
Use make_tile() to generate non-overlapping output-core tiles whose internal
boundaries align with the coarsest aggregation level. This is preferred over
creating overlap-expanded tile polygons externally. Be sure to set
closed_border = False (the default) so that neighborhood information is
included around each tile core.
from connectivity import connectedness, make_tile
levels = [2, 4, 8, 16, 32]
tile_id = 0
tile_poly = make_tile(
raster_file = condition_file,
nrows = 4,
ncols = 4,
tile_id = tile_id,
align_to = max(levels),
)
connd = connectedness(
condition_file = condition_file,
polygon_mask = tile_poly,
closed_border = False,
lambdas = [2, 20, 200],
max_cost = 2.0,
window_size = 5,
outer_window = 11,
window_mode = "circular",
levels = levels,
option = 1,
filename = f"./results/connected_habitat_tile_{tile_id}.tif"
)
For large, uneven workloads, use balanced tiles:
tile_poly = make_tile(
raster_file = condition_file,
nrows = 4,
ncols = 4,
tile_id = tile_id,
align_to = max(levels),
balanced = True,
io_weight = 0.1,
)
Balanced tiling uses a deterministic raster-mask cost estimate while preserving
the same align_to boundary alignment. It is useful for global rasters where
some tiles contain mostly ocean or nodata and others contain many valid land
pixels. Use balanced = False (the default) when equal aligned tiles are enough.
When balanced = False, io_weight is ignored.
Citation and scientific references
To cite the connectivity library in publications and reports, please use:
Valavi, R., Mokany, K., Ware, C., Vickers, M., Giljohann, K. M., & Ferrier, S. (2026). A scalable multi-resolution framework for connectivity-based biodiversity indicators. EcoEvoRxiv, preprint. doi:10.32942/X2S68V.
Underlying methods:
- Drielsma, M., Ferrier, S., & Manion, G. (2007). A raster-based technique for analysing habitat configuration: The cost–benefit approach. Ecological Modelling, 202(3–4), 324–332. doi:10.1016/j.ecolmodel.2006.10.016.
- Drielsma, M. J., Love, J., Taylor, S., Thapa, R., & Williams, K. J. (2022). General Landscape Connectivity Model (GLCM): a new way to map whole of landscape biodiversity functional connectivity for operational planning and reporting. Ecological Modelling, 465, 109858. doi:10.1016/j.ecolmodel.2021.109858.
- Harwood, T., Love, J., Drielsma, M., Brandon, C., & Ferrier, S. (2022). Staying connected: assessing the capacity of landscapes to retain biodiversity in a changing climate. Landscape Ecology, 37, 3123–3139. doi:10.1007/s10980-022-01534-5.
- Ferrier, S., Harwood, T. D., Ware, C., & Hoskins, A. J. (2020). A globally applicable indicator of the capacity of terrestrial ecosystems to retain biological diversity under climate change: The bioclimatic ecosystem resilience index. Ecological Indicators, 117, 106554. doi:10.1016/j.ecolind.2020.106554.
Acknowledgements and licence
Developed at the Commonwealth Scientific and Industrial Research Organisation
(CSIRO). Copyright © 2026 CSIRO. The code is distributed under the
MIT licence.
The Python binding uses PyO3/maturin for its interface and rasterio,
geopandas and shapely for its spatial workflows.
The bundled Tasmania data are licensed separately under CC BY-NC-SA 4.0. Please cite:
Ware, C., Valavi, R., Vickers, M., Giljohann, K. M., Mokany, K., Purvis, A., Walkden, P., De Palma, A., Duffin, C., Contu, S., Harwood, T., Hoskins, A., & Ferrier, S. (2026). Global biodiversity indicator data for BHI, BERI, PARC-representativeness, PARC-connectedness and ecosystem condition (2000–2024). Version 4. CSIRO Data Collection. doi:10.25919/3aka-y730.
See the example-data README
for layer metadata and attribution, also installed with the package as
connectivity/data/README.md.
Migrating from 2.x to 3.0
Version 3.0 settles the API; see NEWS.md for every change.
-
Keyword arguments. Every argument after
condition_fileis keyword-only, andberi()requirescurrent_file. A positional call of 2.x raisesTypeErrorinstead of binding to another argument.# 2.x connectedness("condition.tif", "pa.tif", True) beri("condition.tif", "current.tif", ["future.tif"]) # 3.0 connectedness("condition.tif", pa_file="pa.tif", pa_to_pa=True) beri("condition.tif", current_file="current.tif", future_files=["future.tif"])
-
NoData crossing. The default is now strict crossing of gaps up to 1 km at a cost of 4, a change of method that changes results near NoData. Pass
nodata_crossing=Noneto reproduce 2.x results.connectedness("condition.tif", nodata_crossing=None) # as 2.x connectedness("condition.tif", crossing_width=2.0, crossing_cost=2.0) # a scenario
-
Bands.
bandselects a band ofcondition_fileonly. A multi-bandpa_fileorresistance_fileraisesValueError; write the layer you need to a single-band raster first, for example withgdal_translate -b 3 pa_series.tif pa_2003.tif. -
Removed margins.
margin_px(connectedness(),beri()) andvalid_margin_px(read_raster()), deprecated in 2.5, are removed: drop them.read_raster()marks only the cells a polygon touches as valid, and itsbandargument is keyword-only. -
Argument order. The documented order runs from inputs (
band,scale, protected areas or climate, resistance) through the method (lambdas,max_cost,levels, windows), the area of interest (polygon_mask,closed_border) and NoData crossing to execution and output (n_threads,filename,save_log). -
Run logs are written in format 2.
Metadata
Release files for eco-connectivity 3.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 |
|---|---|---|---|---|
| eco_connectivity-3.0.0.tar.gz | 33.7 MB | With provenance | Details for eco_connectivity-3.0.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| eco_connectivity-3.0.0-cp310-abi3-win_amd64.whl | CPython 3.10 | abi3 | Windows x86-64 | Details for eco_connectivity-3.0.0-cp310-abi3-win_amd64.whl |
| eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_x86_64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ x86-64 | Details for eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_x86_64.whl |
| eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_aarch64.whl | CPython 3.10 | abi3 | Linux glibc 2.28+ ARM64 | Details for eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_aarch64.whl |
| eco_connectivity-3.0.0-cp310-abi3-macosx_10_12_universal2.whl | CPython 3.10 | abi3 | macOS 10.12+ universal2 (ARM64, x86-64) | Details for eco_connectivity-3.0.0-cp310-abi3-macosx_10_12_universal2.whl |
Total release size: 166.8 MB
Release files / eco_connectivity-3.0.0.tar.gz
| Download URL | eco_connectivity-3.0.0.tar.gz |
|---|---|
| Size | 33.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e9edc2b72775d90c7b5b1f874aec5e375bbb1fe183f3988cec219ecc58a7b470
|
|
BLAKE2b-256 checksum How to use checksums |
c52d022c168f472e2d02f8b1fdb8b36188d7a96f73e224a1088f6b7c7a58dea8
|
| 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 20, 2026.
Transparency logRelease files / eco_connectivity-3.0.0-cp310-abi3-win_amd64.whl
| Download URL | eco_connectivity-3.0.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 32.9 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
3afcaa71dd725c4f1bfc5f3cb76c5fc9f581b10a410a99e3b30cfa6ea3d9e0f2
|
|
BLAKE2b-256 checksum How to use checksums |
93c7a3cd2957915ea7ca6f8212107079581647b251fb0c1892b54f51664993ea
|
| 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 20, 2026.
Transparency logRelease files / eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 33.4 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d22ac630a22370ce6d47c263629b12598acb30c17a558b5a7b9d234d4c237f6d
|
|
BLAKE2b-256 checksum How to use checksums |
5c2383158e0d0196e147319ae1fe315d7eff55d242fc0e248770b9325799f83e
|
| 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 20, 2026.
Transparency logRelease files / eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | eco_connectivity-3.0.0-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 33.3 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
7462ed6ea1cb98caa52fa21a8cf7214d5649e39ebfdf7a5eef3e73eb100487b5
|
|
BLAKE2b-256 checksum How to use checksums |
fb44a14ec7c96ec7d6585fb6a306c85287285fae93baa8ff9213730aaf04cf53
|
| 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 20, 2026.
Transparency logRelease files / eco_connectivity-3.0.0-cp310-abi3-macosx_10_12_universal2.whl
| Download URL | eco_connectivity-3.0.0-cp310-abi3-macosx_10_12_universal2.whl |
|---|---|
| Size | 33.4 MB |
| Tags | CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
06fbfa7dcf1e24dcc25d00197ae741769e2f206e6dfe3e1baf490ed0a1d2e022
|
|
BLAKE2b-256 checksum How to use checksums |
feec5d299d324d1eb6a68832ff211002ef7fbeb448f855e0a7f2c3b13a7ce4c3
|
| 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 20, 2026.
Transparency logSecurity for eco-connectivity 3.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
All 5 files in this release have been uploaded with provenance metadata.
Attestation for eco_connectivity-3.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 20, 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.