Skip to main content

Python library for plan projects

Project description

pjplan: Python library for project planning and analysis

What is it?

pjplan turns your Jupyter Notebook into project management software. This Python package gives you a simple API with following features:

  • Describe Work Burn-down Structure (WBS) of your project in code or load it from external source.
  • Manipulate tasks: link them as successors/predecessors, find, delete, reorder, etc. A lot of batch operations are supported via simple commands.
  • Assign resources and estimates to tasks
  • Define work calendars for each resource
  • Calculate project schedule in several ways
  • Find critical path
  • Visualize WBS as Gantt or Network diagram
  • Save/Load your WBS to/from csv files
  • Export WBS to pandas

Why to use it?

There are several use cases for pjplan:

  • Work with project plan as code with your favourite IDE, VSC, etc.
  • Load tasks data from your tracker (Jira, Asure Devops, Trello, etc.) to pjplan, link/modify/reorder/delete tasks using rich pjplan API, then create schedule and Gantt for them.
  • Create several schedules for same project and find optimal one.

Where to use it?

pjplan created specially for use inside Jupyter Notebook or similar software. All library objects (WBS, Task, Schedule, Calendar) have great visualisations so you can easily work with them in notebooks.

But, of course, you can use pjplan in any other python applications.

Installation

pip install pjplan

Getting started

Let's define simple project WBS:

from pjplan import WBS, Task

with WBS() as prj:
    prj // Task(1, 'Task 1', estimate=40, resource_name='Developer')
    prj // Task(2, 'Task 2', predecessors=[prj[1]], estimate=20, resource_name='Developer')
    with prj // Task(3, 'Task 3') as t3:
        t3 // Task(4, 'Task 4', predecessors=[prj[2]], estimate=100, resource_name='Tester')
        t3 // Task(5, 'Task 5', predecessors=[prj[2]], estimate=50, resource_name='Tester')

Let's define resources:

from pjplan import Resource, WeeklyCalendar

work_calendar = WeeklyCalendar(days=[0,1,2,3,4], units_per_day=8)

developer = Resource(name='Developer', calendar=work_calendar)
tester = Resource(name='Tester', calendar=work_calendar)

Now we can create schedule for our project:

from datetime import datetime
from pjplan import ForwardScheduler

schedule = ForwardScheduler(
    start=datetime.now(), 
    resources=[developer, tester]
).calc(prj)

visualise it as Mermaid Gantt:

from pjplan import MermaidGantt

MermaidGantt(schedule.schedule)

Mermaid Gantt

or Network:

from pjplan import MermaidNetwork

MermaidNetwork(schedule.schedule)

Mermaid Network

save schedule to csv:

from pjplan import write_csv

write_csv(schedule.schedule, "schedule.csv")

More examples

More examples you can find at examples directory.

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

pjplan-0.0.14.tar.gz (168.3 kB view details)

Uploaded Source

Built Distribution

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

pjplan-0.0.14-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file pjplan-0.0.14.tar.gz.

File metadata

  • Download URL: pjplan-0.0.14.tar.gz
  • Upload date:
  • Size: 168.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pjplan-0.0.14.tar.gz
Algorithm Hash digest
SHA256 e2400bdf3ab37ef732c294c23c5ce39dcb736b986903514d67060a87f3004e05
MD5 4f2e9291709047a3b9f00f9703d4a976
BLAKE2b-256 d59dcf390350f08691cdd1a05d11e83d62dc559f22832dd508162d7b3966f601

See more details on using hashes here.

File details

Details for the file pjplan-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: pjplan-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for pjplan-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 7ed67cc7e53dcd640838cbf37875cd414d17024ed51b61678ffd80a0bb2ec8df
MD5 9f618f83affd8829774beb6ce48427fd
BLAKE2b-256 21b8913acb9afe77088b965d00c5e7f8e397e0dbb83762977f94a7266ed77e7c

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