pypedigree
Generate publication-quality pedigree (family tree) diagrams from standard pedigree files used in genetics research.
No installation needed: the web app draws a pedigree file in your browser. Your data stay on your computer.
Features
- Standard pedigree symbols: squares (male), circles (female), diamonds (unknown sex), with affected/unaffected fill
- Parents without children: a family holding only the two parents (no child in the file) is drawn as their couple, father on the left, with a descent line to a "?".
- Multi-phenotype rendering: the symbol cut in four quadrants, one per phenotype (the default, up to four phenotypes), or horizontal color bands (
--phenotype-layout bands, and automatically beyond four phenotypes) (binary: 0=unknown/grey, -9=no data/grey with "NA"; continuous: gradient). Autism, intellectual disability, ADHD and epilepsy columns get conventional colors (blue, red, yellow, purple) and quadrants (top left, bottom left, top right, bottom right). The legend always matches the bands it describes; it is sized from the font, so it reads the same under a 4-person pedigree as under a 45-person one. - PGS (Polygenic Score) curves: gaussian distribution with individual score marker, drawn alongside each node. Supports multiple PGS columns (e.g.
PGS_autism,PGS_IQ) with colored markers on a single curve. Scores are placed between the pedigree's lowest and highest by default, or on a fixed scale with--pgs-scale zscore/percentile(±2 SD marked, z and percentile in the SVG tooltip). - Hooks for host pages: a
css_classcolumn anddata_columns (or the builder'scss_class=anddata=) add classes anddata-*attributes to each individual's node in the interactive SVG, so a page can style or select individuals without re-rendering. - Individuals never sampled: a
not_sampledcolumn (or the builder'sinferred=True) draws "dummy" individuals that only link real members with a dashed outline, keeping their label, parents and phenotypes. - Annotations: columns with
a_prefix in .ped header display italic grey text below individual ID labels. Also loadable from external file via--annotations. - Twins support: monozygotic, dizygotic, and unknown zygosity with correct connectors
- Extended metadata: deceased markers, proband arrows, date of birth labels
- Standard notation (NSGC 2008/2022): pregnancies ("P"), miscarriages, ectopic pregnancies and terminations (triangles), stillbirths, adoption (brackets, dashed line to adoptive parents), no children by choice and infertility, gamete donors ("D") and surrogates ("S"), gender identity (the symbol follows gender, AMAB/AFAB written below), consultand (arrow without "P"). One column each; see Standard notation columns
- Carrier notation (NSGC 2022): the symbol is divided into patterned sections, one per carrier result, so an affected carrier or a carrier of several conditions shows every result;
cr_columns give one carrier status per gene or condition. The pre-2022 half-fill / center-dot notation stays available (carrier_notation: "legacy") - Interactive SVG: the same figure as the PNG (phenotype bands, legend, PGS curves, annotations, carrier notation) plus tooltips, click-to-highlight relatives and zoom/pan for browser viewing
- Multiple output formats: PNG, SVG, PDF, interactive SVG
- Customizable styling: JSON-based style overrides for colors, sizes, fonts
- Separate phenotype files: load phenotypes from
.phenoTSV files - Optional legend: auto-generated phenotype legend with proper male/female symbols
- Programmatic API: fluent
PedigreeBuilderfor constructing pedigrees from code - Circular/radial layout: founders at center, descendants on concentric rings (
--circularflag), in the order of the hierarchical layout, so sibships never interleave; ring radius auto-expands so nodes never overlap; upright shapes, labels set outside them, radially or turned aside where a line or another label would cross them, twin connectors and duplicate arcs as in the default layout - Large pedigree support: each couple's children hang from their own stretch of sibship line, so sibships never merge, at 10 or 500 individuals; loops (consanguinity, marriages between branches) are ordered so the partners meet side by side, and drawn with a duplicate individual only where they would still tangle lines
- Auto-scaling figures: figure dimensions grow with pedigree size
- Jupyter integration: inline display via
_repr_png_ - Web app: the package runs in the browser through Pyodide (web/, bourgeron-lab.github.io/pypedigree): paste, drop or open a file, choose bands or quadrants, and download an interactive SVG, an SVG for print or a PNG. Nothing is uploaded
- PLINK interoperability: native
.famparsing,.famexport, PLINK.pedsupport (genotype columns ignored)
Web app
The page in web/ runs pypedigree in the browser with Pyodide: the file is read and drawn locally, never uploaded. It draws the interactive SVG, with every option of a style file, and makes the PNG from the SVG in the browser. The circular layout, PDF output and separate phenotype or annotation files need the Python package.
It is published on GitHub Pages by .github/workflows/pages.yml for each release tag (or by hand from the Actions tab), with the wheel of that release, the synthetic examples of tests/data and the HTML documentation. To try a change locally:
uv run python web/build.py # builds the wheel of this checkout, then web/_site
python3 -m http.server -d web/_site 8000
Installation
pip install pypedigree
Or with uv:
uv add pypedigree
With optional pandas support:
pip install pypedigree[pandas]
import pypedigree does not import matplotlib: it is loaded on the first
PNG/PDF render. Parsing, layout and SVG output (render_interactive_svg, render_svg,
--interactive) never load it, so a web server using them avoids its import
time and pyplot's global state.
Quick Start
Command Line
# Basic PNG output
pypedigree family.ped -o family.png
# SVG for publications
pypedigree family.ped -o family.svg
# With multi-phenotype colors from a style file
pypedigree family.ped --style style.json -o family.png
# With external phenotype data
pypedigree family.ped --pheno phenotypes.tsv --style style.json -o family.png
# With external annotations
pypedigree family.ped --annotations annotations.tsv -o family.png
# Render only one family from a multi-family file
pypedigree multi_family.ped --family FAM1 -o fam1.png
# High resolution, no legend
pypedigree family.ped --dpi 300 --no-legend -o family.png
# Interactive display
pypedigree family.ped --show
# Interactive SVG with tooltips and click highlighting
pypedigree family.ped --interactive -o family.svg
# The same SVG for a web page or a printed report: no script, unique ids, fluid width
pypedigree family.ped --interactive --no-script --id-prefix fam1- --responsive -o family.svg
# Horizontal bands instead of quadrants (the default up to four phenotypes)
pypedigree family.ped --phenotype-layout bands -o family.png
# Circular/radial layout
pypedigree family.ped --circular -o family_radial.png
--interactivedraws the same figure as the PNG/PDF output — phenotype bands, outline colors, PGS curves,a_annotations, carrier notation and the legend (--no-legendhides it) — and adds a tooltip per individual listing every phenotype value. Several families are drawn side by side. Only the circular layout (--circular) is not available in interactive mode.The SVG can be inlined in a page next to other SVGs: its root has the class
pypedigree, its CSS only applies under it and its script only acts on its own figure.--id-prefix(id_prefix=) makes its ids unique on the page,--responsive(responsive=True) makes it fill its container's width, and--no-script(render_svg()) drops the script and tooltip for print or for a page that adds its own behaviour. Inlined in a page, Ctrl + wheel zooms and the plain wheel scrolls the page.
Python API
render_pedigree() produces the same figure as the CLI, including
auto-assigned phenotype colors and the legend — no extra setup needed.
from pypedigree import parse_pedigree, render_pedigree, PedigreeStyle
# Parse and render
pedigree = parse_pedigree("family.ped")
fig = render_pedigree(pedigree, output="family.png")
# Custom style
style = PedigreeStyle(dpi=300, fill_color="red")
fig = render_pedigree(pedigree, style=style, output="custom.png")
# Circular layout
fig = render_pedigree(pedigree, circular=True, output="radial.png")
# With phenotype colors
style = PedigreeStyle()
style.phenotype_colors = {"epilepsy": "#e74c3c", "IQ": "#3498db"}
fig = render_pedigree(pedigree, style=style, output="pheno.png")
Programmatic Builder
from pypedigree import PedigreeBuilder
builder = PedigreeBuilder("FAM1")
builder.add_individual("father", sex="male", carrier=True)
builder.add_individual("mother", sex="female")
builder.add_individual("child", sex="male", father="father", mother="mother",
phenotype="affected", phenotypes={"IQ": 85, "epilepsy": 1})
builder.add_individual("sibling", father="father", mother="mother",
pregnancy="SAB", annotations=["8 wk"])
builder.add_individual("twin_a", father="father", mother="mother")
builder.add_individual("twin_b", father="father", mother="mother",
twin_of="twin_a", twin_type="MZ") # or builder.add_twins([...], "MZ")
fig = builder.render(output="family.png")
# Interactive SVG output
svg = builder.render_interactive_svg(output="family.svg")
# Static SVG for a page or a report: no script, prefixed ids, fluid width
svg = builder.render_svg(id_prefix="fam1-", responsive=True)
PLINK Integration
from pypedigree import parse_fam_file, parse_plink_ped, export_fam, render_pedigree
# Read PLINK .fam file
pedigree = parse_fam_file("family.fam")
render_pedigree(pedigree, output="family.png")
# Read PLINK .ped (genotype columns are ignored)
pedigree = parse_plink_ped("family.ped")
# Export to .fam for use with PLINK/KING/etc.
export_fam(pedigree, "output.fam")
# CLI: .fam files are auto-detected
pypedigree family.fam -o family.png
# Force PLINK mode for .ped files with genotype data
pypedigree family.ped --plink -o family.png
Pandas Integration
import pandas as pd
from pypedigree import parse_pedigree_from_dataframe, render_pedigree
df = pd.read_csv("family.ped", sep="\t")
pedigree = parse_pedigree_from_dataframe(df)
render_pedigree(pedigree, output="family.png")
File Formats
Pedigree File (.ped)
Tab, comma, or space-separated with 6+ columns, in UTF-8 (a byte order mark is ignored):
| Column | Name | Description |
|---|---|---|
| 1 | family_id | Family identifier |
| 2 | sample_id | Individual identifier |
| 3 | paternal_id | Father's sample_id (0 = unknown) |
| 4 | maternal_id | Mother's sample_id (0 = unknown) |
| 5 | sex | 1=male, 2=female, 0=unknown |
| 6 | phenotype | 1=unaffected, 2=affected, 0=unknown |
| 7 | date_of_birth | YYYYMMDD / YYYYMM / YYYY (optional) |
| 8 | twins | TYPE:sample_id entries (optional) |
| 9 | deceased | 1=deceased, 0=alive (optional) |
| 10 | proband | 1=proband, 0=not (optional) |
A parent named in the father or mother column but with no row of their own is drawn as a phantom: dashed outline, labelled with that ID, sex from the role, and a PedigreeDataWarning says so. A child with only one parent given gets an unlabelled phantom for the other. Either way the child hangs from both parents, as with PedigreeBuilder; a .fam export leaves phantoms out.
| 11+ | phenotypes | Extra phenotype columns (requires header) |
| 11+ | carrier | Special column: 0=not, 1=carrier, 2=obligate carrier (detected by header name) |
| 11+ | cr_GENE | One carrier column per gene or condition, same 0/1/2 coding (e.g. cr_CFTR) |
Column name prefixes control how phenotype columns are rendered: b_ (binary), g_ (gradient), gi_ (gradient inverted: color-to-white, for metrics where low = bad), o_ (outline), c_ (categorical), cr_ (carrier status: 0=not, 1=carrier, 2=obligate carrier). Columns with a_ prefix are annotation columns (text displayed below the individual's ID label, not phenotypes). A css_class column (classes separated by spaces or commas) and data_ columns (data_qc → data-qc, _ becoming -) do not draw anything: they add classes and data-* attributes to the individual's node in the interactive SVG, for the host page's stylesheet and scripts (.node.flagged, [data-qc="high"]). Empty, . or NA leave them out; 0 and -9 are kept as values. Class names must be CSS identifiers, and node and dimmed are used by the SVG itself; data-id, data-parents, data-children, data-siblings, data-x, data-y and data-size are written by pypedigree. Any other name raises PedigreeParseError with the line.
A column with no prefix is auto-detected once per column, from all of its values: any string value makes it categorical, any numeric value outside 0/1/2 makes it a gradient, otherwise it is binary.
Smart header mapping: When a header row is present, columns are matched by name (not position). Any unrecognised column name after the core 5 (FID, ID, Father, Mother, Sex) is treated as a phenotype column. This means you can write compact files without the DOB/twins/deceased/proband columns:
FID ID Father Mother Sex ASD Dyslexia
FAM1 child father mother 2 1 2
FAM1 father 0 0 1 2 1
Full 10-column format with extras:
FID IID PAT MAT SEX PHENO DOB TWINS DECEASED PROBAND epilepsy IQ SRS PGS
mockup 1 0 0 1 2 0 0 0 0 1 105 62 0.72
mockup 2 0 0 2 1 0 0 0 0 0 118 45 0.35
Standard notation columns
Each of these columns is recognised by name in a header row (case-insensitive;
aliases in brackets). Codes are case-insensitive, and 0, -9, NA, . or an
empty cell mean nothing to note. An unknown code is an error naming the line.
Symbols follow the NSGC nomenclature (Bennett et al., J Genet Couns 2008 and
its 2022 revision).
| Column | Codes | Drawn as |
|---|---|---|
pregnancy (pregnancy_outcome, outcome) |
P ongoing pregnancy, SAB miscarriage, TOP termination, ECT ectopic, SB stillbirth |
P: "P" inside the symbol (a diamond when the sex is unknown). SAB, TOP, ECT: a triangle, filled when affected, struck through for TOP, "ECT" below. SB: the symbol struck through, "SB" below |
adopted (adoption) |
in (or 1): the parents given are the adoptive parents; out (or 2): they are the biological parents |
Brackets around the symbol; the line to adoptive parents is dashed |
childless (childlessness, infertility) |
choice (or 1): no children by choice or for an unknown reason; infertility (or 2) |
A line below the symbol ending in one bar, or two for infertility. Write the reason in an a_ column |
art (assisted_reproduction) |
D gamete donor, S surrogate (also GC) |
"D" or "S" inside the symbol |
gender_identity (identity) |
man/M/1, woman/F/W/2, nonbinary/NB/X/3 |
The symbol follows the gender identity (square, circle, diamond) and the sex column is taken as the sex assigned at birth, written below as AMAB or AFAB when the two differ |
consultand |
1 |
An arrow without "P" (the proband's arrow has one) |
evaluated |
1, or a result such as WGS: negative |
Documented evaluation: an asterisk at the lower right; a result is written below the symbol |
A column named gender is the sex column, as before, unless the header also
has a sex column: then it is the gender identity.
Gestational age, karyotype and similar details go in a_ annotation columns,
written below the symbol. A pregnancy-loss triangle has no room for phenotype
bands: in a figure with bands it takes the color of the individual's first band.
On a symbol with bands, the "P", "D" or "S" moves beside its upper-right corner.
FID IID Father Mother Sex Phenotype Pregnancy Adopted Gender_identity a_Note
FAM1 f 0 0 1 1 0 0 0 0
FAM1 m 0 0 2 1 0 0 0 0
FAM1 c1 f m 2 1 0 in 0 0
FAM1 c2 f m 1 1 0 0 woman 0
FAM1 c3 f m 0 2 SAB 0 0 8 wk
Example fixture with every symbol: tests/data/nomenclature/nomenclature.ped.
The diagonal lines that connect gamete donors and surrogates in the NSGC
figures are not drawn: a donor is a parent in the file and is joined to the
other parent like any couple.
PLINK FAM File (.fam)
PLINK .fam files use the same 6-column format (FID, IID, PAT, MAT, SEX, PHENO), whitespace-delimited, no header. Files with .fam extension are auto-detected by the CLI.
Style File (.json)
{
"phenotype_colors": {
"epilepsy": "#e74c3c",
"IQ": "#3498db",
"SRS": "#e67e22"
},
"pgs_colors": {
"PGS_autism": "#e74c3c",
"PGS_IQ": "#3498db"
},
"gradient_range": {
"SRS": [40, 90]
},
"gradient_diverging": {
"IQ": {"min": 40, "mid": 100, "max": 160, "color_low": "#e74c3c", "color_high": "#2ecc71"}
},
"zero_pad_ids": 3,
"phenotype_layout": "quadrants",
"phenotype_quadrants": {"IQ": "bottom-right"}
}
phenotype_layout is "auto" (default), "quadrants" or "bands". With
quadrants the symbol is cut in four and each phenotype column, or cr_ carrier
source, fills one quadrant, at most four. "auto" draws quadrants up to four and
bands beyond; "quadrants" does the same but warns when it falls back to bands;
"bands" always draws one horizontal band per column (the default before 0.5.0).
With carrier sources and no phenotype column, nothing is cut: the symbol is drawn
as with bands. Autism
(Autism, ASD, TSA), ADHD (ADHD, TDAH), intellectual disability (ID,
DI) and epilepsy columns take the top-left, top-right, bottom-left and
bottom-right quadrants, the other columns the free ones in column order;
phenotype_quadrants places a column explicitly. The legend starts with a key
showing which quadrant holds which column. These four phenotypes also get
conventional colors by default, in both layouts: autism #386eb2 (blue),
intellectual disability #d34436 (red), ADHD #e59635 (yellow), epilepsy
#5e287e (purple); phenotype_colors overrides them.
Phenotype File (.pheno)
Tab-separated, first column is sample_id, remaining columns are phenotype values:
sample_id epilepsy IQ SRS
father 1 118 45
mother 1 92 78
child 2 105 62
Rows are matched to the pedigree by sample_id. Sample IDs that match no
individual are listed in a warning (PedigreeDataWarning, Warning: … on the
CLI) and their values are ignored; an individual with no row is drawn with
"NA" bands.
CLI Reference
pypedigree INPUT.ped [OPTIONS]
Options:
-o, --output PATH Output file path
--format [png|svg|pdf] Output format (auto-detected from extension)
--family ID Render only this family ID
--dpi INT Output resolution (default: 150)
--show Display interactively instead of saving
--style PATH JSON file with style overrides
--separator [tab|comma|space] Force field separator
--pheno PATH Separate .pheno TSV file with extra phenotypes
--annotations PATH Separate TSV file with annotation text (displayed below IDs)
--outline-color COLOR Shape outline color (e.g. 'grey', '#888888')
--carrier-notation [nsgc2022|legacy] Carrier notation (default: nsgc2022)
--no-labels Hide sample ID labels
--no-legend Hide the phenotype legend
--show-phenotype-labels Show YES/NO text labels inside binary phenotype bands
--no-na-labels Do not write "NA" in bands with no data (they stay grey)
--pgs-scale [minmax|zscore|percentile]
Place PGS values min-max over the pedigree (default), as z-scores or percentiles
--phenotype-layout [auto|quadrants|bands]
Four quadrants, one per phenotype, or horizontal bands; default
auto: quadrants up to four phenotypes, bands beyond
--interactive Generate interactive SVG with tooltips and click highlighting
--no-script With --interactive: same SVG without script or tooltip (print, host pages)
--id-prefix PREFIX With --interactive: prepend PREFIX to every id in the SVG
--responsive With --interactive: width="100%" and no height (fills its container)
--circular Use circular/radial layout (founders at center)
--plink Parse as PLINK format (ignore genotype columns)
--version Show version
Data-quality warnings (a father recorded as female, a parent missing from the
family, ...) are printed to stderr as Warning: <message> and do not stop
rendering. Unknown options in a style file are reported the same way, with a
suggested spelling. An invalid color is a hard error naming the option it came
from.
In Python these are the PedigreeDataWarning / PedigreeStyleWarning
categories, so they can be filtered or escalated:
import warnings
from pypedigree import PedigreeDataWarning
warnings.simplefilter("error", PedigreeDataWarning) # fail on questionable data
Diagram Symbols
- Square = male, Circle = female, Diamond = unknown sex
- Filled shape = affected, Empty shape = unaffected
- Patterned section = carrier, one pattern per carrier column, sparser for obligate carriers (NSGC 2022: the symbol is divided into as many sections as there are results, an affected section first). With
carrier_notation: "legacy": half-filled shape = carrier, center dot = obligate carrier - Color bands = multiple phenotypes (binary: color/white/grey/NA; continuous: gradient)
- Gaussian curve = PGS distribution with individual score marker
- Diagonal line = deceased
- "P" with arrow = proband; arrow without "P" = consultand
- "P" inside the symbol = pregnancy; triangle = miscarriage, ectopic pregnancy ("ECT"), or termination (struck through); struck-through symbol with "SB" = stillbirth
- Brackets = adopted; a dashed line joins an adopted child to the adoptive parents
- Line ending in a bar below the symbol = no children by choice; two bars = infertility
- "D" / "S" inside the symbol = gamete donor / surrogate
- AMAB / AFAB below the symbol = sex assigned at birth, when the symbol (gender identity) differs
- Double horizontal line = consanguineous relationship
- Dashed shape = missing/inferred parent
- Connecting lines are horizontal or vertical only, as the standard nomenclature requires
Development
git clone https://github.com/bourgeron-lab/pypedigree.git
cd pypedigree
uv sync --extra dev
# Run tests
uv run pytest
# Run tests with coverage
uv run pytest --cov=pypedigree --cov-report=term-missing
# Lint & format
uv run ruff check src/ tests/
uv run ruff format src/ tests/
Citing pypedigree
If you use pypedigree in your research, please cite it. Citation metadata is in CITATION.cff; GitHub renders it as a Cite this repository button.
Every release is archived on Zenodo. The DOI 10.5281/zenodo.24289471 cites pypedigree as a whole and resolves to the latest release; each release also has its own DOI, listed on that page (0.4.4: 10.5281/zenodo.24289472).
Releasing
See docs/RELEASING.md. Releases are published to PyPI automatically from a version tag, using trusted publishing (no API token).
License
MIT
Metadata
Release files for pypedigree 0.5.3
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 |
|---|---|---|---|---|
| pypedigree-0.5.3.tar.gz | 1.1 MB | With provenance | Details for pypedigree-0.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypedigree-0.5.3-py3-none-any.whl | Python 3 | none | any | Details for pypedigree-0.5.3-py3-none-any.whl |
Total release size: 1.2 MB
Release files / pypedigree-0.5.3.tar.gz
| Download URL | pypedigree-0.5.3.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc2dd1e3b9cbd22c0a6350ea600a8fee29b59e028ae0ed6148ac7f7034d1b6b
|
|
BLAKE2b-256 checksum How to use checksums |
9100bd150548db3dfce818b009908bd834631e63e5c048924ebd8c2793a11de5
|
| 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 17, 2026.
Transparency logRelease files / pypedigree-0.5.3-py3-none-any.whl
| Download URL | pypedigree-0.5.3-py3-none-any.whl |
|---|---|
| Size | 132.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62eb7f856ae9585e3eb6aff43cf351885d28846f927b31740fc3aaeec78abf02
|
|
BLAKE2b-256 checksum How to use checksums |
4d249c54f18c686382ab2ea4f3a384ad2fed02eb939c2c49f6242a720cfd6328
|
| 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 17, 2026.
Transparency logSecurity for pypedigree 0.5.3
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 pypedigree-0.5.3.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 17, 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.