kegger
Interact with the KEGG API using Python and Pandas
Retrieve genes and KEGG pathway for your favorite organisms in the KEGG database
I developed this primarily for use in RNAseq analysis and organizing gene expression patterns by KEGG pathways
Here are some quick examples:
Get all pathways from E. coli
>>> import kegger as kg
>>> org = "eco"
>>> org_pathways = kg.list_all_pathways(org)
>>> org_pathways.head()
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 ...
Get a specific pathway:
>>> import kegger as kg
>>> pathid = "eco00190" # Oxidative phosphorylation - Escherichia coli K-12 MG1655
>>> org = "eco"
>>> path_record = kg.get_path(pathid)
>>> path_dict = kg.kegg_parser(path_record)
>>> print(path_dict.keys())
dict_keys(['ENTRY', 'NAME', 'CLASS', 'PATHWAY_MAP', 'MODULE', 'ORGANISM', 'GENE', 'ORTHOLOG', 'COMPOUND',
'REFERENCE', 'AUTHORS', 'TITLE', 'JOURNAL', 'KO_PATHWAY'])
>>> path_dict.get("GENE")
['b0428', 'b0429', 'b0430', 'b0431', 'b0432', 'b0721', 'b0722', 'b0723', 'b0724', 'b0733', 'b0734', 'b0978',
'b0979', 'b1109', 'b2276', 'b2277', 'b2278', 'b2279', 'b2280', 'b2281', 'b2282', 'b2283', 'b2284', 'b2285',
'b2286', 'b2287', 'b2288', 'b2501', 'b3731', 'b3732', 'b3733', 'b3734', 'b3735', 'b3736', 'b3737', 'b3738',
'b4151', 'b4152', 'b4153', 'b4154', 'b4226', 'b4515', 'b4592']
Release files for kegger 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kegger-0.1.6.tar.gz | 40.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kegger-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.4 kB
Release files / kegger-0.1.6.tar.gz
| Download URL | kegger-0.1.6.tar.gz |
|---|---|
| Size | 40.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c17bfcb34b19aa90cf9212a6bf022b561a068810e03be48fc05922278d5eb59
|
|
BLAKE2b-256 checksum How to use checksums |
ae4cec48c6a7c931d3ed50758e13915d571d1e812b391b85392184d9c73f7aa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 2, 2026.
Transparency logRelease files / kegger-0.1.6-py3-none-any.whl
| Download URL | kegger-0.1.6-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e199acfb108accbb274f9836a3e6e4c9880ce38c79b204cb8e076ddfb4b44fa4
|
|
BLAKE2b-256 checksum How to use checksums |
c451b6fe6c42e1caadabbddfa0ac6bd3a778ef50c1d81e3fdb4175333a3b7a15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 2, 2026.
Transparency log