Vargula Documentation
Welcome to the official documentation for Vargula.
Contents:
- Why Vargula?
- Installation
- Conventions
- Vargula API
- In-built Resources
- Color Scheme Reference
- WCAG Contrast Guidelines
- Environment Variables
- Examples
- Tips & Best Practices
- Appendix
- Quick Reference
- Instance Creation
- Core Styling Functions
- Theme Functions
- Table Functions
- Progress Bar Functions
- Color Palette Generation
- Color Manipulation Functions
- Accessibility Functions
- Color Blindness Functions
- Persistence Functions
- Function Categories
- Alphabetical Index
- Common Workflows
- Quick Start Examples
- Parameter Quick Reference
- Return Type Quick Reference
- Frequently Asked Questions
Simple cross-platform terminal text styling library with advanced color palette generation
Vargula is a powerful Python library for terminal styling that combines better functionality with comprehensive color theory tools. Style your terminal output with colors, create beautiful tables, show progress bars, and generate harmonious color palettes - all with a simple, intuitive API.
Try this Vargula’s code snippet to run this:
What’s new?
BREAKING CHANGES
API Restructured to Class-Based Design: Major refactoring for better organization and thread-safety
All functionality now accessed through
Vargulaclass instancesRemoved module-level global functions (global state eliminated)
Each instance maintains independent state for thread-safe operations
Refer the API Reference section to know more.
Features
Text Styling: Colors, backgrounds, and text decorations (bold, italic, underline, etc.)
Markup Syntax: HTML-like tags for inline styling (
<red>error</red>)Tables: Rich-style tables with customizable borders and styling
Progress Bars: Customizable progress indicators with ETA and rate display
Color Palettes: Generate harmonious color schemes based on color theory
Accessibility: WCAG contrast checking and colorblind simulation
Themes: Built-in themes and custom theme support
Cross-platform: Works on Windows, macOS, and Linux
