{{ docstring|docstring(0) -}}
from __future__ import annotations
import os
import sys
import ctypes
from dataclasses import dataclass
import enum
import struct
import contextlib
import datetime
import threading
import itertools
import traceback
import typing
{%- if has_async_fns %}
import asyncio
{%- endif %}
import platform
{%- for import in imports %}
{{ import|import_statement }}
{%- endfor %}
_DEFAULT = object()
{% include "RustBufferTemplate.py" %}
{% include "Helpers.py" %}
{% include "HandleMap.py" %}
{% include "RustBufferHelper.py" %}
{%- if has_callback_interface %}
{%- include "CallbackInterfaceRuntime.py" %}
{%- endif %}
{% include "NamespaceLibraryTemplate.py" %}
{{%- if has_async_fns %}
{%- include "Async.py" %}
{%- endif %}
{% include "Types.py" %}
{%- for func in functions %}
{%- include "TopLevelFunctionTemplate.py" %}
{%- endfor %}
__all__ = [
{%- for name in exported_names %}
"{{ name }}",
{%- endfor %}
]