Skip to main content

Module to generate automatic web interface reports with visualizations

Project description

VueGen Logo

VueGen is a Python library that automates the creation of scientific reports.

Table of contents:

About the project

VueGen automates the creation of reports based on a directory with plots, dataframes, and other files in different formats. A YAML configuration file is generated from the directory to define the structure of the report. Users can customize the report by modifying the configuration file, or they can create their own configuration file instead of passing a directory as input.

The configuration file specifies the structure of the report, including sections, subsections, and various components such as plots, dataframes, markdown, html, and API calls. Reports can be generated in various formats, including documents (PDF, HTML, DOCX, ODT), presentations (PPTX, Reveal.js), notebooks (Jupyter) or Streamlit web applications.

An overview of the VueGen workflow is shown in the figure below:

VueGen Abstract

Also, the class diagram for the project is presented below to illustrate the architecture and relationships between classes:

VueGen Class Diagram

Installation

You can install the package for development from this repository by running the following command:

pip install -e path/to/vuegen # specify location 
pip install -e . # in case your pwd is in the vuegen directory

This will both install quarto and streamlit as our backends for report generation.

Verify quarto installation

Test your quarto installation by running the following command:

quarto check

If you use conda a conda environement you can install quatro from the conda-forge channel in case it did not work.

conda install -c conda-forge quarto

Execution

Run VueGen using a directory with the following command:

cd docs
vuegen --directory example_data/Earth_microbiome_vuegen_demo_notebook --report_type streamlit

💡 If vuegen does not work, try python -m vuegen instead.

By default, the streamlit_autorun argument is set to False, but you can use it in case you want to automatically run the streamlit app.

It's also possible to provide a configuration file instead of a directory:

vuegen --config example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml --report_type streamlit

The current report types are streamlit, html, pdf, docx, odt, revealjs, pptx, and jupyter.

Acknowledgements

Contact

If you have comments or suggestions about this project, you can open an issue in this repository.

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

vuegen-0.1.0.tar.gz (34.0 kB view details)

Uploaded Source

File details

Details for the file vuegen-0.1.0.tar.gz.

File metadata

  • Download URL: vuegen-0.1.0.tar.gz
  • Upload date:
  • Size: 34.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.9.21 Darwin/24.1.0

File hashes

Hashes for vuegen-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fc8faa842af099257de5196ca0603ccb0ff3af4593c3e2e46b93fbb10acefa64
MD5 b793c1624569e8065c6878dfdb7f0304
BLAKE2b-256 251eae5471f3c66f37c21bbf548ec897823d8442ef8b7ca905c7418141625aec

See more details on using hashes here.

Supported by

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