Skip to main content

KomaPy

KomaPy is Python library for creating customizable BPPTKG Monitoring API chart.

Use Cases

KomaPy is suitable for the following applications:

  • Building automated static chart figures
  • Embedding into a web application for generating predefined chart configurations
  • Quick data analysis and visualization
  • Data correlation and processing
  • Generating high quality chart for publications
  • Many more

Installation

Install the latest version from PyPI by typing this command:

pip install -U komapy

Quick Start

Here it is a quick start example:

from komapy import Chart
from komapy.client import set_api_key

set_api_key('YOUR_API_KEY')

chart = Chart({
    'title': 'RB2',
    'theme': 'seaborn',
    'layout': {
        'data': [
            {
                'series': {
                    'name': 'edm',
                    'query_params': {
                        'benchmark': 'BAB0',
                        'reflector': 'RB2',
                        'start_at': '2019-04-01',
                        'end_at': '2019-08-01',
                        'ci': True
                    },
                    'fields': ['timestamp', 'slope_distance'],
                    'xaxis_date': True
                }
            }
        ]
    }
})

chart.render()
chart.save('RB2.png')

Documentation

Full documentation and tutorials are available at docs/ directory. You can build the documentation by running these commands:

cd /path/to/komapy/
pip install -r requirements.txt
sphinx-build -b html docs/ /path/to/build/

You can also view online version at the following link.

Contributing

See CONTRIBUTING.md to learn how to contribute to this project.

Support

This project is maintained by Indra Rudianto. If you have any question about this project, you can contact him at indrarudianto.official@gmail.com.

License

By contributing to the project, you agree that your contributions will be licensed under its MIT license. See LICENSE for details.

Metadata

Release files for komapy 0.7.3

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

Source distribution (sdist)

Source distribution for komapy 0.7.3
File Size Uploaded Provenance
komapy-0.7.3.tar.gz 21.8 kB Without provenance Details

Release files / komapy-0.7.3.tar.gz

Download URL komapy-0.7.3.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
454defd766c94a1af00793719383bb00cefb2d3a343a120e1619e28b8adf57d9
BLAKE2b-256 checksum
How to use checksums
2118cc1b59850d249c636c5f730984ff365ec69eb40cca2777c35e6c0fab000e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5

Security for komapy 0.7.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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