Skip to main content

Extension of `python-gantt` with added functionality for django

Project description

python gantt lib

This project is an extension of the python-ganttmodule, providing some extra functionality. This includes some translation to spanish of the days and months, new classes for add hyperlinks to the tasks and projects, and svg in format string for using it as context in Django lib.

Instalation

Run the following to install:

pip install gantt-lib-lautarodapin

Aditional requirements

  • python-gantt see https://pypi.org/project/python-gantt/
  • Author: Alexandre Norman (norman at xael.org)

Usage

import gantt_lib
resource = gantt_lib.Resource("Resource 1")

project = gantt_lib.HiperLinkedProject(name='Project', link='mypage/link/to/project')

project.add_task(gantt_lib.HyperLinkedTask(
    name= 'task 1',
        start=datetime.datetime.date(2020,7,1),
        duration=5,
        resources=[resource],
        percent_done=0,
        color="#03d529",
        link_name='mypage/link/to/title,
        link_resource='mypage/link/to/resource,
        link_lateral='mypage/link/to/extra
    )
)

# make_svg_for_task returns the xml code in string format, this way you can use it as context in django or flask
# also saves it into a file
svg = project.make_svg_for_tasks(
        'file.svg', 
        today=datetime.date(2020,7,15), 
        start=datetime.date(2020,7,1), 
        end=datetime.date(2020,7,20)
        )

Author

Lautaro Dapino

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

gantt-lib-lautarodapin-0.0.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

gantt_lib_lautarodapin-0.0.3-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file gantt-lib-lautarodapin-0.0.3.tar.gz.

File metadata

  • Download URL: gantt-lib-lautarodapin-0.0.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for gantt-lib-lautarodapin-0.0.3.tar.gz
Algorithm Hash digest
SHA256 915af290e97798403cd18d286981d1d796d0ef0f3e082315282cb0bc052fa616
MD5 7df876ae3742f90dd04f13990e24264a
BLAKE2b-256 a747cc29ef338b795f888e6c0fd24dabdf949a8cb13e79f59cc8b5ecf32be2a9

See more details on using hashes here.

File details

Details for the file gantt_lib_lautarodapin-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gantt_lib_lautarodapin-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4

File hashes

Hashes for gantt_lib_lautarodapin-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d915ac3877b25f4fd08ff6641ea7b1b6c9b49d0bc18c734bc6ca923c11eb631a
MD5 d14cce1aaa339fb5ccccead557565815
BLAKE2b-256 a3cfb71b236f4174bc725b5158f957a593a73f110b8d81f81e6afc6bf5d81efd

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