Scan your whole stack
Are you using kegger?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0
kegger was last scanned on 27 Nov 2026 at version 0.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0 LATEST | 27 Nov 2026 | No rules fired |
Findings for v0.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Interact with the KEGG (Kyoto Encyclopedia of Genes and Genomes) API using Python and Pandas.
Retrieve genes, pathways, and associated data for organisms of interest in the KEGG database. Originally developed for RNA-seq analysis to organize gene expression patterns by KEGG pathways.
Install from PyPI using pip:
pip install kegger
Or using uv:
uv add kegger
import kegger as kg
org = "eco" # E. coli K-12 MG1655
org_pathways = kg.list_all_pathways(org)
print(org_pathways.head())
Output:
pathid description
0 eco01100 Metabolic pathways - Escherichia coli K-12 MG1655
1 eco01110 Biosynthesis of secondary metabolites - Escher...
2 eco01120 Microbial metabolism in diverse environments -...
3 eco01200 Carbon metabolism - Escherichia coli K-12 MG1655
4 eco01210 2-Oxocarboxylic acid metabolism - Escherichia ...
genes_pathids = kg.genes_to_pathways(org)
genes_pathids = genes_pathids.merge(org_pathways, how="outer")
print(genes_pathids.head())
Output
pathid gene description
0 eco00010 b0114 Glycolysis / Gluconeogenesis - Escherichia col...
1 eco00010 b0115 Glycolysis / Gluconeogenesis - Escherichia col...
2 eco00010 b0116 Glycolysis / Gluconeogenesis - Escherichia col...
3 eco00010 b0325 Glycolysis / Gluconeogenesis - Escherichia col...
4 eco00010 b0356 Glycolysis / Gluconeogenesis - Escherichia col...
If you need more details about a pathway, use the get_path() function to retrieve the raw text from the KEGG request and kegg_parser() to convert the string into a dictionary.
pathid = "eco00190" # Oxidative phosphorylation
path_record = kg.get_path(pathid) # the kegg request as a string
path_dict = kg.kegg_parser(path_record)
# Available data fields
print(path_dict.keys())
# dict_keys(['ENTRY', 'NAME', 'CLASS', 'PATHWAY_MAP', 'MODULE',
# 'ORGANISM', 'GENE', 'ORTHOLOG', 'COMPOUND',
# 'REFERENCE', 'AUTHORS', 'TITLE', 'JOURNAL', 'KO_PATHWAY'])
# Show the pathway name
print(path_dict.get("NAME"))
# Oxidative phosphorylation - Escherichia coli K-12 MG1655
# Show associated modules
print(path_dict.get("MODULE"))
# [
# 'eco_M00144 NADH:quinone oxidoreductase, prokaryotes [PATH:eco00190]',
# 'eco_M00149 Succinate dehydrogenase, prokaryotes [PATH:eco00190]',
# 'eco_M00150 Fumarate reductase, prokaryotes [PATH:eco00190]',
# 'eco_M00153 Cytochrome bd ubiquinol oxidase [PATH:eco00190]',
# 'eco_M00157 F-type ATPase, prokaryotes and chloroplasts [PATH:eco00190]',
# 'eco_M00417 Cytochrome o ubiquinol oxidase [PATH:eco00190]'
# ]
# Get genes in this pathway
genes = path_dict.get("GENE")
print(f"Found {len(genes)} genes in pathway")
print(genes[:5]) # First 5 genes
# ['b0428', 'b0429', 'b0430', 'b0431', 'b0432']
import kegger as kg
org = "eco"
annotated_org = kg.get_org(org)
genes_pathways_org = annotated_org.merge(org_pathways, how="outer")
print()
Full documentation is available at https://csaltikov.github.io/kegger/
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you use kegger in your research, please cite:
Saltikov, C. (2025). kegger: A Python package for interacting with the KEGG API.
GitHub repository: https://github.com/csaltikov/kegger
This package interfaces with the KEGG API. Please cite KEGG appropriately in your work:
Kanehisa, M. and Goto, S.; KEGG: Kyoto Encyclopedia of Genes and Genomes. Nucleic Acids Res. 28, 27-30 (2000).
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.