Skip to main content

This is a gantt chart drawing library

Project description

elegantt

Overview

elegantt is gantt chart drawing library designed for developers and project managers who need to visualize project timeline efficiently. With support for both CSV and Mermaid formats. elegantt provides the flexibility and functionality you need to keep your projects on task.

Features

  • Simpe and intuitive API
  • Supports both CSV and Mermaid Gantt chart formats
  • customizable chat size and colors
  • Command line interface for quick usage
  • Cross-platform support

Installation

Install elegantt via pip:

pip install elegantt

Fonts Installation

To ensure proper rendering of text, install the necessary fonts:

on Ubuntsu

apt install fonts-noto-cjk

on RedHat/RockyLinux

yum install google-noto-sans-cjk-ttc-fonts.noarch

Usage

Command Line interface

Generate a Gantt chart from CSV file:

eleteng sample.csv

CSV Format Example

2023-01-01,2023-01-04,Task 1
2023-01-02,2023-01-05,Task 2
2023-01-04,2023-01-06,Task 3

generate a Gantt chart from a Mermaid format:

eleteng sample_mermaid.txt

Mermaid Format Example

gantt
    section task a
    task b            :active,  des2, 2024-05-20, 4d
    task c            :         des3, after des2, 7d

As a library

integrate elegantt into your python projects for advanced usage:

import elegantt

# Define chart properties
chartsize = (720,320)
bgcolor = (255,255,255)

# Create a Gant chart object
gchart = elegantt.EleGantt( chartsize, bgcolor, today="2019-10-15")

# Draw calendar and campains
gchart.draw_calendar()
gchart.draw_campain("2019-10-15","2019-10-18","Task 1")
gchart.draw_campain("2019-10-20","2019-10-23","Task 2")
gchart.draw_campain("2019-10-24","2019-10-30","Task 3")
gchart.save("gantt_chart.png")

Lisence

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

Contributing

We welcome contributions!

Support

For support or any questions, feel free to open an issue on our Github page.

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

elegantt-0.0.5.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

elegantt-0.0.5-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file elegantt-0.0.5.tar.gz.

File metadata

  • Download URL: elegantt-0.0.5.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for elegantt-0.0.5.tar.gz
Algorithm Hash digest
SHA256 46536bea573f74ed0060f70e3b2b15eb140d8ad56e4b1493e3b457604c06ef25
MD5 129907777fc5ae0bf60b909040871adb
BLAKE2b-256 a10e0899db04c51d50dc500f64c86b8e0d407b4669438e49d25a8b0098da8bcf

See more details on using hashes here.

File details

Details for the file elegantt-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: elegantt-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for elegantt-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba573dd0f1e8c2395afaa035feb6ed20187edc077883c5629fda92332b89db3
MD5 4ccad3b8d06c1f68f4cb7a5030c261fc
BLAKE2b-256 a52a1ae0b3249972e9d895f00cf4d75204ccd47928cb25301da382f7f20ed8ad

See more details on using hashes here.

Supported by

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