Skip to main content

python gantt lib

This project is an extension of the python-gantt module, 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

  • Library: python-gantt see link
  • Author: Alexandre Norman (norman at xael.org)

Usage

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

project = gantt_lib.HiperLinkedProject(
                                      name='Project', 
                                      link='mypage/link/to/project',
                                      target='_self' #HTML target (it opens the link on the same page)
                                      )

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',
        target='_self' #HTML target (it opens the link on the same page)
    )
)

# 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)
        )

# Or you can get only the svg (str) code
svg = project.get_string_svg_for_tasks(
        today=datetime.date(2020,7,15), 
        start=datetime.date(2020,7,1), 
        end=datetime.date(2020,7,20)
)

Author

Lautaro Dapino

Version 0.0.5

  • Added targetfor the links.
  • Added new method for rendering the svginto strformat.

Metadata

Release files for gantt-lib-lautarodapin 0.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gantt-lib-lautarodapin 0.0.5
File Size Uploaded Provenance Actions
gantt-lib-lautarodapin-0.0.5.tar.gz 16.8 kB Without provenance Details for gantt-lib-lautarodapin-0.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gantt-lib-lautarodapin 0.0.5
File Interpreter ABI Platform Actions
gantt_lib_lautarodapin-0.0.5-py3-none-any.whl Python 3 none any Details for gantt_lib_lautarodapin-0.0.5-py3-none-any.whl

Total release size: 25.1 kB

Release files / gantt-lib-lautarodapin-0.0.5.tar.gz

Download URL gantt-lib-lautarodapin-0.0.5.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6714b4335fe0e9aca616f55310d6035782f4ad780fe3fcb8e7c95094ceca2783
BLAKE2b-256 checksum
How to use checksums
22fe496c11b54e4c3d4d74362661e1cfaddfbe5e947c863bc209c8ca76bfdcb5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / gantt_lib_lautarodapin-0.0.5-py3-none-any.whl

Download URL gantt_lib_lautarodapin-0.0.5-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0c780993c1b8a3c2b3efe85810c67d66fc14078d62fd1ef766ab2df9982de9b1
BLAKE2b-256 checksum
How to use checksums
e92f9fe039c07fdf39ad70896f079d750bb896501ed34f8277c3d4179b3fc643
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for gantt-lib-lautarodapin 0.0.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page