class_docstr: !
  @brief Package builder provides service to create 'pyclustering_package' from data that is stored in 'list' container.
class_docstr_tok: ["!","@","brief","Package","builder","provides","service","to","create","'pyclustering_package","'","from","data","that","is","stored","in","'list","'","container","."]
docstr: !
  @brief Initialize package builder object by dataset.
  @details String data is packed as it is without encoding. If string encoding is required then it should be
            provided already encoded, for example in case of `utf-8`:
  @code
      encoded_string = "String to pack".encode('utf-8')
      pyclustering_package = package_builder(encoded_string)
  @endcode
  
  @param[in] dataset (list): Data that should be packed in 'pyclustering_package'.
  @param[in] c_data_type (ctype.type): C-type data that is used to store data in the package.
docstr_tok: ["!","@","brief","Initialize","package","builder","object","by","dataset",".","@","details","String","data","is","packed","as","it","is","without","encoding",".","If","string","encoding","is","required","then","it","should","be","provided","already","encoded",",","for","example","in","case","of","`","utf-8","`",":","@","code","encoded_string","=","``","String","to","pack","''",".encode","(","'utf-8","'",")","pyclustering_package","=","package_builder","(","encoded_string",")","@","endcode","@","param","[","in","]","dataset","(","list",")",":","Data","that","should","be","packed","in","'pyclustering_package","'",".","@","param","[","in","]","c_data_type","(","ctype.type",")",":","C-type","data","that","is","used","to","store","data","in","the","package","."]
code: def __init__(self, dataset, c_data_type=None):
      """!
      @brief Initialize package builder object by dataset.
      @details String data is packed as it is without encoding. If string encoding is required then it should be
                provided already encoded, for example in case of `utf-8`:
      @code
          encoded_string = "String to pack".encode('utf-8')
          pyclustering_package = package_builder(encoded_string)
      @endcode
  
      @param[in] dataset (list): Data that should be packed in 'pyclustering_package'.
      @param[in] c_data_type (ctype.type): C-type data that is used to store data in the package.
  
      """
      self.__dataset = dataset
      self.__c_data_type = c_data_type
  
imports: from ctypes import *
  import collections.abc
  import numpy
label_desc: Use image node_id 1 to create a new package_builder object  with example: obj = package_builder(dataset, c_data_type)