Skip to main content

A package providing project management tools like NetworkDiagram and NetworkDiagramExporter.

Project description

PMTK: Project Management Toolkit

PMTK (Project Management Toolkit) is a Python library designed to simplify and automate project management tasks. The library provides tools for creating, analyzing, and exporting network diagrams used in project management methodologies such as Critical Path Method (CPM).


Features

  • Network Diagram Generation: Create a network diagram with detailed activity information, including start/end times, durations, and slack values.
  • Critical Path Analysis: Automatically identify and extract critical path activities (activities with zero slack).
  • Excel Export: Export the network diagram to a formatted Excel file for visualization and reporting.
  • Support for Multiple Levels of Precedence: Handles multiple levels of precedence relationships between project activities.

Installation

You can install PMTK from PyPI using pip:

pip install pmtk

Usage

1. Initialize a Network Diagram

The NetworkDiagram class processes your project activities and calculates critical path information. You need to provide a Pandas DataFrame with the following columns:

  • Activity: Main activities.
  • Duration: Duration of the main activities.
  • Activity.1, Duration.1: First level of precedence activities.
  • Activity.2, Duration.2: Second level of precedence activities.
  • Activity.3, Duration.3: Third level of precedence activities.

Example:

import pandas as pd
from pmtk import NetworkDiagram

# Example DataFrame
data = {
    'Activity': ['A', 'B'],
    'Duration': [5, 3],
    'Activity.1': ['C', 'D'],
    'Duration.1': [4, 2],
    'Activity.2': ['E', 'F'],
    'Duration.2': [3, 6],
    'Activity.3': ['G', 'H'],
    'Duration.3': [2, 1]
}
df = pd.DataFrame(data)

# Initialize and calculate the network diagram
nd = NetworkDiagram(df)
network_diagram = nd.get_network_diagram()
critical_path = nd.get_critical_path()

# Print the results
print("Network Diagram:")
print(network_diagram)
print("\nCritical Path:")
print(critical_path)

2. Export Network Diagram to Excel

The NetworkDiagramExporter class allows you to export the network diagram to a visually formatted Excel file.

Example:

from pmtk import NetworkDiagramExporter

# Initialize the exporter with the NetworkDiagram object
exporter = NetworkDiagramExporter(network_diagram=nd, filename="network_diagram.xlsx")

# Export to Excel
exporter.export()

print("Network diagram exported to 'network_diagram.xlsx'")

Requirements

  • Python 3.6 or higher
  • Pandas
  • XlsxWriter (for Excel export)

Contributing

We welcome contributions! If you have ideas, improvements, or bug fixes, please submit a pull request or open an issue.


License

This project is licensed under the MIT License.


Contact

For any questions or feedback, please reach out to the author:


This README provides a comprehensive overview of your library, including installation instructions, usage examples, and contact information. Let me know if you'd like any modifications!

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

pmtk-0.1.4.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pmtk-0.1.4-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file pmtk-0.1.4.tar.gz.

File metadata

  • Download URL: pmtk-0.1.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pmtk-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3856c82aff2130123758b63d486896742eabf93f555310e841e45988c43924c4
MD5 5f85da31c8ba33a503821207b923f0c8
BLAKE2b-256 f804d643772ed65fc1d30b7c0bd3f190fc611f72e06c42a7f9b85c7cdfb97bc9

See more details on using hashes here.

File details

Details for the file pmtk-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pmtk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.0

File hashes

Hashes for pmtk-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cb5f70b582e40b8d873ca9b860ede42a4cb47ebdfdcf5460e588f66757b918c7
MD5 0bb546adc1b1b9c9765e79f134ece70f
BLAKE2b-256 5fd383342e22a4c8efa5f991aebb450ccaddff46ab1e2c789efe12480307e438

See more details on using hashes here.

Supported by

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