This library provides core serialization and deserialization capabilities for plain text (`text/plain`) within the Microsoft Kiota ecosystem for Python. It allows Kiota-generated API clients to handle text-based responses and requests. The current version is 1.10.1, and releases are frequent, synchronized with the broader Kiota project across multiple languages.
pip install microsoft-kiota-serialization-textVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use `TextSerializationWriterFactory` to serialize a string to bytes and `TextParseNodeFactory` to deserialize those bytes back into a string, explicitly handling the 'text/plain' content type.
Upgrade your Python environment to version 3.10 or newer.
Use the appropriate Kiota serialization library for the content type you are handling (e.g., `microsoft-kiota-serialization-json` for JSON).
Register factories using `SerializationWriterFactoryRegistry.default_instance.register_content_type('text/plain', TextSerializationWriterFactory)` and `ParseNodeFactoryRegistry.default_instance.register_content_type('text/plain', TextParseNodeFactory)`.Install the library using your package manager, typically `pip install microsoft-kiota-serialization-text`.