The repository or configuration that created this release differ from a previous release. View details.
⭐ What's new in 0.17.1
0.17.1 makes Andrey easier to enter and states its standards. The homepage shows one method per
family, and a Methods page lists every method by the kind of data it reads. A standards page says
what we require of every method and how we check it, with new tests that rescale each column and
require the same graph. The docs gain a concepts guide and a learning path, and
score_func="normal_scores", experimental, keeps a search's graph under increasing transforms of a
column. 0.17.0 added SCORE, NoGAM, and AGES.
Methods · Standards · 0.17.0 release card
Andrey is a causal discovery package for Python.
- Fast: The fastest causal discovery package.
- Accurate: more than 80% fewer errors than other popular packages.
- One API: 49 supported methods, each one function call.
- Any data: continuous, categorical, mixed, time series, nonlinear, hidden confounders.
- Agent-ready: a command line that answers in JSON, and a skill for coding agents.
uv add andrey-core
pip install andrey-core
You install andrey-core and then import andrey.
- Optional extras:
andrey-core[torch]for GPUs and CALM,andrey-core[viz]for charts and graph layouts - From GitHub, the latest release:
uv add "andrey-core @ git+https://github.com/Abel-ai-lab/andrey@main" - Installation guide: the extras, a PyTorch build for your GPU, and building Andrey from source
What's inside
| Family | Methods | Returns |
|---|---|---|
| Constraint-based | pc, fci, gfci, cdnod, fci_jci, icp, iamb, inter_iamb, mmpc |
CPDAG, PAG, DAG, Undirected graph |
| Score-based | ges, gies, gnies, xges, ages, hc, tabu, exact_search, calm, notears, dagma*, mmhc, rsmax2 |
CPDAG, DAG |
| Permutation-based | boss, grasp, boss_fci, grasp_fci, igsp, ut_igsp |
CPDAG, PAG |
| Functional causal models | direct_lingam, ica_lingam, multi_group_direct_lingam, cam, resit, score_matching, nogam |
DAG |
| Temporal causal discovery | varma_lingam, longitudinal_lingam, pcmci, pcmciplus, jpcmciplus, lpcmci, granger, dynotears |
Temporal graph |
| Latent variables | gin, rcd, bottom_up_parce_lingam, camuv |
DAG, PAG |
| Pairwise direction | anm, pnl, loci |
Two-node DAG |
* Experimental: not supported yet (see its Limitations), and the API may change.
Quick start
Learn the protein-signaling network of Sachs et al. (2005) from 853 cells, and score it against the known network:
import andrey
from andrey.data import load_dataset
from andrey.metrics import score
sachs = load_dataset("sachs") # 853 cells, 11 proteins, and the known network
out = andrey.pc(sachs.data) # learn a graph
print(out)
scores = score(out.structure, sachs.graph)
print({k: round(scores[k], 2) for k in ("shd", "skeleton_precision", "skeleton_recall")})
pc cpdag | 11 nodes | 8 edges (6 undirected, 2 directed)
raf -- mek
plc -- pip3
pip2 -- pip3
erk -- akt
erk -- pka
akt -- pka
p38 -> pkc
jnk -> pkc
indep_test: fisherz
tie_break: rank
{'shd': 11, 'skeleton_precision': 1.0, 'skeleton_recall': 0.47}
PC finds 8 edges, all among the known network's 17. The structural Hamming distance (SHD) counts the edges to add, remove, or reorient to reach the known network: 11 here (9 edges are missing, and 2 are oriented where the known network's CPDAG leaves them undirected), and 17 for a graph with no edges.
For your own data, pass a pandas DataFrame or a NumPy array: one row per sample, one column per variable. From a shell or an agent:
andrey run pc --data your_data.csv # JSON when piped, a summary in a terminal
To give your coding agent Andrey's skill, paste this prompt into it:
Install Andrey's agent skill: make sure the andrey-core package is installed, run
`andrey --skill`, and save its output as andrey/SKILL.md in your skills folder.
Learn more
- Documentation: guides and the API reference.
- Examples: notebooks, one method or task each, and demos that run in your browser.
- Release cards: benchmark details for each release.
- Why Andrey is fast
- FAQ and changelog.
- Roadmap: the planned work, stage by stage.
Andrey is in alpha: the API may change between releases, so pin the version you use. Linux is supported; macOS and Windows install and run on the CPU, with no guarantee yet (Testing). Apple GPUs are not supported in the alpha.
Citing, license, contributing
If you use Andrey in your work, please cite it, or use the citation file:
@software{andrey,
author = {{Abel AI Lab}},
title = {Andrey: Accelerated, accurate, agentic causal discovery},
year = {2026},
version = {0.17.1},
url = {https://andrey.abel.ai},
}
Andrey is released under the Apache License 2.0. Bug reports and pull requests are welcome in the issue tracker; the contributing guide explains how to set up a development environment.
Andrey is inspired by causal-learn, pgmpy, Tetrad, and many other causal discovery packages.
Metadata
Release files for andrey-core 0.17.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| andrey_core-0.17.1.tar.gz | 1.0 MB | With provenance | Details for andrey_core-0.17.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| andrey_core-0.17.1-py3-none-any.whl | Python 3 | none | any | Details for andrey_core-0.17.1-py3-none-any.whl |
Total release size: 2.1 MB
Release files / andrey_core-0.17.1.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | andrey_core-0.17.1.tar.gz |
|---|---|
| Size | 1.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
303bb7b7cf1fc4e482c9533a7c2026108a57d7d8bb4160151ce9071c00c2d579
|
|
BLAKE2b-256 checksum How to use checksums |
a562bbd37d4e33676198382168c84433906dd5f9a18fc5ec9ab280f8f5f88245
|
| 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 12, 2026.
Transparency logRelease files / andrey_core-0.17.1-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | andrey_core-0.17.1-py3-none-any.whl |
|---|---|
| Size | 1.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6f81ce04472c6dcc6bf0b2922274eced92b8898be430f3585aa79459e2d93767
|
|
BLAKE2b-256 checksum How to use checksums |
48a3256517c113b3d98a7fe283caf274ffedb9a527aebe26f38abdb7bcfa1999
|
| 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 12, 2026.
Transparency logSecurity for andrey-core 0.17.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.
Change of provenance
The repository and configuration that created this release differ from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 0.17.0 github.com/Abel-ai-lab/andrey
- Added 0.17.1 github.com/Abel-ai-lab/Andrey
Attestation for andrey_core-0.17.1.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 12, 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.