Skip to main content

A Python package that creates a high-quality Gantt chart to visualize project timelines, work packages, milestones, and deliverables

Project description

Gantt Chart Creator for MSCA Fellowship

  • This Python application creates a high-quality Gantt chart to visualize project timelines, work packages, milestones, and deliverables. It uses Plotly for interactive visualization and supports exporting the chart as a PNG image. The tool is tailored for projects, such as those funded by the Marie SkÅ‚odowska-Curie Actions (MSCA) fellowship.

Features

  • Interactive Gantt chart creation.
  • Customizable colors for milestones and deliverables.
  • Annotations for explaining work packages.
  • Option to save the chart as a high-quality PNG file.

Installation

To use this application, you need to have Python installed. You also need the following Python packages:

  • plotly
  • kaleido
  • You can install these packages using pip: pip install plotly kaleido

Usage

  • To create a Gantt chart, call the create_gantt_chart function with the appropriate parameters.

Function Signature

def create_gantt_chart(work_packages, milestone_color, deliverable_color, annotation_text, start_date, finish_date, project_title, save=False):

Parameters

  • work_packages: List of dictionaries, each representing a task with 'Task', 'Start', 'Finish', and 'Type'.
  • milestone_color: Color code (e.g., hex color) for milestones.
  • deliverable_color: Color code (e.g., hex color) for deliverables.
  • annotation_text: Text for the annotation explaining work packages.
  • start_date: Start date for the x-axis in 'YYYY-MM-DD' format.
  • finish_date: Finish date for the x-axis in 'YYYY-MM-DD' format.
  • project_title: Title of the project to be displayed at the top of the chart.
  • save: Boolean, if True, the chart is saved as a high-quality PNG file.

Example

  • Here is an example of how to use the create_gantt_chart function:

Gantt Chart Example

Below is an example of how to use the create_gantt_chart function from the pejmanai_msca.gantt_chart module:

from pejmanai_msca.gantt_chart import create_gantt_chart

work_packages = [
    {"Task": "WP1-Subtask1", "Start": "2024-04-01", "Finish": "2024-07-30", "Type": "M1"},
    {"Task": "WP1-Subtask2", "Start": "2024-08-01", "Finish": "2024-12-30", "Type": "D1"},
    {"Task": "WP1-Subtask3", "Start": "2025-01-01", "Finish": "2025-04-30", "Type": "M2"},
    {"Task": "WP2-Subtask1", "Start": "2024-05-01", "Finish": "2026-04-30", "Type": "M3"},
    {"Task": "WP2-Subtask2", "Start": "2024-10-01", "Finish": "2025-01-30", "Type": "M4"},
    {"Task": "WP3-Subtask1", "Start": "2025-02-01", "Finish": "2026-02-28", "Type": "M5"},
    {"Task": "WP4-Subtask1", "Start": "2025-02-01", "Finish": "2026-02-28", "Type": "D2"}
]

milestone_color = '#f33126'
deliverable_color = '#2ca09c'

annotation_text = (
    "<span style='color:#f33126;'>&#9679;</span> Milestones<br>"
    "<span style='color:#2ca09c;'>&#9679;</span> Deliverables<br>"
    "W1 - Research<br>"
    "W2 - R & D<br>"
    "W3 - Training loop<br>"
    "W4 - Final report"
)

project_title = "MSCA Gantt Chart Example"

create_gantt_chart(work_packages, milestone_color, deliverable_color, annotation_text, '2024-01-01', '2026-12-31', project_title, save=True)```


![Package Banner](https://i.postimg.cc/3wLWFPYz/MSCA-Gantt-Chart-Example.png)

## Contact
- Email: `pejman.ebrahimi77@gmail.com`
- Website: `https://giltech-megoldasok.com/`

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

pejmanai_msca-0.0.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

pejmanai_msca-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pejmanai_msca-0.0.2.tar.gz.

File metadata

  • Download URL: pejmanai_msca-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for pejmanai_msca-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7426a5d6e69f4bcf43e6f0b2a038cc1fe729890166aa8e776052c7f4ae8b4328
MD5 165cec81eb566d01e5497688049a169a
BLAKE2b-256 1e1b60ab7750fa7cbe82638371642047e34d36fe541698893807283859a33fa5

See more details on using hashes here.

File details

Details for the file pejmanai_msca-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pejmanai_msca-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0e6f98cf70c68a70d147def9a64c847a91378533234e89dbb9ac77c875e38eba
MD5 a72a0ee29dd3105b56259a969f48359f
BLAKE2b-256 88c8b6986cd3cc1c7ee4fe41a433c09133cc8efcc310fa04454610b3b60f8fbf

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