The data of a given package type. This is the core model to store normalized package data parsed from package datafiles (such as a manifest) or stored in a top-level package.
| 546 | |
| 547 | @attr.attributes(slots=True) |
| 548 | class PackageData(IdentifiablePackageData): |
| 549 | """ |
| 550 | The data of a given package type. This is the core model to store normalized |
| 551 | package data parsed from package datafiles (such as a manifest) or stored in |
| 552 | a top-level package. |
| 553 | """ |
| 554 | |
| 555 | primary_language = String( |
| 556 | label='Primary programming language', |
| 557 | help='Primary programming language',) |
| 558 | |
| 559 | description = String( |
| 560 | label='Description', |
| 561 | help='Description for this package. ' |
| 562 | 'By convention the first should be a summary when available.') |
| 563 | |
| 564 | release_date = Date( |
| 565 | label='release date', |
| 566 | help='Release date of the package') |
| 567 | |
| 568 | parties = List( |
| 569 | item_type=Party, |
| 570 | label='parties', |
| 571 | help='A list of parties such as a person, project or organization.') |
| 572 | |
| 573 | keywords = List( |
| 574 | item_type=str, |
| 575 | label='keywords', |
| 576 | help='A list of keywords.') |
| 577 | |
| 578 | homepage_url = String( |
| 579 | label='homepage URL', |
| 580 | help='URL to the homepage for this package.') |
| 581 | |
| 582 | download_url = String( |
| 583 | label='Download URL', |
| 584 | help='A direct download URL.') |
| 585 | |
| 586 | size = Integer( |
| 587 | default=None, |
| 588 | label='download size', |
| 589 | help='size of the package download in bytes') |
| 590 | |
| 591 | sha1 = String( |
| 592 | label='SHA1 checksum', |
| 593 | help='SHA1 checksum for this package download in hexadecimal') |
| 594 | |
| 595 | md5 = String( |
| 596 | label='MD5 checksum', |
| 597 | help='MD5 checksum for this package download in hexadecimal') |
| 598 | |
| 599 | sha256 = String( |
| 600 | label='SHA256 checksum', |
| 601 | help='SHA256 checksum for this package download in hexadecimal') |
| 602 | |
| 603 | sha512 = String( |
| 604 | label='SHA512 checksum', |
| 605 | help='SHA512 checksum for this package download in hexadecimal') |