Project

General

Profile

Actions

Idea #4137

closed

[SDKs] arvados.collection.Manifest classes for manipulating collection manifests

Added by Tim Pierce over 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assigned To:
-
Category:
SDKs
Target version:
-
Start date:
10/08/2014
Due date:
Story points:
2.0

Description

The Python SDK should provide arvados.collection.Manifest and arvados.collection.ManifestRecord classes for processing collection manifests.

All Python code that builds or parses a collection manifest should use these classes.

The APIs for these classes should include:
  • arvados.collection.ManifestRecord
    • A constructor that parses a string into a ManifestRecord
    • ManifestRecord.stream - the stream name supplied in this record
    • ManifestRecord.blocks - a list of the blocks specified in this record
    • ManifestRecord.files - a list of the files specified in this record
    • ManifestRecord.str() - returns the record serialized into a string (no newline)
      • The output of ManifestRecord(foo).str() should be guaranteed to be identical to foo (with the exception that whitespace is normalized to one space between words)
  • arvados.collection.Manifest
    • A constructor that produces a Manifest class from a raw string (i.e. the manifest_text in the database).
    • Manifest.records() an iterator that returns each ManifestRecord in this manifest in turn
    • Manifest.str() returns the full manifest as a string
      • The output of Manifest(foo).str() is guaranteed to be identical to foo (with the exception that whitespace is normalized to one space between words)
Actions #1

Updated by Tom Clegg over 9 years ago

  • Target version changed from 2014-10-29 sprint to Arvados Future Sprints
Actions #2

Updated by Tom Clegg over 6 years ago

  • Status changed from New to Closed
Actions #3

Updated by Tom Clegg over 6 years ago

  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF