repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/routes/models.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:04.520317 | """OpenAI-compatible models listing endpoint."""
import calendar
from typing import Annotated
from fastapi import APIRouter, Depends, HTTPException, status
from pydantic import BaseModel
from sqlalchemy.orm import Session
from any_llm.gateway.api.deps import get_db, verify_api_key_or_master_key
from any_llm.gateway.... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/routes/messages.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:04.546016 | from typing import Annotated, Any
from fastapi import APIRouter, Depends, HTTPException, Request, Response, status
from fastapi.responses import StreamingResponse
from pydantic import BaseModel, Field
from sqlalchemy.orm import Session
from any_llm import AnyLLM, amessages
from any_llm.gateway.api.deps import get_con... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:04.576428 | import logging
import os
import re
import shutil
import subprocess
import sys
import click
import uvicorn
from uvicorn.config import logger
from any_llm.gateway.core.config import load_config
from any_llm.gateway.log_config import setup_logger
from any_llm.gateway.main import create_app
@click.group()
def cli() -> ... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/core/database.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.103273 | from collections.abc import Generator
from pathlib import Path
from typing import Any
from alembic import command
from alembic.config import Config
from sqlalchemy import create_engine, event
from sqlalchemy.orm import Session, sessionmaker
_engine = None
_SessionLocal = None
def init_db(database_url: str, auto_mig... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/core/config.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.104586 | import os
import re
from pathlib import Path
from typing import Any
import yaml
from pydantic import BaseModel, Field
from pydantic_settings import BaseSettings, SettingsConfigDict
from typing_extensions import deprecated
API_KEY_HEADER = "X-AnyLLM-Key"
class PricingConfig(BaseModel):
"""Model pricing configura... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/db/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.192592 | from any_llm.gateway.core.database import get_db, init_db, reset_db
from any_llm.gateway.models.entities import APIKey, Base, Budget, BudgetResetLog, ModelPricing, UsageLog, User
from any_llm.gateway.repositories.users_repository import get_active_user
__all__ = [
"APIKey",
"Base",
"Budget",
"BudgetRes... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/log_config.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.740190 | import logging
from typing import Any
from rich.logging import RichHandler
logger = logging.getLogger("gateway")
def setup_logger(
level: int = logging.WARNING,
rich_tracebacks: bool = True,
log_format: str | None = None,
propagate: bool = False,
**kwargs: Any,
) -> None:
"""Configure the ga... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/exceptions/domain.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.741533 | class GatewayError(Exception):
"""Base domain exception for gateway services."""
class NotFoundError(GatewayError):
"""Raised when an entity is not found."""
class ValidationError(GatewayError):
"""Raised when validation fails in domain layer."""
class AuthError(GatewayError):
"""Raised when authe... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.775139 | from fastapi import FastAPI, Request, Response
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import HTMLResponse
from starlette.middleware.base import BaseHTTPMiddleware, RequestResponseEndpoint
from typing_extensions import deprecated, override
from any_llm.gateway import __version__
from ... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/metrics.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:05.776456 | """Prometheus metrics for the gateway."""
from __future__ import annotations
import time
from typing import TYPE_CHECKING
from prometheus_client import CollectorRegistry, Counter, Gauge, Histogram, generate_latest
from starlette.responses import Response
if TYPE_CHECKING:
from starlette.requests import Request
... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/models/entities.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:06.713150 | import uuid
from datetime import UTC, datetime
from typing import Any
from sqlalchemy import JSON, DateTime, ForeignKey, Index
from sqlalchemy.orm import DeclarativeBase, Mapped, mapped_column, relationship
class Base(DeclarativeBase):
"""Base class for SQLAlchemy models."""
class APIKey(Base):
"""API Key ... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/rate_limit.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:06.753195 | """In-memory per-user rate limiter using a sliding window."""
import math
import time
from collections import defaultdict
from dataclasses import dataclass
from fastapi import HTTPException, Request, status
from any_llm.gateway.metrics import record_rate_limit_hit
@dataclass
class RateLimitInfo:
"""Rate limit ... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/deps.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:07.475704 | import secrets
from datetime import UTC, datetime
from typing import Annotated
from fastapi import Depends, HTTPException, Request, status
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm import Session
from any_llm.gateway.auth.models import hash_key
from any_llm.gateway.core.config import API_KEY_HEAD... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/main.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:07.681184 | from fastapi import FastAPI
from any_llm.gateway.api.routes import budgets, chat, embeddings, health, keys, messages, models, pricing, users
def register_routers(app: FastAPI) -> None:
app.include_router(chat.router)
app.include_router(messages.router)
app.include_router(embeddings.router)
app.includ... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/routes/users.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:09.626601 | from datetime import UTC, datetime
from typing import Annotated, Any
from fastapi import APIRouter, Depends, HTTPException, Query, status
from pydantic import BaseModel, Field
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm import Session
from any_llm.gateway.api.deps import get_db, verify_master_key
f... |
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/auth/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:11.380579 | from any_llm.gateway.auth.models import generate_api_key, hash_key, validate_api_key_format
__all__ = [
"generate_api_key",
"hash_key",
"validate_api_key_format",
]
|
mozilla-ai/any-llm | https://github.com/mozilla-ai/any-llm | null | null | null | null | 1,943 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/any_llm/gateway/api/routes/pricing.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:12.197712 | from typing import Annotated
from fastapi import APIRouter, Depends, HTTPException, Query, status
from pydantic import BaseModel, Field
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm import Session
from any_llm.any_llm import AnyLLM
from any_llm.gateway.api.deps import get_db, verify_master_key
from a... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.981979 | from .sky_datasets import Sky
from torchvision import transforms
from .taichi_datasets import Taichi
from datasets import video_transforms
from .ucf101_datasets import UCF101
from .ffs_datasets import FaceForensics
from .ffs_image_datasets import FaceForensicsImages
from .sky_image_datasets import SkyImages
fro... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/taichi_image_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.983440 | import os
import torch
import random
import torch.utils.data as data
import numpy as np
import io
import json
from PIL import Image
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG']
def is_image_file(filename):
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS)
class Taic... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/ucf101_image_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.984690 | import os, io
import re
import json
import torch
import decord
import torchvision
import numpy as np
from PIL import Image
from einops import rearrange
from typing import Dict, List, Tuple
from torchvision import transforms
import random
class_labels_map = None
cls_sample_cnt = None
class_labels_map = None
cls_sam... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/ffs_image_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.987368 | import os
import json
import torch
import decord
import torchvision
import numpy as np
import random
from PIL import Image
from einops import rearrange
from typing import Dict, List, Tuple
from torchvision import transforms
import traceback
class_labels_map = None
cls_sample_cnt = None
def temporal_sampling(frames,... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/taichi_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.989723 | import os
import torch
import random
import torch.utils.data as data
import numpy as np
import io
import json
from PIL import Image
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG']
def is_image_file(filename):
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/sky_image_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.991152 | import os
import torch
import random
import torch.utils.data as data
import numpy as np
import copy
from PIL import Image
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG']
def is_image_file(filename):
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS)
class SkyImages(data.... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/sky_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.992060 | import os
import torch
import random
import torch.utils.data as data
import numpy as np
from PIL import Image
IMG_EXTENSIONS = ['.jpg', '.JPG', '.jpeg', '.JPEG', '.png', '.PNG']
def is_image_file(filename):
return any(filename.endswith(extension) for extension in IMG_EXTENSIONS)
class Sky(data.Da... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/video_transforms.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.993244 | import torch
import random
import numbers
from torchvision.transforms import RandomCrop, RandomResizedCrop
def _is_tensor_video_clip(clip):
if not torch.is_tensor(clip):
raise TypeError("clip should be Tensor. Got %s" % type(clip))
if not clip.ndimension() == 4:
raise ValueError("cli... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/ucf101_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:16.997682 | import os
import re
import json
import torch
import decord
import torchvision
import numpy as np
from PIL import Image
from einops import rearrange
from typing import Dict, List, Tuple
class_labels_map = None
cls_sample_cnt = None
class_labels_map = None
cls_sample_cnt = None
def temporal_samp... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | datasets/ffs_datasets.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.077189 | import os
import json
import torch
import decord
import torchvision
import numpy as np
from PIL import Image
from einops import rearrange
from typing import Dict, List, Tuple
class_labels_map = None
cls_sample_cnt = None
def temporal_sampling(frames, start_idx, end_idx, num_samples):
"""
... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/diffusion_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.621466 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussia... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/gaussian_diffusion.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.625653 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussia... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/latte_img.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.627198 | # All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# GLIDE: https://github.com/openai/glide-text2im
# MAE: https://github.com/facebookresearch/mae/blob/ma... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/latte_t2v.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.630855 | import torch
import os
import json
from dataclasses import dataclass
from einops import rearrange, repeat
from typing import Any, Dict, Optional, Tuple
from diffusers.models import Transformer2DModel
from diffusers.utils import USE_PEFT_BACKEND, BaseOutput, deprecate
from diffusers.models.embeddings import get_1d_sin... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/timestep_sampler.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.658245 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussia... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/respace.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.658762 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussia... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | diffusion/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.660776 | # Modified from OpenAI's diffusion repos
# GLIDE: https://github.com/openai/glide-text2im/blob/main/glide_text2im/gaussian_diffusion.py
# ADM: https://github.com/openai/guided-diffusion/blob/main/guided_diffusion
# IDDPM: https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussia... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.715269 | import os
import sys
sys.path.append(os.path.split(sys.path[0])[0])
from .latte import Latte_models
from .latte_img import LatteIMG_models
from .latte_t2v import LatteT2V
from torch.optim.lr_scheduler import LambdaLR
def customized_lr_scheduler(optimizer, warmup_steps=5000): # 5000 from u-vit
from t... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/clip.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.716806 | import numpy
import torch.nn as nn
from transformers import CLIPTokenizer, CLIPTextModel, CLIPImageProcessor
import transformers
transformers.logging.set_verbosity_error()
"""
Will encounter following warning:
- This IS expected if you are initializing CLIPTextModel from the checkpoint of a model trained on ... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/latte.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:17.736817 | # All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# GLIDE: https://github.com/openai/glide-text2im
# MAE: https://github.com/facebookresearch/mae/... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | models/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.192241 | # adopted from
# https://github.com/openai/improved-diffusion/blob/main/improved_diffusion/gaussian_diffusion.py
# and
# https://github.com/lucidrains/denoising-diffusion-pytorch/blob/7706bdfc6f527f58d33f84b7b522e61e6e3164b3/denoising_diffusion_pytorch/denoising_diffusion_pytorch.py
# and
# https://github.com/open... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | sample/pipeline_latte.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.202234 | # All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softwa... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | sample/sample_ddp.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.212417 | # All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
Samples a large number of images from a pre-trained Latte model using DDP.
Subsequently saves a .npz file that can be used to compute FVD and other
evaluation metrics via ... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | sample/sample_t2x.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.260776 | import os
import torch
import argparse
import torchvision
from diffusers.schedulers import (DDIMScheduler, DDPMScheduler, PNDMScheduler,
EulerDiscreteScheduler, DPMSolverMultistepScheduler,
HeunDiscreteScheduler, EulerAncestralDiscreteScheduler,
... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | sample/sample.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.261877 | # All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
"""
Sample new images from a pre-trained Latte.
"""
import os
import sys
try:
import utils
from diffusion import create_diffusion
from utils import find_model
exc... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/convert_videos_to_frames.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.270330 | """
Converts a dataset of mp4 videos into a dataset of video frames
I.e. a directory of mp4 files becomes a directory of directories of frames
This speeds up loading during training because we do not need
"""
import os
from typing import List
import argparse
from pathlib import Path
from multiprocessing import Pool
fro... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/calc_metrics_for_dataset.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.299858 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/dnnlib/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.315558 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/dnnlib/util.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.317662 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.346926 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/frechet_inception_distance.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.805396 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/metric_utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.841343 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/kernel_inception_distance.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.863690 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/frechet_video_distance.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.864240 | """
Frechet Video Distance (FVD). Matches the original tensorflow implementation from
https://github.com/google-research/google-research/blob/master/frechet_video_distance/frechet_video_distance.py
up to the upsampling operation. Note that this tf.hub I3D model is different from the one released in the I3D repo.
"""
i... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/metric_main.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.893262 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/inception_score.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.911446 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/metrics/video_inception_score.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.912791 | """Inception Score (IS) from the paper "Improved techniques for training
GANs". Matches the original implementation by Salimans et al. at
https://github.com/openai/improved-gan/blob/master/inception_score/model.py"""
import numpy as np
from . import metric_utils
#------------------------------------------------------... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/misc.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:18.948313 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/custom_ops.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.017100 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.053821 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.373954 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/bias_act.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.419674 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/fma.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.460414 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/conv2d_gradfix.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.460919 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/grid_sample_gradfix.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.480306 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/conv2d_resample.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.480866 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/ops/upfirdn2d.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.525351 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/persistence.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.566475 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/torch_utils/training_stats.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.622637 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
Vchitect/Latte | https://github.com/Vchitect/Latte | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tools/utils/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:19.741073 | # Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and rel... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/alexa_media.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.355774 | """
Alexa Devices Base Class.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import logging
from alexapy import AlexaAPI, hide_email
from .const import D... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.357060 | """Alexa Media Exceptions"""
class EmptyDataException(Exception):
"""Empty data exception"""
class ForbiddenException(Exception):
"""Forbidden exception"""
class LoginForbiddenException(Exception):
"""Login forbidden exception"""
class LoginInvalidException(Exception):
"""Invalid login exception... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.359580 | """
Helper functions for Alexa Media Player.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import asyncio
import functools
import hashlib
import logging
f... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/const.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.360808 | """
Support to interface with Alexa Devices.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
from __future__ import annotations
from datetime import timede... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/binary_sensor.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.361771 | """
Alexa Devices Sensors.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import logging
from alexapy import hide_serial
from homeassistant.components.bin... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/alarm_control_panel.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.362746 | """
Alexa Devices Alarm Control Panel using Guard Mode.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
from asyncio import sleep
import logging
from typing... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/diagnostics.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.364017 | """Diagnostics support for Alexa Media Player."""
from __future__ import annotations
from collections.abc import Mapping
from dataclasses import fields, is_dataclass
from datetime import datetime
from itertools import islice
import re
from typing import Any
from homeassistant.config_entries import ConfigE... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/coordinator.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:22.365366 | """Optimized DataUpdateCoordinator for Alexa Media Player.
Optimizations:
- Debouncer for request coalescing
- Type-safe runtime data integration
"""
from __future__ import annotations
from datetime import timedelta
import logging
from typing import TYPE_CHECKING, Any, Callable
from homeassistant.helpers.debounce i... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/config_flow.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:23.378745 | """
Alexa Config Flow.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
from asyncio import sleep
from collections import OrderedDict
import datetime
from da... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/alexa_entity.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.370904 | """
Alexa Devices Entities.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
from __future__ import annotations
from datetime import datetime, timedelta, ti... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/runtime_data.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.848262 | """Runtime data for Alexa Media Player integration.
This module implements the Platinum architecture using entry.runtime_data
instead of the legacy hass.data[DOMAIN] pattern.
"""
from __future__ import annotations
import asyncio
from dataclasses import dataclass, field
import logging
from typing import TYPE_CHECKING... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/metrics.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.867678 | """Performance metrics and caching for Alexa Media Player.
Provides boot time tracking and intelligent data caching.
"""
from __future__ import annotations
from dataclasses import dataclass, field
import logging
import time
from typing import Any
from homeassistant.core import HomeAssistant
from .const import DOMA... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/notify.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.936713 | """
Alexa Devices notification service.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import asyncio
import json
import logging
from alexapy.helpers impo... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_alexa_entity.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.938824 | """Test the alexa_entity module utility functions."""
import pytest
from custom_components.alexa_media.alexa_entity import (
has_capability,
is_hue_v1,
is_known_ha_bridge,
is_local,
is_skill,
)
class TestHasCapability:
"""Test the has_capability function."""
def test_has_capability_with... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_alarm_control_panel.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.940026 | """Tests for alarm_control_panel module.
Tests the Alexa Guard alarm control panel functionality.
"""
from unittest.mock import AsyncMock, MagicMock, PropertyMock, patch
import pytest
from custom_components.alexa_media.const import CONF_QUEUE_DELAY, DATA_ALEXAMEDIA
# Try to import the state constants
try:
from... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/services.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.969414 | """
Alexa Services.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import asyncio
from dataclasses import dataclass
import logging
from typing import Any, ... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/light.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:24.974645 | """
Alexa Devices Lights.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import datetime
import logging
from math import sqrt
from typing import Optional
... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/switch.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:25.041252 | """
Alexa Devices Switches.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import datetime
import logging
from alexapy import AlexaAPI
from homeassistant.... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/media_player.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:25.233378 | """
Support to interface with Alexa Devices.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import asyncio
import logging
import os
import re
import subpro... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_const.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:25.628926 | """Test the const module."""
from datetime import timedelta
import pytest
from custom_components.alexa_media.const import (
ALEXA_AIR_QUALITY_DEVICE_CLASS,
ALEXA_COMPONENTS,
ALEXA_ICON_CONVERSION,
CONF_ACCOUNTS,
CONF_DEBUG,
CONF_EXCLUDE_DEVICES,
CONF_HASS_URL,
CONF_INCLUDE_DEVICES,
... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_notify.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:25.733869 | """Tests for notify module.
Tests the notification service using pytest-homeassistant-custom-component.
"""
from unittest.mock import MagicMock
import pytest
from custom_components.alexa_media.const import DATA_ALEXAMEDIA
from custom_components.alexa_media.notify import AlexaNotificationService
# =================... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_helpers.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:25.925939 | """Tests for helpers module.
Tests the helper functions using pytest-homeassistant-custom-component.
"""
from unittest.mock import MagicMock, patch
import pytest
from custom_components.alexa_media.const import DATA_ALEXAMEDIA
from custom_components.alexa_media.helpers import (
_existing_serials,
add_devices... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_config_flow.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:26.112548 | """Tests for config_flow module."""
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from custom_components.alexa_media.config_flow import AlexaMediaFlowHandler
from custom_components.alexa_media.const import DATA_ALEXAMEDIA
class TestReauthReload:
"""Test that reauth triggers integration re... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:26.376235 | """Test the exceptions module."""
import pytest
from custom_components.alexa_media.exceptions import (
EmptyDataException,
ForbiddenException,
LoginForbiddenException,
LoginInvalidException,
TimeoutException,
UnexpectedApiException,
)
def test_empty_data_exception():
"""Test EmptyDataExc... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_diagnostics.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:26.382311 | """Tests for diagnostics.py (collection, redaction, obfuscation, and coordinator discovery)."""
from __future__ import annotations
from datetime import timedelta
import logging
import sys
from types import SimpleNamespace
from unittest.mock import MagicMock, patch
from homeassistant.helpers.update_coordinator import... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_sensor.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:26.463267 | """Tests for sensor module.
Tests the sensor functionality using pytest-homeassistant-custom-component.
"""
import datetime
from unittest.mock import patch
from custom_components.alexa_media.sensor import AlexaMediaNotificationSensor
class TestUpdateRecurringAlarm:
"""Test the _update_recurring_alarm method of... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_sensor_snooze.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:26.699132 | """Pytest cases for the four key alarm snooze states.
Covers _normalize_alarm_snooze_state and the _is_active_notification
filter logic introduced in PR `#3440`.
"""
import datetime
from unittest.mock import MagicMock, patch
from custom_components.alexa_media.sensor import AlexaMediaNotificationSensor
UTC = datetim... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | custom_components/alexa_media/sensor.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:28.630271 | """
Alexa Devices Sensors.
SPDX-License-Identifier: Apache-2.0
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
"""
import datetime
import logging
from typing import Callable, ClassVar, Optional
f... |
alandtse/alexa_media_player | https://github.com/alandtse/alexa_media_player | null | null | null | null | 1,935 | null | null | apache-2.0 | null | null | null | null | null | null | null | tests/test_switch.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:31.028363 | """Tests for switch.py - specifically the hue_emulated_enabled bugfix.
This tests the fix for the undefined variable bug where hue_emulated_enabled
was used but never defined, causing a NameError when users had Smart Plug
devices with CONF_EXTENDED_ENTITY_DISCOVERY enabled.
"""
from unittest.mock import AsyncMock, Ma... |
foryourhealth111-pixel/Vibe-Skills | https://github.com/foryourhealth111-pixel/Vibe-Skills | null | null | null | null | 1,934 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/vgo-cli/src/vgo_cli/installer_bridge.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:34.714066 | from __future__ import annotations
from pathlib import Path
from .errors import CliError
from .workspace import extend_workspace_package_path
def refresh_install_ledger_payload(repo_root: Path, target_root: Path) -> dict[str, object]:
"""Refresh the install ledger and attach current runtime diagnostics."""
... |
foryourhealth111-pixel/Vibe-Skills | https://github.com/foryourhealth111-pixel/Vibe-Skills | null | null | null | null | 1,934 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/vgo-cli/src/vgo_cli/install_support.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:34.716198 | from __future__ import annotations
import os
from pathlib import Path
from .mcp_provision import provision_required_mcp
from .external import report_external_fallback_usage
from .install_gates import run_offline_gate, run_runtime_freshness_gate
from .installer_bridge import refresh_install_ledger_payload
from .output... |
foryourhealth111-pixel/Vibe-Skills | https://github.com/foryourhealth111-pixel/Vibe-Skills | null | null | null | null | 1,934 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/vgo-cli/src/vgo_cli/hosts.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:34.717101 | from __future__ import annotations
import os
from functools import lru_cache
from pathlib import Path
from types import ModuleType
from .errors import CliError
from .workspace import extend_workspace_package_path
@lru_cache(maxsize=1)
def _resolve_workspace_repo_root() -> Path:
current = Path(__file__).resolve(... |
foryourhealth111-pixel/Vibe-Skills | https://github.com/foryourhealth111-pixel/Vibe-Skills | null | null | null | null | 1,934 | null | null | apache-2.0 | null | null | null | null | null | null | null | apps/vgo-cli/src/vgo_cli/external.py | null | null | null | null | null | null | Python | 2026-05-04T02:46:34.718932 | from __future__ import annotations
import os
import shutil
import subprocess
import sys
from .errors import CliError
def _load_optional_install_timeout_seconds() -> int:
raw = os.environ.get('VGO_OPTIONAL_INSTALL_TIMEOUT_SECONDS', '15')
try:
value = int(raw)
except (TypeError, ValueError):
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.