Skip to main content

Write a json's GPAO file

Project description

IGN GPAO Project Builder

IGN GPAO Project Builder is a basic a builder for Json's GPAO project

Installation

You can install the IGN GPAO Project Builder from PyPI:

python -m pip install ign-gpao-project-builder

How to use

IGN GPAO Project Builder is a small library named ign-gpao-project-builder

from gpao.builder import Builder
from gpao.project import Project
from gpao.job import Job

job1 = Job("job1", "touch file", tags=["tag1", "tag2"])
job2 = Job("job2", "touch file")
job3 = Job("job3", "touch file", job1, tags=["tag1", "tag2"])
job3.add_dependency(job2)

# print(job1.to_json())
# print(job2.to_json())
# print(job3.to_json())

project1 = Project("project1", [job1, job2, job3])
# print(project1.to_json())

job4 = Job("job4", "touch file")
job5 = Job("job5", "touch file")
job5.add_dependency(job4)

project2 = Project("project2", [job4, job5])

#print(project2.to_json())

job6 = Job("job6", "touch file")
job7 = Job("job7", "touch file", job6)
project3 = Project("project3", [job6, job7], [project1, project2])

#print(project3.to_json())

builder = Builder([project1, project2])
builder.add_project(project3)

builder.save_as_json("project.json")

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

ign-gpao-project-builder-0.6.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

ign_gpao_project_builder-0.6.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file ign-gpao-project-builder-0.6.0.tar.gz.

File metadata

File hashes

Hashes for ign-gpao-project-builder-0.6.0.tar.gz
Algorithm Hash digest
SHA256 06c9f24a8a49f8211f5ab755b93047ee0d795754e4374ecc7081e3f73a913204
MD5 0e411ea64fa2a1c6d4e19af78814811a
BLAKE2b-256 dbaca3778127271f18f91c80e98cf37646105908577ac917df9bb4972431bdb8

See more details on using hashes here.

File details

Details for the file ign_gpao_project_builder-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ign_gpao_project_builder-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 75090b86bd0c31215c65c0a233c842e8eecd3680a2d182b65cad9e8838078738
MD5 3a942608a2a792ffcc8bf41e83929d40
BLAKE2b-256 332e451f749e248b946933d2ddbcc990f69529e38cc15b752cdcfd8d0207ee77

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