Metadata-Version: 2.3
Name: visivo
Version: 1.0.70
Summary: Visivo CLI for BI and visualizations as code
Author: Visivo People
Requires-Python: >=3.10,<3.13
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: Flask (>=2.2.3)
Requires-Dist: Jinja2 (>=3.1.2)
Requires-Dist: PyYAML (>=6.0)
Requires-Dist: aiofiles (>=24.1.0)
Requires-Dist: assertpy (>=1.1)
Requires-Dist: click (>=8.1.3)
Requires-Dist: deepmerge (>=1.1.0)
Requires-Dist: duckdb-engine (>=0.14.0)
Requires-Dist: flask-socketio (>=5.5.1)
Requires-Dist: gitpython (>=3.1.32)
Requires-Dist: halo (>=0.0.31)
Requires-Dist: httpx (>=0.27.2)
Requires-Dist: jsonschema-rs (>=0.30.0)
Requires-Dist: matplotlib (>=3.7.1)
Requires-Dist: networkx (>=3.1)
Requires-Dist: numpy (>=1.26.0,<2.0.0)
Requires-Dist: polars (>=1.31.0,<2.0.0)
Requires-Dist: posthog (>=6.1.0,<7.0.0)
Requires-Dist: psycopg2-binary (>=2.9.5)
Requires-Dist: pyarrow (>=20.0.0)
Requires-Dist: pydantic (>=2.9.0)
Requires-Dist: pymysql (>=1.1.0)
Requires-Dist: python-dateutil (>=2.9.0.post0)
Requires-Dist: python-dotenv (>=1.0.0)
Requires-Dist: requests (>=2.28.2)
Requires-Dist: ruamel-yaml (>=0.18.6)
Requires-Dist: snowflake-connector-python (>=3.7.0)
Requires-Dist: snowflake-sqlalchemy (>=1.6.1)
Requires-Dist: sql-formatter (>=0.6.2)
Requires-Dist: sqlalchemy (>=2.0.8)
Requires-Dist: sqlalchemy-bigquery (>=1.12.0)
Requires-Dist: tenacity (>=9.0.0)
Requires-Dist: termcolor (>=2.4.0)
Requires-Dist: tornado (>=6.3)
Requires-Dist: watchdog (>=6.0.0)
Project-URL: Documentation, https://docs.visivo.io/
Description-Content-Type: text/markdown

