Skip to main content

ReverieVis

A professional Python package for creating beautiful visualizations with clean, object-oriented design.

Features

  • Clean Architecture: Object-oriented design with clear separation of concerns
  • Multiple Chart Types: Support for radar charts, with more chart types coming soon
  • Professional Theming: Built-in themes (default, dark, minimal, professional)
  • Type Safety: Comprehensive constants system preventing typos and errors
  • Easy Configuration: Centralized configuration management
  • Extensible: Factory pattern for easy addition of new chart types

Installation

pip install reverievis

Quick Start

Basic Radar Chart

import pandas as pd
from reverievis import RadarChart

# Create sample data
data = pd.DataFrame({
    'Category': ['A', 'B', 'C'],
    'Speed': [80, 90, 70],
    'Accuracy': [85, 75, 95],
    'Efficiency': [90, 80, 85]
})

# Create and display chart
chart = RadarChart(
    data=data,
    category_column='Category',
    value_columns=['Speed', 'Accuracy', 'Efficiency']
)
chart.plot()
chart.show()

Customized Chart

from reverievis import RadarChart, ChartConfig, Theme
from reverievis.core.constants import LegendStyles, Markers

# Custom configuration
config = ChartConfig(
    figure_size=(12, 8),
    title="Performance Comparison",
    colors=['#FF6D60', '#6DA9E4', '#F7D060'],
    legend_style=LegendStyles.TOP,
    marker=Markers.CIRCLE
)

# Custom theme
theme = Theme("professional")

# Create chart
chart = RadarChart(
    data=data,
    category_column='Category',
    value_columns=['Speed', 'Accuracy', 'Efficiency'],
    config=config,
    theme=theme
)
chart.plot()
chart.show()

Using the Factory Pattern

from reverievis import create_chart

# Create chart using factory
chart = create_chart(
    'radar',
    data=data,
    category_column='Category',
    value_columns=['Speed', 'Accuracy', 'Efficiency']
)
chart.plot()
chart.show()

Architecture

The package follows a clean, modular architecture:

reverievis/
├── core/           # Base classes and configuration
├── charts/         # Chart implementations
├── utils/          # Utility functions
├── constants/      # Type-safe constants
└── factory/        # Chart creation factory

Key Components

  • Chart: Abstract base class for all chart types
  • ChartConfig: Centralized configuration management
  • Theme: Professional theming system
  • ChartFactory: Factory pattern for chart creation
  • Constants: Type-safe constants preventing errors

Documentation

📚 Complete Documentation: Visit our GitBook documentation for comprehensive guides, examples, and API reference.

Development

Setup Development Environment

git clone https://github.com/ragilhadi/reverie-vis.git
cd reverie-vis
pip install -r requirements-dev.txt

Pre-commit hooks automatically check code quality before each commit:

# Install pre-commit
pip install pre-commit

# Install the git hook scripts
pre-commit install

# Run against all files (optional)
pre-commit run --all-files

The pre-commit hooks will automatically:

  • Format code with Ruff
  • Check code quality with Ruff linting
  • Validate imports and catch common issues
  • Ensure consistent code style across the project

Manual Code Quality Checks

# Run tests
pytest src/tests/

# Format code
black src/

# Lint code
flake8 src/

# Type checking
mypy src/

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Before contributing, please:

  1. Set up pre-commit hooks (see Development section above)
  2. Ensure all tests pass
  3. Follow the existing code style

License

This project is licensed under the MIT License - see the LICENSE file for details.

Authors

Acknowledgments

Metadata

Release files for reverievis 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reverievis 1.0.0
File Size Uploaded Provenance Actions
reverievis-1.0.0.tar.gz 23.3 kB Without provenance Details for reverievis-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for reverievis 1.0.0
File Interpreter ABI Platform Actions
reverievis-1.0.0-py3-none-any.whl Python 3 none any Details for reverievis-1.0.0-py3-none-any.whl

Total release size: 47.6 kB

Release files / reverievis-1.0.0.tar.gz

Download URL reverievis-1.0.0.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3dd63e23e3dc013ba15b3e83d6f1ccae792ed945f0fc7858e244cfc9888711b7
BLAKE2b-256 checksum
How to use checksums
9d2c408560ce90293f6dc57ec95f5a3fde2596af0287e0ce17d3535daee31df2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / reverievis-1.0.0-py3-none-any.whl

Download URL reverievis-1.0.0-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57dfa4428705a857ce0161bdb1c21b0a05c9438d9aa6e398af6abe8d3deea697
BLAKE2b-256 checksum
How to use checksums
dc5acf6fa90a7d7208276adb85edec37f609640405b1fac6832f6816afd1520f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Security for reverievis 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page