Public Member Functions | Public Attributes | List of all members
generate-manifest.ProductDepsReader Class Reference

Public Member Functions

def __init__ (self, name)
 
def read (self, header, trailer, usecols=None)
 
def read_qualifiers (self)
 
def read_products (self)
 

Public Attributes

 name
 

Detailed Description

Definition at line 7 of file generate-manifest.py.

Constructor & Destructor Documentation

def generate-manifest.ProductDepsReader.__init__ (   self,
  name 
)

Definition at line 8 of file generate-manifest.py.

8  def __init__(self, name):
9  self.name=name
10 
11 

Member Function Documentation

def generate-manifest.ProductDepsReader.read (   self,
  header,
  trailer,
  usecols = None 
)

Definition at line 12 of file generate-manifest.py.

12  def read(self, header,trailer, usecols=None):
13  lines=StringIO()
14  with open(self.name) as input_data:
15  for line in input_data:
16  if line.strip().startswith(header):
17  break
18  lines.write(line)
19 
20  for line in input_data:
21  if line.strip().startswith(trailer):
22  break
23  lines.write(line)
24 
25  lines.seek(0)
26 
27  return pd.read_csv(lines, delimiter=r"\s+",usecols=usecols)
28 
29 
int open(const char *, int)
Opens a file descriptor.
def read(self, header, trailer, usecols=None)
def generate-manifest.ProductDepsReader.read_products (   self)

Definition at line 34 of file generate-manifest.py.

34  def read_products(self):
35  return self.read('product','end_product_list',range(3))
36 
37 
def read(self, header, trailer, usecols=None)
def generate-manifest.ProductDepsReader.read_qualifiers (   self)

Definition at line 30 of file generate-manifest.py.

30  def read_qualifiers(self):
31  return self.read('qualifier','end_qualifier_list')
32 
33 
def read(self, header, trailer, usecols=None)

Member Data Documentation

generate-manifest.ProductDepsReader.name

Definition at line 9 of file generate-manifest.py.


The documentation for this class was generated from the following file: