Metadata-Version: 2.3
Name: visivo
Version: 1.0.65
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: 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.

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

If have python setup and want to use it through the pip install you can:

```
pip install visivo
```

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

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


## Quickstart

To get started with (non-development version) Visivo, follow these steps:

1. Install Visivo : `bash -c "$(curl -fsSL https://docs.visivo.io/assets/install.sh)"`
2. Create a new project using `visivo init --project-name quick_start`.
3. Choose `sqlite` for a quickstart.
4. Navigate into the new project folder you just created with `cd quick_start`
5. Run `visivo serve` to start the development server
6. Open your web browser and navigate to `http://localhost:8000` to view your charts

# 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).
