

def csv2youtrack(source_file, target_url, target_login, target_password, comments_file=None, attachments_file=None):
    target = Connection(target_url, target_login, target_password)
    source = Client(source_file)
    source_comments = None
    if comments_file:
        source_comments = Client(comments_file)
    source_attachments = None
    if attachments_file:
        source_attachments = Client(attachments_file)
    config = CsvYouTrackImportConfig(csvClient.FIELD_NAMES, csvClient.FIELD_TYPES)
    importer = CsvYouTrackImporter(source, target, config, source_comments, source_attachments)
    importer.import_csv()

dataset/ETHPy150Open JetBrains/youtrack-rest-python-library/python/csv2youtrack.py csv2youtrack/original