text: # !/usr/bin/env python3
  from .Classification import Classification
  
  class Drug:
  
      def __init__(self):
          self.primary_id = None
          self.other_ids = []
          self.name = ''
          self.description = ''
          self.indication = ''
          self.pharmacodynamics = ''
          self.classification = Classification()
          self.synonyms = []
          self.international_brands = []
          self.categories = []
          self.sequences = []
          self.molecular_weight = ''
          self.molecular_formula = ''
          self.pathways_drugs = []
          self.pathways_enzymes = []
          self.atc_codes = []
  
      def __init__(self, primary_id, other_ids, name, description, indication,
                   pharmacodynamics, classification, synonyms, international_brands,
                   categories, sequences, molecular_weight, molecular_formula, pathways_drugs, pathways_enzymes, atc_codes):
          self.primary_id = primary_id
          self.other_ids = other_ids
          self.name = name
          self.description = description
          self.indication = indication
          self.pharmacodynamics = pharmacodynamics
          self.classification = classification
          self.synonyms = synonyms
          self.international_brands = international_brands
          self.categories = categories
          self.sequences = sequences
          self.molecular_weight = molecular_weight
          self.molecular_formula = molecular_formula
          self.pathways_drugs = pathways_drugs
          self.pathways_enzymes = pathways_enzymes
          self.atc_codes = atc_codes
  
  
      def add_classificaion(self, classification):
          self.classification = classification
  
      def printout(self):
          print ('--------Drug:--------')
          print ('Primary id: ' + self.primary_id)
          print ('Other ids: ')
          for ids in self.other_ids: print ('\t> '+ ids)
          print ('Name: ' + self.name)
          print ('Description: ' + self.description)
          print ('Indication: ' + self.indication)
          print ('Pharmacodynamics: ' + self.pharmacodynamics)
          self.classification.printout()
          print ('Synonyms: ')
          for syn in self.synonyms: print ('\t> '+ syn)
          print ('International brands: ')
          for ib in self.international_brands: print ('\t> '+ ib)
          print ('Categories: ')
          for ct in self.categories: print ('\t> '+ ct)
          print ('Sequences: ')
          for seq in self.sequences: seq.printout()
          #print ('Molecular weight: %f' %self.molecular_weight)
          print ('Molecular weight: ' + str(self.molecular_weight))
          print ('Molecular formula: ' + self.molecular_formula)
          print ('Pathways drugs: ')
          for pt in self.pathways_drugs: print ('\t> '+ pt)
          print ('Pathways enzymes: ')
          for ept in self.pathways_enzymes: print ('\t> '+ ept)
          # print ('ATC code: ' + self.atc_code)
          print ('ATC codes: ')
          for cd in self.atc_codes: print ('\t> '+ cd)
          print ('\n----------------\n')
  