swh.model package#
Subpackages#
Submodules#
- swh.model.cli module
- swh.model.collections module
- swh.model.discovery module
- swh.model.exceptions module
- swh.model.from_disk module
- swh.model.git_objects module
content_git_object()
directory_entry_sort_key()
escape_newlines()
format_date()
normalize_timestamp()
directory_git_object()
format_git_object_from_headers()
format_git_object_from_parts()
format_author_data()
revision_git_object()
target_type_to_git()
release_git_object()
snapshot_git_object()
raw_extrinsic_metadata_git_object()
extid_git_object()
- swh.model.hashutil module
- swh.model.hypothesis_strategies module
optional()
pgsql_text()
sha1_git()
sha1()
binaries_without_bytes()
extended_swhids()
aware_datetimes()
iris()
persons_d()
persons()
timestamps_d()
timestamps()
timestamps_with_timezone_d()
origins_d()
origins()
origin_visits_d()
origin_visits()
metadata_dicts()
origin_visit_statuses_d()
origin_visit_statuses()
releases_d()
releases()
revision_metadata()
extra_headers()
revisions_d()
revisions()
directory_entries_d()
directory_entries()
directories_d()
directories()
contents_d()
contents()
present_contents_d()
present_contents()
skipped_contents_d()
skipped_contents()
branch_names()
snapshot_targets_object_d()
branch_targets_object_d()
snapshot_targets_alias_d()
branch_targets_alias_d()
snapshot_targets_d()
branch_targets_d()
snapshot_targets()
snapshots_d()
snapshots()
metadata_authorities()
metadata_fetchers()
raw_extrinsic_metadata()
raw_extrinsic_metadata_d()
objects()
object_dicts()
- swh.model.identifiers module
- swh.model.merkle module
- swh.model.model module
MissingData
KeyType
hash_repr()
parents_repr()
freeze_optional_dict()
dictify()
generic_type_validator()
optimized_validator()
optimize_all_validators()
ModelObjectType
ModelObjectType.CONTENT
ModelObjectType.DIRECTORY
ModelObjectType.DIRECTORY_ENTRY
ModelObjectType.EXTID
ModelObjectType.METADATA_AUTHORITY
ModelObjectType.METADATA_FETCHER
ModelObjectType.ORIGIN
ModelObjectType.ORIGIN_VISIT
ModelObjectType.ORIGIN_VISIT_STATUS
ModelObjectType.PERSON
ModelObjectType.RAW_EXTRINSIC_METADATA
ModelObjectType.RELEASE
ModelObjectType.REVISION
ModelObjectType.SKIPPED_CONTENT
ModelObjectType.SNAPSHOT
ModelObjectType.SNAPSHOT_BRANCH
ModelObjectType.TIMESTAMP
ModelObjectType.TIMESTAMP_WITH_TIMEZONE
BaseModel
BaseHashableModel
HashableObject
HashableObjectWithManifest
Person
Timestamp
TimestampWithTimezone
TimestampWithTimezone.object_type
TimestampWithTimezone.timestamp
TimestampWithTimezone.offset_bytes
TimestampWithTimezone.from_numeric_offset()
TimestampWithTimezone.from_dict()
TimestampWithTimezone.from_datetime()
TimestampWithTimezone.to_datetime()
TimestampWithTimezone.from_iso8601()
TimestampWithTimezone.offset_minutes()
Origin
OriginVisit
OriginVisitStatus
OriginVisitStatus.object_type
OriginVisitStatus.origin
OriginVisitStatus.visit
OriginVisitStatus.date
OriginVisitStatus.status
OriginVisitStatus.snapshot
OriginVisitStatus.type
OriginVisitStatus.metadata
OriginVisitStatus.check_date()
OriginVisitStatus.unique_key()
OriginVisitStatus.origin_swhid()
OriginVisitStatus.snapshot_swhid()
SnapshotTargetType
TargetType
ReleaseTargetType
ObjectType
SnapshotBranch
Snapshot
Release
RevisionType
tuplify_extra_headers()
Revision
Revision.object_type
Revision.message
Revision.author
Revision.committer
Revision.date
Revision.committer_date
Revision.type
Revision.directory
Revision.synthetic
Revision.metadata
Revision.parents
Revision.id
Revision.extra_headers
Revision.raw_manifest
Revision.check_author()
Revision.check_committer()
Revision.from_dict()
Revision.swhid()
Revision.directory_swhid()
Revision.parent_swhids()
Revision.anonymize()
DirectoryEntry
Directory
BaseContent
Content
Content.object_type
Content.sha1
Content.sha1_git
Content.sha256
Content.blake2s256
Content.length
Content.status
Content.data
Content.get_data
Content.ctime
Content.check_length()
Content.check_ctime()
Content.to_dict()
Content.from_data()
Content.from_dict()
Content.with_data()
Content.unique_key()
Content.swhid()
SkippedContent
SkippedContent.object_type
SkippedContent.sha1
SkippedContent.sha1_git
SkippedContent.sha256
SkippedContent.blake2s256
SkippedContent.length
SkippedContent.status
SkippedContent.reason
SkippedContent.origin
SkippedContent.ctime
SkippedContent.check_reason()
SkippedContent.check_length()
SkippedContent.check_ctime()
SkippedContent.to_dict()
SkippedContent.from_data()
SkippedContent.from_dict()
SkippedContent.unique_key()
SkippedContent.swhid()
MetadataAuthorityType
MetadataAuthority
MetadataFetcher
normalize_discovery_date()
RawExtrinsicMetadata
RawExtrinsicMetadata.object_type
RawExtrinsicMetadata.target
RawExtrinsicMetadata.discovery_date
RawExtrinsicMetadata.authority
RawExtrinsicMetadata.fetcher
RawExtrinsicMetadata.format
RawExtrinsicMetadata.metadata
RawExtrinsicMetadata.origin
RawExtrinsicMetadata.visit
RawExtrinsicMetadata.snapshot
RawExtrinsicMetadata.release
RawExtrinsicMetadata.revision
RawExtrinsicMetadata.path
RawExtrinsicMetadata.directory
RawExtrinsicMetadata.id
RawExtrinsicMetadata.check_origin()
RawExtrinsicMetadata.check_visit()
RawExtrinsicMetadata.check_snapshot()
RawExtrinsicMetadata.check_release()
RawExtrinsicMetadata.check_revision()
RawExtrinsicMetadata.check_path()
RawExtrinsicMetadata.check_directory()
RawExtrinsicMetadata.to_dict()
RawExtrinsicMetadata.from_dict()
RawExtrinsicMetadata.swhid()
ExtID
- swh.model.swhids module
- swh.model.toposort module
- swh.model.validators module