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.3.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.3-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmtk-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 608c6ba546695a7673c6a98f29df736a7156a344efd4578d204ed8d77a47d684
MD5 0ea34d4e2cea5d9ec2e84d5cf2b19479
BLAKE2b-256 712a0914fcd613fc1ed785d2ab44e0c8d32bc029ba52723a86ed55043df7aea6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pmtk-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e840b332187af369551c35a0ba8b63183012a5cc8a1866fd97e138729d499143
MD5 1c813a8f7aa4c4396a65837bad98c8a7
BLAKE2b-256 a73d842333d274dfc4d1ff2a8f5803318172c6e6fc0fdb345d3b98bfda43e69d

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