How it works
Visual Viper works by abstracting the complex process of data visualization into four core components:
DatasetBuilder: Fetches and preprocesses data from various sources.
NotationBuilder: Generates a chart notation that specifies layouts and visual aesthetics.
ChartRenderer: Creates the visualization output, which can be either an image file or an in-memory file-like object.
ChartDeployer: Deploys the finalized visualizations to various platforms or services.
Requirements
The following the requirements to run from any machine:
Ubuntu 20
Python 3.10
Note
These requirements are for the current version and are subject to change in future releases.
Installation
Clone the Repository
git clone https://gitlab.com/mtg-research-and-development-lab/visual-viper.git
Install Dependencies
make install
Configure Environment Variables
Update the
.env
file as described below.cp .env.template .env
Run Unit Tests
Ensure everything is set up correctly.
make test
Development Mode
Spin up a test runner that watches the filesystem for you.
make dev
Execute in Production
Run the application in a production environment.
make run
Configuring .env
The .env
file is used for configuring environment variables. Below is the list of environment variables you’ll need to set:
MIRO_TOKEN: This token is required for authenticating with the Miro API when using the Miro Deployer component of Visual Viper.
You can use .env.template
as a starting point for your .env
file.
MIRO_TOKEN=your_miro_token_here