Author field in header and meta.store#

from nbproject import header, meta

If a lamindb user account was set up, then initialized headers of notebooks will have an author field consisting of user_handle and user_id in brackets. Here they are the same.

header()
idZv1wV7oM9ztH
version0
time_init2022-10-09 15:08
time_run2024-05-08 12:16
pypackagenbproject==0.10.2
meta
Metadata object with .live and .store metadata fields:
  .store: Wrapper object for the stored metadata:
  id='Zv1wV7oM9ztH' version='0' time_init='2022-10-09T15:08:04.997800+00:00' pypackage=None parent=None user_handle='qTQ5q0ar' user_id='qTQ5q0ar' user_name=None
  .live: Fields: consecutive_cells pypackage time_passed time_run title user_handle user_id user_name
assert meta.store.user_handle == "qTQ5q0ar"
assert meta.store.user_id == "qTQ5q0ar"