Skip to main content

A package providing project management tools like NetworkDiagram and NetworkDiagramExporter.

Project description

Here’s a suggested README.md file for your project based on the code you shared:


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.1.tar.gz (7.2 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.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pmtk-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 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.1.tar.gz
Algorithm Hash digest
SHA256 7f5506576bcb93129d4803259c8f2c8a766a8ae64c14fbe899cc2563611516cf
MD5 f0369b1f3b746e58b1c8b1276852cfbd
BLAKE2b-256 1cd0be1a5491a3075ab55841d1ab6d790a99114b52ea5561b263ba65b34aef85

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pmtk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 594fec6051f652f5874eb57bdbc0e8c57c2fdcbc62311f264df35d01263f2396
MD5 1d7aaff9d3a2b841bccec70cbe402815
BLAKE2b-256 3188533179acb424ce58dad296359e30ac893990096cb886c16f7bbd59ef80ad

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