Actions
Idea #4137
closed[SDKs] arvados.collection.Manifest classes for manipulating collection manifests
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 recordManifestRecord.blocks
- a list of the blocks specified in this recordManifestRecord.files
- a list of the files specified in this recordManifestRecord.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)
- The output of
- 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 turnManifest.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)
- The output of
Updated by Tom Clegg over 9 years ago
- Target version changed from 2014-10-29 sprint to Arvados Future Sprints
Updated by Tom Clegg over 6 years ago
- Target version deleted (
Arvados Future Sprints)
Actions