nyx_client.data =============== .. py:module:: nyx_client.data .. autoapi-nested-parse:: Module that manages individual Nyx Data. Classes ------- .. autoapisummary:: nyx_client.data.Data Module Contents --------------- .. py:class:: Data(name, title, description, org, url, content_type, creator, categories, genre, size = 0) Represents the data in the Nyx system. This class encapsulates the information and functionality related to the data in the Nyx system, including its metadata and content retrieval. .. py:method:: __str__() Return a string representation of the Data instance. .. py:method:: as_string() Download the content of the data as a string. This method attempts to download the content from the data's URL. :returns: The downloaded content as decoded text or None, if the download fails. .. py:method:: as_bytes() Download the content of the data as bytes. This method attempts to download the content from the data's URL. :returns: The downloaded content as bytes or None, if the download fails.