Skip to main content

piligraphs

pypi python CodeFactor BuyMeACoffee

A Pillow extension for drawing graphs and charts.

Installation

To install this module, run the following command:

pip install piligraphs

Example usage

Creating a line chart:

import random
from piligraphs import LineChart, Node

# define nodes
nodes = [
    Node(weight=random.randint(1, 7)) for _ in range(10)
]

# create a line chart
chart = LineChart(
    size=(1200, 300),
    thickness=8,
    fill=(243, 14, 95, 156),
    outline=(194, 43, 132, 256),
    pwidth=15,
    onlysrc=True,
    npoints=len(nodes) * 8,
    interp='cubic'
)

# add nodes
chart.add_nodes(*nodes)

# draw the graph
image = chart.draw()
image.show()

Result:

You can find more examples here.

Metadata

Release files for piligraphs 0.0.7

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

Source distribution (sdist)

Source distribution for piligraphs 0.0.7
File Size Uploaded Provenance Actions
piligraphs-0.0.7.tar.gz 11.2 kB Without provenance Details for piligraphs-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for piligraphs 0.0.7
File Interpreter ABI Platform Actions
piligraphs-0.0.7-py3-none-any.whl Python 3 none any Details for piligraphs-0.0.7-py3-none-any.whl

Total release size: 30.9 kB

Release files / piligraphs-0.0.7.tar.gz

Download URL piligraphs-0.0.7.tar.gz
Size 11.2 kB
Tags Source
SHA-256 checksum
How to use checksums
65e86e6ce17ef23866cf309c842e339912e086fdd9fa07fb30322bc3f5c43de9
BLAKE2b-256 checksum
How to use checksums
70eed9004464f06cedd56f0353d306262a4b9de2d925bfa1b4f80846d63a318d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Windows/10

Release files / piligraphs-0.0.7-py3-none-any.whl

Download URL piligraphs-0.0.7-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
98b7a3372aa9a8f123fe9cf634922ab9745f4307abcdae2a352a09d630d7b551
BLAKE2b-256 checksum
How to use checksums
92c633dae5fbb525b09731fe4a04a30b32f13f8809a826ba52cf11a4920d89da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.11.5 Windows/10

Security for piligraphs 0.0.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.

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