original_docstring: Generates a tableau extract file from tableau datasource file
  
          Default behaviour is to place the files in the same folder as the tds
          files unless output_dir is specified
  
          Parameters
          ----------
          tds_file_name: str
              tableau datasource file name / path
          collation: str
              default column collation (default: "en_us_ci")
  
          Raises
          ------
          WriterException
              when not able to read/write datasource/extract file
              when not able to process tableau data table
  
          Note
          ----
          Following are considered valid collation values:
  
          * ar          - Internal binary representation
          * binary      - Arabic
          * cs          - Czech
          * cs_ci       - Czech (Case Insensitive)
          * cs_ci_ai    - Czech (Case/Accent Insensitive
          * da          - Danish
          * de          - German
          * el          - Greek
          * en_gb       - English (Great Britain)
          * en_us       - English (US)
          * en_us_ci    - English (US, Case Insensitive)
          * es          - Spanish
          * es_ci_ai    - Spanish (Case/Accent Insensitive)
          * et          - Estonian
          * fi          - Finnish
          * fr_ca       - French (Canada)
          * fr_fr       - French (France)
          * fr_fr_ci_ai - French (France, Case/Accent Insensitive)
          * he          - Hebrew
          * hu          - Hungarian
          * is          - Icelandic
          * it          - Italian
          * ja          - Japanese
          * ja_jis      - Japanese (JIS)
          * ko          - Korean
          * lt          - Lithuanian
          * lv          - Latvian
          * nl_nl       - Dutch (Netherlands)
          * nn          - Norwegian
          * pl          - Polish
          * pt_br       - Portuguese (Brazil)
          * pt_br_ci_ai - Portuguese (Brazil Case/Accent Insensitive)
          * pt_pt       - Portuguese (Portugal)
          * root        - Root
          * ru          - Russian
          * sl          - Slovenian
          * sv_fi       - Swedish (Finland)
          * sv_se       - Swedish (Sweden)
          * tr          - Turkish
          * uk          - Ukrainian
          * vi          - Vietnamese
          * zh_hans_cn  - Chinese (Simplified, China)
          * zh_hant_tw  - Chinese (Traditional, Taiwan)
          
docstring: Generates a tableau extract file from tableau datasource file
  Default behaviour is to place the files in the same folder as the tds
  files unless output_dir is specified
  
  Parameters
  
  str
  tableau datasource file name / path
  collation: str
  default column collation (default: "en_us_ci")
  
  Raises
  
  WriterException
  when not able to read/write datasource/extract file
  when not able to process tableau data table
  
  Note
  
  Following are considered valid collation values.
  
  
docstring_tokens: Generates a tableau extract file from tableau datasource file Default behaviour is to place the files in the same folder as the tds files unless output_dir is specified Parameters str tableau datasource file name / path collation : str default column collation ( default : " en_us_ci " ) Raises WriterException when not able to read / write datasource / extract file when not able to process tableau data table Note Following are considered valid collation values .
code: def generate_from_tds(self,
                            tds_file_name,
                            collation='en_us_ci'):
          """Generates a tableau extract file from tableau datasource file
  
          Default behaviour is to place the files in the same folder as the tds
          files unless output_dir is specified
  
          Parameters
          ----------
          tds_file_name: str
              tableau datasource file name / path
          collation: str
              default column collation (default: "en_us_ci")
  
          Raises
          ------
          WriterException
              when not able to read/write datasource/extract file
              when not able to process tableau data table
  
          Note
          ----
          Following are considered valid collation values:
  
          * ar          - Internal binary representation
          * binary      - Arabic
          * cs          - Czech
          * cs_ci       - Czech (Case Insensitive)
          * cs_ci_ai    - Czech (Case/Accent Insensitive
          * da          - Danish
          * de          - German
          * el          - Greek
          * en_gb       - English (Great Britain)
          * en_us       - English (US)
          * en_us_ci    - English (US, Case Insensitive)
          * es          - Spanish
          * es_ci_ai    - Spanish (Case/Accent Insensitive)
          * et          - Estonian
          * fi          - Finnish
          * fr_ca       - French (Canada)
          * fr_fr       - French (France)
          * fr_fr_ci_ai - French (France, Case/Accent Insensitive)
          * he          - Hebrew
          * hu          - Hungarian
          * is          - Icelandic
          * it          - Italian
          * ja          - Japanese
          * ja_jis      - Japanese (JIS)
          * ko          - Korean
          * lt          - Lithuanian
          * lv          - Latvian
          * nl_nl       - Dutch (Netherlands)
          * nn          - Norwegian
          * pl          - Polish
          * pt_br       - Portuguese (Brazil)
          * pt_br_ci_ai - Portuguese (Brazil Case/Accent Insensitive)
          * pt_pt       - Portuguese (Portugal)
          * root        - Root
          * ru          - Russian
          * sl          - Slovenian
          * sv_fi       - Swedish (Finland)
          * sv_se       - Swedish (Sweden)
          * tr          - Turkish
          * uk          - Ukrainian
          * vi          - Vietnamese
          * zh_hans_cn  - Chinese (Simplified, China)
          * zh_hant_tw  - Chinese (Traditional, Taiwan)
          """
  
          try:
              tds_reader = TDSReader()
              tds_reader.read(tds_file_name)
  
              output_path = self.get_output_path(tds_file_name)
              self.check_file_writable(output_path)
              new_extract = Extract(output_path)
  
              collation = self._collation_map[collation]
              table_definition = self._define_table(tds_reader, collation)
  
              new_extract.addTable('Extract', tableDefinition=table_definition)
  
              new_extract.close()
              table_definition.close()
          except ReaderException as err:
              raise_with_traceback(WriterException(err))
          except TableauException:
              raise_with_traceback(WriterException(GetLastErrorMessage()))
code_tokens: def generate_from_tds ( self , tds_file_name , collation = 'en_us_ci' ) : try : tds_reader = TDSReader ( ) tds_reader . read ( tds_file_name ) output_path = self . get_output_path ( tds_file_name ) self . check_file_writable ( output_path ) new_extract = Extract ( output_path ) collation = self . _collation_map [ collation ] table_definition = self . _define_table ( tds_reader , collation ) new_extract . addTable ( 'Extract' , tableDefinition = table_definition ) new_extract . close ( ) table_definition . close ( ) except ReaderException as err : raise_with_traceback ( WriterException ( err ) ) except TableauException : raise_with_traceback ( WriterException ( GetLastErrorMessage ( ) ) )
short_docstring: Generates a tableau extract file from tableau datasource file
  Default behaviour is to place the files in the same folder as the tds
  files unless output_dir is specified
short_docstring_tokens: Generates a tableau extract file from tableau datasource file Default behaviour is to place the files in the same folder as the tds files unless output_dir is specified
comment: """Generates a tableau extract file from tableau datasource file
  
          Default behaviour is to place the files in the same folder as the tds
          files unless output_dir is specified
  
          Parameters
          ----------
          tds_file_name: str
              tableau datasource file name / path
          collation: str
              default column collation (default: "en_us_ci")
  
          Raises
          ------
          WriterException
              when not able to read/write datasource/extract file
              when not able to process tableau data table
  
          Note
          ----
          Following are considered valid collation values:
  
          * ar          - Internal binary representation
          * binary      - Arabic
          * cs          - Czech
          * cs_ci       - Czech (Case Insensitive)
          * cs_ci_ai    - Czech (Case/Accent Insensitive
          * da          - Danish
          * de          - German
          * el          - Greek
          * en_gb       - English (Great Britain)
          * en_us       - English (US)
          * en_us_ci    - English (US, Case Insensitive)
          * es          - Spanish
          * es_ci_ai    - Spanish (Case/Accent Insensitive)
          * et          - Estonian
          * fi          - Finnish
          * fr_ca       - French (Canada)
          * fr_fr       - French (France)
          * fr_fr_ci_ai - French (France, Case/Accent Insensitive)
          * he          - Hebrew
          * hu          - Hungarian
          * is          - Icelandic
          * it          - Italian
          * ja          - Japanese
          * ja_jis      - Japanese (JIS)
          * ko          - Korean
          * lt          - Lithuanian
          * lv          - Latvian
          * nl_nl       - Dutch (Netherlands)
          * nn          - Norwegian
          * pl          - Polish
          * pt_br       - Portuguese (Brazil)
          * pt_br_ci_ai - Portuguese (Brazil Case/Accent Insensitive)
          * pt_pt       - Portuguese (Portugal)
          * root        - Root
          * ru          - Russian
          * sl          - Slovenian
          * sv_fi       - Swedish (Finland)
          * sv_se       - Swedish (Sweden)
          * tr          - Turkish
          * uk          - Ukrainian
          * vi          - Vietnamese
          * zh_hans_cn  - Chinese (Simplified, China)
          * zh_hant_tw  - Chinese (Traditional, Taiwan)
          """