dryvPacks

@dryv/python-client-sdkv0.1.0

Async HTTPX client SDK with shared Pydantic models and typed operations.

Python Client SDKClientsUnitPublished 7 days ago2 downloads

dryv pack add @dryv/python-client-sdk
555 BRaw ↗
jinja
from pydantic import BaseModel as _BaseModel
{% for item in file.exports %}
from .{{ item.path.relative | replace('/', '.') | replace('.py', '') }} import {{ item.symbol }} as {{ item.symbol }}
{%- endfor %}

__all__ = [{% for item in file.exports %}"{{ item.symbol }}"{% if not loop.last %}, {% endif %}{% endfor %}]

_namespace = {name: globals()[name] for name in __all__}
for _name in __all__:
    _value = _namespace[_name]
    if isinstance(_value, type) and issubclass(_value, _BaseModel):
        _value.model_rebuild(_types_namespace=_namespace)