Skip to main content

PERT chart generator

Project description

pertchart

Build Status

The purpose of his application is to automatically generate pert chart from tasks in json file.

Installation

pip install pertchart

Usage

from pertchart import PertChart

pc = PertChart()
tasks = pc.getInput(path_to_inputfile)
pc.create_pert_chart(pc.calculate_values(tasks))

Example Input Data File

The data file contains task tuples one per line as in the following sample:

{
  "T1.1": {
    "Tid": "T1.1",
    "start": 0,
    "duration": 1,
    "end": 0,
    "responsible": "Responsible1",
    "pred": ["START"]
  },
  "T1.2": {
    "Tid": "T1.2",
    "start": 0,
    "duration": 3,
    "end": 0,
    "responsible": "Responsible2",
    "pred": ["T1.1"]
  },
  "T1.3": {
    "Tid": "T1.3",
    "start": 0,
    "duration": 3,
    "end": 0,
    "responsible": "Responsible3",
    "pred": ["T1.1"]
  },
  "T1.4": {
    "Tid": "T1.4",
    "start": 0,
    "duration": 2,
    "end": 0,
    "responsible": "Responsible4",
    "pred": ["T1.2"]
  },
  "T1.5": {
    "Tid": "T1.5",
    "start": 0,
    "duration": 2,
    "end": 0,
    "responsible": "Responsible5",
    "pred": ["T1.3"]
  },
  "T1.6": {
    "Tid": "T1.6",
    "start": 0,
    "duration": 1,
    "end": 0,
    "responsible": "Responsible6",
    "pred": ["T1.4"]
  },
  "T1.7": {
    "Tid": "T1.7",
    "start": 0,
    "duration": 3,
    "end": 0,
    "responsible": "Responsible7",
    "pred": ["START"]
  },
  "T1.8": {
    "Tid": "T1.8",
    "start": 0,
    "duration": 0,
    "end": 0,
    "responsible": "Responsible8",
    "pred": ["T1.5","T1.6","T1.7"]
  },
  "END": {
    "Tid": "END",
    "start": 0,
    "duration": 0,
    "end": 0,
    "responsible": "Responsible",
    "pred": ["T1.8"]
  }
}

Exacmple Output PERT chart for th eabove input data

PERT Output

Credits and References

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

pertchart-0.5.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

pertchart-0.5.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file pertchart-0.5.1.tar.gz.

File metadata

  • Download URL: pertchart-0.5.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for pertchart-0.5.1.tar.gz
Algorithm Hash digest
SHA256 b1175337e85ed96e501ca0cecc623cb280b00482b42504c3654c6bc03d0af265
MD5 795600be013f36257e43957cb1302886
BLAKE2b-256 429f3f389c544e68c7874d811a644018fafa948e4f8758ffbea4a79119c4b928

See more details on using hashes here.

File details

Details for the file pertchart-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: pertchart-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.9

File hashes

Hashes for pertchart-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a97636bfeb1a41ef74a4188a1125ef73483e6743da6933e2f382a2cc2618331f
MD5 ca4ce37e92a3c3a8fb1c16d56dd5382b
BLAKE2b-256 bdd8a1d64f82ff02d0777525d27806baf9d36561f2ae88150b0476017c3b41fd

See more details on using hashes here.

Supported by

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