Package magma :: Package magma :: Module create_simple_magma_list :: Class Magma
[hide private]
[frames] | no frames]

Class Magma

source code

A Simple Magma object created from a list of input file paths.

Instance Methods [hide private]
 
__init__(self, inputfilenames, *args, **kwds)
A Simple Magma object created from a list of input file paths.
source code
 
data(self)
Get the Python data of the Magma file (a dict).
source code
 
magma(self)
Dump the yaml representation of the file with a MAGMA header as string.
source code
Instance Variables [hide private]
  filenames
The names of the files.
  sha1
Sha1 values to the files.
Method Details [hide private]

__init__(self, inputfilenames, *args, **kwds)
(Constructor)

source code 

A Simple Magma object created from a list of input file paths.

Parameters:
  • inputfilenames (List) - The paths to the files to hash.

data(self)

source code 

Get the Python data of the Magma file (a dict).

Returns:
The data of the Magma file as Python dict.

magma(self)

source code 

Dump the yaml representation of the file with a MAGMA header as string.

Returns:
A string representation of the Magma file (in yaml format).

Instance Variable Details [hide private]

sha1

Sha1 values to the files. The sha1 gets computed for each one here, so this isn't ambigous.