Skip to main content

Kaptive

Release Build status codecov Commit activity License

Kaptive Plot

Installation

From PyPI:

$ pip install kaptive-plot
---> 100%
Installed!

From source:

$ pip install git+https://github.com/tomdstanton/kaptive-plot.git
---> 100%
Installed!

Usage

$ kaptive-plot -h

usage: kaptive-plot <db> <json>

Plotting library for Kaptive, the tool for in silico serotyping

Inputs:

  db              Database path or keyword used to generate results
  json            Kaptive results JSON file or "-" for stdin

Outputs:

  -o, --out       Output path (default: .)
  -f , --format   Output format: png, svg or html (default: png)
  -p, --plotly    Use plotly instead of matplotlib (default: False)

Other options:

  -v, --version   show program's version number and exit
  -h, --help      Show this help message and exit

For more help, visit: https://tomdstanton.github.io/kaptive-plot

Examples

Static plot

kaptive-plot kpsc_k tests/test.json

test_plot

Interactive plot

kaptive-plot kpsc_k tests/test.json --plotly --format html
{"file_path": "docs/assets/test.json"}

Release files for kaptive-plot 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kaptive-plot 0.0.1
File Size Uploaded
kaptive_plot-0.0.1.tar.gz 445.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kaptive-plot 0.0.1
File Interpreter ABI Platform
kaptive_plot-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 469.7 kB

Release files / kaptive_plot-0.0.1.tar.gz

Download URL kaptive_plot-0.0.1.tar.gz
Size 445.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5c8f7d44df40f41e9c959d731e593495d5b39222a217a3849201a87961105ffc
BLAKE2b-256 checksum
How to use checksums
950f0dacfd392a788d4c585d56717afff9b9485abe82aaad573ab2dd19c21c19
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 Mar 6, 2026.

Transparency log

Release files / kaptive_plot-0.0.1-py3-none-any.whl

Download URL kaptive_plot-0.0.1-py3-none-any.whl
Size 23.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7f22b5ad62168e9db13309e62333f4d0e6769ad43a8b423f5d1e473aa04fae7
BLAKE2b-256 checksum
How to use checksums
98348843857425199ffa47bc11976d14b674a3f32102fba6f5457614cac10d6b
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 Mar 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page