original_docstring: A method to store the HTML document in *patronemptor-version2* bucket.
  
      This method takes a HTML document to be stored as input. Creates a uuid obj
      name for the same. It tries to create the S3 bucket and as the
      *s3_client.create_bucket* operation is idempotent, this will create the
      bucket if non-existent and no-op if exists. It stores the HTML document in
      the bucket, creates the object url as per AWS specification and returns the
      object URL.
  
      Parameters
      ----------
      html_doc: HTML document
          HTML document to be stored.
  
      Returns
      -------
      obj_url : str
          A url *https* string representing the S3 objects location.
      
docstring: A method to store the HTML document in *patronemptor-version2* bucket.
  This method takes a HTML document to be stored as input. Creates a uuid obj
  name for the same. It tries to create the S3 bucket and as the
  s3_client.create_bucket* operation is idempotent, this will create the
  bucket if non-existent and no-op if exists. It stores the HTML document in
  the bucket, creates the object url as per AWS specification and returns the
  object URL.
  
  Parameters
  
  HTML document
  HTML document to be stored.
  
  Returns
  
  obj_url : str
  A url *https* string representing the S3 objects location.
docstring_tokens: A method to store the HTML document in * patronemptor - version2 * bucket . This method takes a HTML document to be stored as input . Creates a uuid obj name for the same . It tries to create the S3 bucket and as the s3_client . create_bucket * operation is idempotent this will create the bucket if non - existent and no - op if exists . It stores the HTML document in the bucket creates the object url as per AWS specification and returns the object URL . Parameters HTML document HTML document to be stored . Returns obj_url : str A url * https * string representing the S3 objects location .
code: def store_to_s3(html_doc):
      """A method to store the HTML document in *patronemptor-version2* bucket.
  
      This method takes a HTML document to be stored as input. Creates a uuid obj
      name for the same. It tries to create the S3 bucket and as the
      *s3_client.create_bucket* operation is idempotent, this will create the
      bucket if non-existent and no-op if exists. It stores the HTML document in
      the bucket, creates the object url as per AWS specification and returns the
      object URL.
  
      Parameters
      ----------
      html_doc: HTML document
          HTML document to be stored.
  
      Returns
      -------
      obj_url : str
          A url *https* string representing the S3 objects location.
      """
      bucket = 'patronemptor-version2'
      obj = str(uuid.uuid4())
      try:
          s3_client.create_bucket(Bucket=bucket)
          s3_client.put_object(Body=html_doc, Bucket=bucket, Key=obj)
          obj_url = 'https://%s.s3.amazonaws.com/%s' % (bucket, obj)
          return obj_url
      except Exception as e:
          print ("ERROR: Could not store object %s to s3 bucket %s. Exception"
                 " %s" % (obj, bucket, str(e)))
          raise e
code_tokens: def store_to_s3 ( html_doc ) : bucket = 'patronemptor-version2' obj = str ( uuid . uuid4 ( ) ) try : s3_client . create_bucket ( Bucket = bucket ) s3_client . put_object ( Body = html_doc , Bucket = bucket , Key = obj ) obj_url = 'https://%s.s3.amazonaws.com/%s' % ( bucket , obj ) return obj_url except Exception as e : print ( "ERROR: Could not store object %s to s3 bucket %s. Exception" " %s" % ( obj , bucket , str ( e ) ) ) raise e
short_docstring: A method to store the HTML document in *patronemptor-version2* bucket.
short_docstring_tokens: A method to store the HTML document in * patronemptor - version2 * bucket .
comment: """A method to store the HTML document in *patronemptor-version2* bucket.
  
      This method takes a HTML document to be stored as input. Creates a uuid obj
      name for the same. It tries to create the S3 bucket and as the
      *s3_client.create_bucket* operation is idempotent, this will create the
      bucket if non-existent and no-op if exists. It stores the HTML document in
      the bucket, creates the object url as per AWS specification and returns the
      object URL.
  
      Parameters
      ----------
      html_doc: HTML document
          HTML document to be stored.
  
      Returns
      -------
      obj_url : str
          A url *https* string representing the S3 objects location.
      """