Skip to main content

No project description provided

Project description

Shellviz Python Library

Shellviz is a zero-hassle Python tool that transforms your data into dynamic, real-time visualizations you can explore right in your browser. It's lightweight, free, and has no dependencies — just install and start visualizing!

🛠️ Installation

Install Shellviz with pip:

pip install shellviz

🔧 Getting Started

Basic Usage

from shellviz import log, table, json

log('my first shellviz command')
# Shellviz serving on http://127.0.0.1:5544

table([("Alice", 25, 5.6), ("Bob", 30, 5.9)])
json({"name": "Alice", "age": 25, "height": 5.6})

Open the generated URL in your browser, and you’ll see your data visualized instantly.

Advanced Usage

Update Existing Values

from shellviz import progress
progress(0.0, id='migration')
progress(1.0, id='migration') # Update data dynamically

Django Integration

Querysets and Models

Shellviz can encode Queryset and Model instances, so you can visualize ORM queries without having to serialize them

from shellviz import json, card
json(request.user)
card(User.objects.all())

Django Logging

Shellviz has an optional drop-in logging handler that can automatically initialize a Shellviz instance and forward all logging calls to it

LOGGING = {
    'handlers': {
        'shellviz': {
            'class': 'shellviz.django_logging.ShellvizHandler',
            #...
        },
    }
}

Django Debug Toolbar

Shellviz can be configured to launch as a tab in the Django Debug Toolbar

DEBUG_TOOLBAR_PANELS = [
    #...
    'shellviz.django_debug_toolbar.ShellvizPanel'
    #...
]

Build

Bundling and deploying Shellviz is straightforward. Run the following command to build a compiled version of the Shellviz client that will be placed in the package's build folder:

cd client
npm run build

Once this is done, you can compile the package using poetry:

cd libraries/python
poetry build

To install into a local python environment, run the following command:

poetry add --no-cache ~/[path-to-repo]/dist/shellviz-0.x.x-py3-none-any.whl

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shellviz-0.4.2.tar.gz (416.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shellviz-0.4.2-cp39-cp39-macosx_15_0_arm64.whl (419.8 kB view details)

Uploaded CPython 3.9macOS 15.0+ ARM64

File details

Details for the file shellviz-0.4.2.tar.gz.

File metadata

  • Download URL: shellviz-0.4.2.tar.gz
  • Upload date:
  • Size: 416.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.17 Darwin/24.3.0

File hashes

Hashes for shellviz-0.4.2.tar.gz
Algorithm Hash digest
SHA256 2e0a2173c45ce31b56612d05579b8683f52dbfde2051feef584952fa8fc58162
MD5 1adee3163abd02364bb6d11626c825e4
BLAKE2b-256 8286c06d82e7bf9db8364c9401f9bc4c02ec99ccfa19bb4cfaaac42c0d6df620

See more details on using hashes here.

File details

Details for the file shellviz-0.4.2-cp39-cp39-macosx_15_0_arm64.whl.

File metadata

  • Download URL: shellviz-0.4.2-cp39-cp39-macosx_15_0_arm64.whl
  • Upload date:
  • Size: 419.8 kB
  • Tags: CPython 3.9, macOS 15.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.9.17 Darwin/24.3.0

File hashes

Hashes for shellviz-0.4.2-cp39-cp39-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c0db6a7c25a7089a16b99cfceeda89cdd1f1d2b7b2c81a74a2c3afffb28c922e
MD5 31b099429a02c544354245cb40dc1d78
BLAKE2b-256 011c9d88205f1187641c45d1c6c0bf147bdf3d93636bb535437216165cef8e91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page