pertchart
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
Credits and References
- http://www.graphviz.org/pdf/dotguide.pdfbtree.pyFigure13
- https://stackoverflow.com/questions/35064304/runtimeerror-make-sure-the-graphviz-executables-are-on-your-systems-path-aft
- https://www.programcreek.com/python/example/104476/graphviz.Digraph
- https://graphviz.readthedocs.io/en/stable/examples.html#structs-py
Metadata
Release files for pertchart 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pertchart-0.5.1.tar.gz | 4.2 kB | Without provenance | Details for pertchart-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pertchart-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for pertchart-0.5.1-py3-none-any.whl |
Total release size: 9.3 kB
Release files / pertchart-0.5.1.tar.gz
| Download URL | pertchart-0.5.1.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b1175337e85ed96e501ca0cecc623cb280b00482b42504c3654c6bc03d0af265
|
|
BLAKE2b-256 checksum How to use checksums |
429f3f389c544e68c7874d811a644018fafa948e4f8758ffbea4a79119c4b928
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pertchart-0.5.1-py3-none-any.whl
| Download URL | pertchart-0.5.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a97636bfeb1a41ef74a4188a1125ef73483e6743da6933e2f382a2cc2618331f
|
|
BLAKE2b-256 checksum How to use checksums |
bdd8a1d64f82ff02d0777525d27806baf9d36561f2ae88150b0476017c3b41fd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pertchart 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.