![PyPI](https://img.shields.io/pypi/v/visivo?label=pypi%20package)
![PyPI - Downloads](https://img.shields.io/pypi/dm/visivo)

<img src="viewer/src/images/logo.png" alt="Visivo Logo" style="width:25%;">

# Introduction

Visivo is an open-source, fully code-based, data-visualization tool that enables users to create interactive and customizable dashboards for their data.

It provides a simple and intuitive way to connect to various data sources, reuse queries and charts, and share insights with others.

Here are some examples

# Usage

Please refer to https://docs.visivo.io for detailed instructions on how to use this package.

## Install

We have an install script for a self contained binary.

### Install Latest Version

```bash
curl -fsSL https://visivo.sh | bash
```

### Install Specific Version

To install a specific version, you can pass the version as a parameter:

```bash
# Install version 1.0.64
curl -fsSL https://visivo.sh | bash -s -- --version 1.0.64

# Or with the 'v' prefix
curl -fsSL https://visivo.sh | bash -s -- --version v1.0.64

# Short form
curl -fsSL https://visivo.sh | bash -s -- -v 1.0.64
```

### Installation Help

To see all available installation options:

```bash
curl -fsSL https://visivo.sh | bash -s -- --help
```

> **Note**: To find available versions, check the [releases page](https://github.com/visivo-io/visivo/releases) or the [tags on this repository](https://github.com/visivo-io/visivo/tags).

### Python Installation

If you have Python setup and want to use it through pip install:

```bash
pip install visivo
```

If you want to install a preview version you can install from a beta tag:

```bash
python -m pip install git+https://github.com/visivo-io/visivo.git@v1.1.0-beta-1 --force-reinstall
```

## Quickstart

To get started with Visivo, follow these steps:

### **Option 1: CLI-Guided Setup with `init`**

This approach is ideal if you prefer setting things up through the command line with control over source selection.

1. **Install Visivo**

   ```bash
   curl -fsSL https://visivo.sh | bash
   ```

2. **Initialize a new project**

   ```bash
   visivo init --project-dir quick_start
   ```

3. **Choose a data source**
   Select `sqlite` for the fastest setup during initialization.

4. **Navigate to your project directory**

   ```bash
   cd quick_start
   ```

5. **Start the development server**

   ```bash
   visivo serve
   ```

6. **Open your browser**
   Go to [http://localhost:8000](http://localhost:8000) to start building charts.

---

### **Option 2: UI-Guided Setup with `serve`**

If you prefer a more visual and guided setup without manually initializing the project, you can start directly:

1. **Install Visivo**

   ```bash
   curl -fsSL https://visivo.sh | bash
   ```

2. **Start the server in any empty directory**

   ```bash
      visivo serve --project-dir quick_start
   ```

3. **Configure everything through the UI**
   Once running, Visivo will walk you through data source selection and setup via your browser.

# Telemetry

Visivo collects anonymous usage telemetry to help improve the tool. This data helps us understand which features are used most and identify areas for improvement.

**Privacy First**: We do not collect any personal information, file contents, queries, or sensitive data.

To opt out of telemetry, you can:

- Set the environment variable: `export VISIVO_TELEMETRY_DISABLED=true`
- Or add to your project configuration: `telemetry_enabled: false`

For more details, see [TELEMETRY.md](TELEMETRY.md).

# Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/visivo-io/visivo/tags).

# Contributing

There are two pieces to the local Visivo deployment, the python CLI and the javascript viewer. When packaged, the viewer is contained in the CLI, but it is needed to be able to develop them separately locally.

## CLI

The development of the python CLI is straight forward. The code is contained within the `visivo` folder in this repo, and we use `poetry` as its package manager.

### Prerequisites

1. Python 3.10+
2. Poetry: `pip install poetry`
3. Dependencies: `poetry install`

After this, you can install the visivo package from the files in the repo. This keeps the `visivo ...` commands in sync with your github repo because it reads those commands from the files on your computer.

```
pip install -e .
```

### Commands

- Test: `poetry run pytest`
- Server: `visivo serve`

## Viewer

The local development environment is a basic vite app. It uses `yarn` as its package manager and commands can be found in the `package.json`.

### Prerequisites

1. Node 20+
2. Yarn: `npm install -g yarn`
3. Dependencies: `yarn install`

### Commands

- Test: `yarn test`
- Start: `yarn start`

If you need to run it locally as an app, you need a API for it to proxy to. You can do this be running visivo on a local project by:

1. Install Visivo from above. Either the development or `pip` install.
2. Start `visivo serve` on a project. You can do this in on `test-projects` in this repo. This acts as the server for your changes.
3. In another terminal start the react app.
   a. `cd viewer`
   b. `yarn start`
   c. Navigate to localhost:3000 this will proxy any data requests to the running `visivo serve` command

## Generating a Release

A release is created by running the action `Create Release`. This will create a tag and trigger the deployment of the viewer. The input is without the `v` prefix. Example: `1.3.4`.

# Authors

- Visivo LLC - [visivo.io](https://visivo.io/)

Our team has experienced building analytics at fast growing companies and scaling systems at household names like Intuit, Boeing and Root Insurance.

See also the list of [contributors](https://github.com/visivo-io/visivo/contributors) who participated in this project.

# Join Our Community

- File a GitHub [issue](https://github.com/visivo-io/visivo/issues).
- Send us an email [info@visivo.io](mailto:info@visivo.io).
- Read our [blog](https://visivo.io/blog).

