To import data into Folio using FolioConsoleApplication Zeno Tajoli 02 Apr 2019 13:21 EDT

Hi to all,

to import data into Folio using FolioConsoleApplication
[] I need to prepare the correct .json

For me it is not clear how to insert a correct value into 'uuid' columns.
How can I calculate uuid values ?

I see that in
the relevant python code is:

import MySQLdb
import uuid
from datetime import datetime
def process_bib(db, bib_row):
	bib_uuid = uuid.uuid4()

In uuid library doc page
I see:

This module provides immutable UUID objects (the UUID class) and the
functions uuid1(), uuid3(), uuid4(), uuid5() for generating version 1,
3, 4, and 5 UUIDs as specified in RFC 4122.

If all you want is a unique ID, you should probably call uuid1() or
uuid4(). Note that uuid1() may compromise privacy since it creates a
UUID containing the computer’s network address. uuid4() creates a random

     Generate a random UUID.

So, do we create UUID in FOLIO with 'uuid.uuid4' or similar functions in
others languages?

Zeno Tajoli

Zeno Tajoli
System Librarian

Via Quintino Sella, 33 - 00187 Roma
Tel +39 06 89873504 - Fax +39 06 89873496

Questo messaggio è destinato alle sole persone indicate e può contenere
informazioni riservate.
Ogni altro uso del messaggio è vietato. Se avete ricevuto questa e-mail
per errore, siete pregati
di cancellare l'originale e comunicarcelo immediatamente via e-mail