URN_NBN structure

class cz_urnnbn_api.api_structures.urn_nbn.URN_NBN(value, status=None, country_code=None, registrar_code=None, document_code=None, digital_document_id=None, registered=None)

Bases: str

Class used to hold URN:NBN string and also other informations returned from server.

Note

This class subclasses str, so URN:NBN string can be obtained painlessly.

value

str – Whole URN:NBN string.

status

strACTIVE for example.

registered

str – ISO 8601 date string.

country_code

str – Code of the country (cz for URN:NBN).

document_code

str – Part of the URN:NBN holding the code.

registrar_code

str – Identification of registrar.

digital_document_id

str – ID of the document.

static from_xmldict(xdom, tag_picker=<function <lambda> at 0x7fe2245be320>)

Parse itself from xmldict structure.