dryvPacks

@dryv/fastapi-backendv0.1.0

FastAPI routers and Pydantic models.

FastAPI BackendBackendUnitPublished 7 days ago2 downloads

dryv pack add @dryv/fastapi-backend
406 BRaw ↗
jinja
{%- for item in file.exports %}
from .{{ item.path.relative | replace('/', '.') | replace('.py', '') }} import *  # noqa: F403
{%- endfor %}
{%- for item in file.exports %}
from . import {{ item.path.relative | replace('/', '.') | replace('.py', '') }} as _{{ loop.index }}
{%- endfor %}

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