viztools
Interactive tools to visualize data in python using pygame.
The Image in the screenshot: Mainichi Shimbun, Public domain, via Wikimedia Commons
Installation
pip install viztools
See on pypi.
Usage
See examples.
Minimal example
import pygame as pg
import numpy as np
from viztools.drawable import Points
from viztools.ui.elements import Button
from viztools.viewer import Viewer
class SimpleViewer(Viewer):
def __init__(self):
super().__init__()
self.points = Points(np.random.normal(size=(1000, 2)), size=0.05)
self.button = Button(pg.Rect(50, 50, 120, 40), "Click me")
def update(self):
if self.button.is_clicked:
print('clicked')
viewer = SimpleViewer()
viewer.run()
Features
- Rendering of different drawable objects (Lines, Points, Images, Texts)
- Renders 100_000 points fluently, and can also handle 1_000_000 points and above (with some lag) (Rendering Lines is slow)
- UI elements (Buttons, Labels, EditField, TextField)
- EditField and TextField support many keyboard shortcuts, selection, copy/paste, ...
- Fast scrolling and zooming
Metadata
Release files for viztools 0.6.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| viztools-0.6.8.tar.gz | 31.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| viztools-0.6.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 72.5 kB
Release files / viztools-0.6.8.tar.gz
| Download URL | viztools-0.6.8.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e6ee3ac9208145a0539edc4eed5d2ee81d3548d57d06125a03f477b109ea03d
|
|
BLAKE2b-256 checksum How to use checksums |
86c7eb9170a8d060406cc66aa6ca67793d84bc17fbf30e1c935935f691d0b225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / viztools-0.6.8-py3-none-any.whl
| Download URL | viztools-0.6.8-py3-none-any.whl |
|---|---|
| Size | 41.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbb56e11b137cc1607392f83051b9fb11049847641d272cc96fa81028173239e
|
|
BLAKE2b-256 checksum How to use checksums |
a06810ba983eaed6e2e0206e4b654f24c0a2f22e2f54d509e4f9b474825c0d39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for viztools 0.6.8
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.