new_contents: #!/usr/bin/env python3
  # -*- coding: utf-8 -*-
  
  #################################################################
  # Install the Python requests library: pip install requests
  # http://docs.python-requests.org/en/master/user/quickstart/
  #################################################################
  
  # https://docs.gitlab.com/ee/api/index.html#personalproject-access-tokens
  
  # dict_keys(['id', 'iid', 'project_id', 'title', 'description', 'state', 'created_at', 'updated_at', 'closed_at', 'closed_by', 'labels', 'milestone', 'assignees', 'author', 'type', 'assignee', 'user_notes_count', 'merge_requests_count', 'upvotes', 'downvotes', 'due_date', 'confidential', 'discussion_locked', 'issue_type', 'web_url', 'time_stats', 'task_completion_status', 'blocking_issues_count', 'has_tasks', 'task_status', '_links', 'references', 'moved_to_id', 'service_desk_reply_to'])
  
  import requests
  import json
  
  with open("NOTION_SECRET_TOKEN", "r") as fd:
      NOTION_TOKEN = fd.read().strip()
  
  with open("NOTION_DB_ID", "r") as fd:
      NOTION_DB_ID = fd.read().strip()
  
  
  REQUEST_URL = f"https://api.notion.com/v1/databases/{NOTION_DB_ID}/query"
  HEADER_DICT = {
      "Authorization": f"Bearer {NOTION_TOKEN}",
      "Content-Type": "application/json",
      "Notion-Version": "2022-02-22"
  }
  
  DATA_DICT = {
      "page_size": 100
  }
  
  def parse_property(property_dict):
  
      if property_dict["type"] == "rollup":
          value = set()
          for ms in property_dict["rollup"]["array"]:
              for ms2 in ms["multi_select"]:
                  value.add(ms2["name"])
  
      elif property_dict["type"] == "multi_select":
          value = set()
          for ms in property_dict["multi_select"]:
              value.add(ms["name"])
  
      elif property_dict["type"] == "select":
          value = None
          if property_dict["select"] is not None:
              value = property_dict["select"]["name"]
      
      elif property_dict["type"] == "rich_text":
          value = ""
          for line in property_dict["rich_text"]:
              value += line['plain_text']
      
      elif property_dict["type"] == "number":
          value =  property_dict["number"]
      
      elif property_dict["type"] == "people":
          value = set()
          for ms in property_dict["people"]:
              value.add(ms["name"])
      
      elif property_dict["type"] == "url":
          value =  property_dict["url"]
      
      elif property_dict["type"] == "relation":
          value = set()
          for ms in property_dict["relation"]:
              value.add(ms["id"])    # TODO
      
      elif property_dict["type"] == "title":
          value = ""
          for line in property_dict["title"]:
              value += line['plain_text']
  
      return value
  
  resp = requests.post(REQUEST_URL, headers=HEADER_DICT, data=json.dumps(DATA_DICT))
  
  for row in resp.json()['results']:
      print(parse_property(row["properties"]["Nom"]))
  
  #with open("db.json", "w") as fd:
  #    #json.dump(data, fd)                           # no pretty print
  #    json.dump(issue_list, fd, sort_keys=False, indent=4)  # pretty print format
subject: Add a function to parse properties.