diff --git a/backend/models/tts.py b/backend/models/tts.py new file mode 100644 index 0000000..188109b --- /dev/null +++ b/backend/models/tts.py @@ -0,0 +1,36 @@ +from dataclasses import dataclass + +from pydantic import BaseModel + + +class TypecastVoice(BaseModel): + """Typecast(ssfm-v30) 설정. 주면 엔진이 typecast가 된다.""" + voice_id: str + emotion: str = "normal" + emotion_intensity: float = 1.0 + tempo: float = 1.0 # OpenAI의 speed에 대응 + + +class NarrationCue(BaseModel): + index: int + text: str + start: float + duration: float + end: float + pause_after: float + + +class NarrationTimeline(BaseModel): + """씬·카메라 비트가 이 큐에 맞춰진다. 오디오가 타이밍을 결정한다.""" + engine: str + voice: str + lead_in: float + tail: float + total: float + cues: list[NarrationCue] + + +@dataclass +class NarrationAudio: + timeline: NarrationTimeline + mp3: bytes # 큐 위치에 얹어 합친 한 트랙 diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 80d834a..c38445e 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -3,7 +3,9 @@ name = "backend" version = "0.1.0" requires-python = ">=3.14" dependencies = [ + "av>=18.1.0", "fastapi>=0.141.1", + "httpx>=0.28.1", "numpy>=2.5.2", "openai>=3.6.0", "pillow>=12.3.0", diff --git a/backend/raw_prompt/tts_instructions.txt b/backend/raw_prompt/tts_instructions.txt new file mode 100644 index 0000000..9d26ad5 --- /dev/null +++ b/backend/raw_prompt/tts_instructions.txt @@ -0,0 +1 @@ +또렷하고 자신 있게, 초대하는 톤으로. 축제 광고 내레이션. 차분하되 늘어지지 않게. 문장 끝을 끌지 마세요. \ No newline at end of file diff --git a/backend/settings.py b/backend/settings.py index aee2143..793940c 100644 --- a/backend/settings.py +++ b/backend/settings.py @@ -5,6 +5,7 @@ class Settings(BaseSettings): model_config = SettingsConfigDict(env_file=".env", extra="ignore") chatgpt_api_key: str + typecast_api_key: str = "" # typecast 엔진을 쓸 때만 필요 settings = Settings() diff --git a/backend/test_tts.py b/backend/test_tts.py new file mode 100644 index 0000000..2c6c09e --- /dev/null +++ b/backend/test_tts.py @@ -0,0 +1,53 @@ +"""tts 수동 확인용. + +사용: uv run python test_tts.py <포스터경로> +test_result/<이름>.narration.txt 가 있으면 재사용하고, 없으면 앞 단계부터 돌린다. +결과는 <이름>.tts.mp3(합쳐진 나레이션)와 <이름>.tts.txt(타임라인)로 떨어진다. +""" +import asyncio +import sys +from pathlib import Path + +from answers.narration_answer import NarrationAnswer +from narration import generate_narration +from test_narration import load_regions +from tts import synthesize + +TEST_RESULT_DIR = Path(__file__).parent / "test_result" + + +async def load_narration(poster_path: Path, output_base: Path) -> NarrationAnswer: + narration_path = output_base.with_suffix(".narration.txt") + if narration_path.exists(): + return NarrationAnswer.model_validate_json(narration_path.read_text(encoding="utf-8")) + regions = await load_regions(poster_path, output_base.with_suffix(".detect.txt")) + answer = await generate_narration(poster_path, regions) + narration_path.write_text(answer.model_dump_json(indent=2), encoding="utf-8") + return answer + + +async def main() -> None: + poster_path = Path(sys.argv[1]) + TEST_RESULT_DIR.mkdir(exist_ok=True) + output_base = TEST_RESULT_DIR / poster_path.stem + + answer = await load_narration(poster_path, output_base) + audio = await synthesize(answer.narration, answer.voice) + + mp3_path = output_base.with_suffix(".tts.mp3") + timeline_path = output_base.with_suffix(".tts.txt") + mp3_path.write_bytes(audio.mp3) + timeline_path.write_text(audio.timeline.model_dump_json(indent=2), encoding="utf-8") + + print(f"engine={audio.timeline.engine} voice={audio.timeline.voice}") + for cue in audio.timeline.cues: + print(f" [{cue.index}] {cue.start:5.2f}s +{cue.duration:4.2f}s {cue.text}") + print(f"\n나레이션 종료 {audio.timeline.cues[-1].end:.2f}s " + f"+ 여백 {audio.timeline.tail}s → 영상 길이 {audio.timeline.total}s") + if audio.timeline.total > 8: + print("※ 8초를 넘는다 — 영상이 8초 고정이라 나레이션이 잘린다") + print(f"\n{mp3_path}\n{timeline_path}") + + +if __name__ == "__main__": + asyncio.run(main()) diff --git a/backend/tts.py b/backend/tts.py new file mode 100644 index 0000000..b438e1e --- /dev/null +++ b/backend/tts.py @@ -0,0 +1,111 @@ +"""④ tts — 나레이션 음성 + 실측 타임라인. + +**오디오가 타이밍을 결정한다.** 영상 비트를 먼저 못 박고 음성을 우겨넣으면 말이 잘리거나 빈다. +문장별로 만들어 실제 길이를 재고, 그 큐에 씬·카메라를 맞춘다. 순서를 뒤집지 않는다. + +파일도 서브프로세스도 없다. TTS 응답을 받아 메모리에서 트림·합성·인코딩한다. +""" +import asyncio + +import httpx +import numpy as np +from openai import AsyncOpenAI + +from models.tts import NarrationAudio, NarrationCue, NarrationTimeline, TypecastVoice +from settings import settings +from utils.audio import SAMPLE_RATE, decode_mp3, encode_mp3, trim_silence +from utils.prompt import load_prompt + +TYPECAST_API = "https://api.typecast.ai/v1/text-to-speech" +OPENAI_TTS_MODEL = "gpt-4o-mini-tts" +TYPECAST_MODEL = "ssfm-v30" + +# "천천히"라고 지시하면 TTS가 과하게 늘어진다. 톤은 지시문으로, 속도는 파라미터로 통제한다. +TTS_INSTRUCTIONS = load_prompt("tts_instructions") +DEFAULT_SPEED = 1.28 +DEFAULT_PAUSES = (0.35, 0.35, 0.30) +DEFAULT_LEAD_IN = 0.35 +DEFAULT_TAIL = 1.7 + + +async def speak_openai(text: str, voice: str, speed: float, instructions: str) -> bytes: + response = await AsyncOpenAI(api_key=settings.chatgpt_api_key).audio.speech.create( + model=OPENAI_TTS_MODEL, + voice=voice, + input=text, + instructions=instructions, + speed=speed, + response_format="mp3", + ) + return await response.aread() + + +async def speak_typecast(text: str, typecast: TypecastVoice) -> bytes: + if not settings.typecast_api_key: + raise RuntimeError("TYPECAST_API_KEY 없음 — typecast 엔진을 쓰려면 필요하다") + async with httpx.AsyncClient(timeout=90) as client: + response = await client.post( + TYPECAST_API, + headers={"X-API-KEY": settings.typecast_api_key}, + json={ + "text": text, + "model": TYPECAST_MODEL, + "voice_id": typecast.voice_id, + "language": "kor", + "prompt": {"emotion_type": "preset", + "emotion_preset": typecast.emotion, + "emotion_intensity": typecast.emotion_intensity}, + "output": {"audio_format": "mp3", "volume": 100, + "audio_tempo": typecast.tempo}, + }) + response.raise_for_status() + return response.content + + +def merge_clips(clips: list[np.ndarray], starts: list[float], total: float) -> np.ndarray: + """큐 시작 시각에 얹어 한 트랙으로 만든다. 큐는 겹치지 않으므로 덮어쓰면 된다.""" + track = np.zeros(round(total * SAMPLE_RATE), dtype=np.int16) + for clip, start in zip(clips, starts, strict=True): + offset = round(start * SAMPLE_RATE) + track[offset:offset + len(clip)] = clip[:max(0, len(track) - offset)] + return track + + +async def synthesize(sentences: list[str], voice: str = "nova", *, + speed: float = DEFAULT_SPEED, + instructions: str = TTS_INSTRUCTIONS, + typecast: TypecastVoice | None = None, + pauses: tuple[float, ...] = DEFAULT_PAUSES, + lead_in: float = DEFAULT_LEAD_IN, + tail: float = DEFAULT_TAIL) -> NarrationAudio: + """typecast를 주면 그 엔진으로 간다 — voice_id 없이 typecast를 고를 수 없다.""" + if not sentences: + raise ValueError("나레이션 문장이 없다") + + if typecast: + spoken = await asyncio.gather(*(speak_typecast(text, typecast) for text in sentences)) + else: + spoken = await asyncio.gather( + *(speak_openai(text, voice, speed, instructions) for text in sentences)) + # TTS가 문장 끝에 붙이는 최대 1.2초 공백이 그대로 영상 길이가 되면 훅 직후에 침묵이 생긴다 + clips = [trim_silence(decode_mp3(mp3)) for mp3 in spoken] + + cues, starts = [], [] + cursor = lead_in + for index, (text, clip) in enumerate(zip(sentences, clips, strict=True)): + duration = len(clip) / SAMPLE_RATE + pause = pauses[index] if index < len(pauses) else pauses[-1] + starts.append(cursor) + cues.append(NarrationCue(index=index, text=text, start=round(cursor, 3), + duration=round(duration, 3), end=round(cursor + duration, 3), + pause_after=pause)) + cursor += duration + pause + + total = round(cues[-1].end + tail, 2) + return NarrationAudio( + timeline=NarrationTimeline( + engine="typecast" if typecast else "openai", + voice=typecast.voice_id if typecast else voice, + lead_in=lead_in, tail=tail, total=total, cues=cues), + mp3=encode_mp3(merge_clips(clips, starts, total)), + ) diff --git a/backend/utils/audio.py b/backend/utils/audio.py new file mode 100644 index 0000000..39dfbe7 --- /dev/null +++ b/backend/utils/audio.py @@ -0,0 +1,53 @@ +"""메모리 위에서만 도는 오디오 처리. 파일도 서브프로세스도 없다.""" +import io + +import av +import numpy as np + +SAMPLE_RATE = 44100 # 렌더 믹스 기준 +MP3_BIT_RATE = 192000 +INT16_FULL_SCALE = 32768 + + +def decode_mp3(data: bytes, sample_rate: int = SAMPLE_RATE) -> np.ndarray: + """mp3 → 모노 s16 PCM. 소스 샘플레이트가 달라도 리샘플해 맞춘다.""" + container = av.open(io.BytesIO(data)) + resampler = av.audio.resampler.AudioResampler( + format="s16", layout="mono", rate=sample_rate) + chunks = [] + for frame in container.decode(audio=0): + for resampled in resampler.resample(frame): + chunks.append(resampled.to_ndarray().reshape(-1)) + for resampled in resampler.resample(None): # 남은 것 밀어내기 + chunks.append(resampled.to_ndarray().reshape(-1)) + container.close() + return np.concatenate(chunks) if chunks else np.zeros(0, np.int16) + + +def encode_mp3(pcm: np.ndarray, sample_rate: int = SAMPLE_RATE) -> bytes: + buffer = io.BytesIO() + container = av.open(buffer, "w", format="mp3") + stream = container.add_stream("mp3", rate=sample_rate) + stream.layout = "mono" + stream.bit_rate = MP3_BIT_RATE + frame = av.AudioFrame.from_ndarray(pcm.reshape(1, -1), format="s16", layout="mono") + frame.rate = sample_rate + for packet in stream.encode(frame): + container.mux(packet) + for packet in stream.encode(): + container.mux(packet) + container.close() + return buffer.getvalue() + + +def trim_silence(pcm: np.ndarray, threshold_db: float = -45, + keep_lead: float = 0.05, keep_trail: float = 0.12, + sample_rate: int = SAMPLE_RATE) -> np.ndarray: + """앞뒤 무음만 깎는다. 말소리 사이의 쉼은 보존한다.""" + threshold = INT16_FULL_SCALE * 10 ** (threshold_db / 20) + loud = np.flatnonzero(np.abs(pcm) > threshold) + if len(loud) == 0: + return pcm[:0] + start = max(0, loud[0] - round(keep_lead * sample_rate)) + end = min(len(pcm), loud[-1] + 1 + round(keep_trail * sample_rate)) + return pcm[start:end] diff --git a/backend/uv.lock b/backend/uv.lock index 42ed2e3..a7f6661 100644 --- a/backend/uv.lock +++ b/backend/uv.lock @@ -32,12 +32,40 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/35/f2287558c17e29fafc8ef3daf819bb9834061cfa43bff8014f7df7f63bdc/anyio-4.14.2-py3-none-any.whl", hash = "sha256:9f505dda5ac9f0c8309b5e8bd445a8c2bf7246f3ce950121e45ea15bc41d1494", size = 125813, upload-time = "2026-07-12T20:29:05.763Z" }, ] +[[package]] +name = "av" +version = "18.1.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/8d/f4/f22114d30d3435e38c6af2b4870f37b864403dca6ae7af747a289ce0a18e/av-18.1.0.tar.gz", hash = "sha256:47bfc286e1bc9de7ab4681fc2b575cd2460a66919d31ffe1bd5aa54fae531a28", size = 4451061, upload-time = "2026-08-12T22:28:18.761Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/05/d4/d7cdc8bff143c17a6d35924375ae28dd692cacde38700a7d419fde54f44a/av-18.1.0-cp311-abi3-macosx_11_0_x86_64.whl", hash = "sha256:ae75d8bb6467895ed1f8572ededf7ffa49eac07f6e483222f5d7d62a41d12f04", size = 22546147, upload-time = "2026-08-12T22:27:11.851Z" }, + { url = "https://files.pythonhosted.org/packages/3f/c9/37a619297492256b77d5ed906e7d8166c10a26ed251dccf1ae03ab19bff6/av-18.1.0-cp311-abi3-macosx_14_0_arm64.whl", hash = "sha256:b30a4e8d934558e19602b68998a4d9ac9f250fa0dacef216f7e8e40153b13316", size = 18217603, upload-time = "2026-08-12T22:27:14.713Z" }, + { url = "https://files.pythonhosted.org/packages/d9/84/2464ffb64c08c5ce8b522c8e74594714414e3b0575267652c5c51c0574b9/av-18.1.0-cp311-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:6fc837cc51adf80331ac850779cd53b5d4c4460b0ebe9057a02a921c6736f19d", size = 33640142, upload-time = "2026-08-12T22:27:17.835Z" }, + { url = "https://files.pythonhosted.org/packages/27/3a/204dbfc3e08eb4cdc6e6ff57be02150bc44523ebdb50182d10025792ebd9/av-18.1.0-cp311-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:8a032e8d8ebc73dec079364b9b4a6837638a2d106e8472314e685ffbf163e700", size = 35786210, upload-time = "2026-08-12T22:27:20.984Z" }, + { url = "https://files.pythonhosted.org/packages/e1/99/b0d04ec553ff9a7e00455458dfa3a39c8a8f627b273056b4e5fe57d590de/av-18.1.0-cp311-abi3-manylinux_2_31_armv7l.whl", hash = "sha256:3c8b1f8b46f99d52e2d8b0ed5d0cdadf172d24794d46e2077b16e44ed08e26ff", size = 39379798, upload-time = "2026-08-12T22:27:24.432Z" }, + { url = "https://files.pythonhosted.org/packages/56/b1/e00d4feae59160149df6126585e726fdc6300798fd40c5dd324879e81f68/av-18.1.0-cp311-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:ab5ac081bc9eaf54109120d4e56284674fecfbe520d9aa1707c7fa911ec5f4d2", size = 34690321, upload-time = "2026-08-12T22:27:27.769Z" }, + { url = "https://files.pythonhosted.org/packages/dc/94/836fa987e3084d11a21489f11357fb24843ef3aa8faf74ddddfc603d5062/av-18.1.0-cp311-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:191224788d87af06c31784a395bb73f14b72f33d7f4871ace0157de2abdc6276", size = 36859932, upload-time = "2026-08-12T22:27:31.403Z" }, + { url = "https://files.pythonhosted.org/packages/33/b4/76ba21e46704f632004276b85289a1582e95f5eff760436d6149875a1881/av-18.1.0-cp311-abi3-win_amd64.whl", hash = "sha256:ea1480b7a8d5405cb5f382b344731bf125fd2c1c6fae3964f6c48595628387ff", size = 27595679, upload-time = "2026-08-12T22:27:35.177Z" }, + { url = "https://files.pythonhosted.org/packages/4f/ad/a3135884c5753b09773176b97201ae602f67ad14206c395ff838d66bf9b0/av-18.1.0-cp311-abi3-win_arm64.whl", hash = "sha256:5509ec12aaa19fd6601de13cfa6f4cdad450da07982118510592875d970454d6", size = 20257584, upload-time = "2026-08-12T22:27:38.472Z" }, + { url = "https://files.pythonhosted.org/packages/4f/5b/4a756265d7fb164336c8d377bca21c39cfa2c178be23cedee840a69b59c5/av-18.1.0-cp314-cp314t-macosx_11_0_x86_64.whl", hash = "sha256:b36b0bae9e4c62f9487c99481ec15e4e3870fcc868522cd6d18fc2d6bfa04f01", size = 22795654, upload-time = "2026-08-12T22:27:42.016Z" }, + { url = "https://files.pythonhosted.org/packages/d5/cc/1bc841462114a1adf4f7d87456ab78a6972e23271e71865fcd2bbd0e7360/av-18.1.0-cp314-cp314t-macosx_14_0_arm64.whl", hash = "sha256:025f84494cb23278498f03b0d8117d3e47a1cbc9c44b97eb31875cf02251e46b", size = 18435735, upload-time = "2026-08-12T22:27:45.787Z" }, + { url = "https://files.pythonhosted.org/packages/b8/20/005500ed17a2e62a5e4bb94aa3786942560ec2f55ec1895ebf174c87abef/av-18.1.0-cp314-cp314t-manylinux_2_28_aarch64.whl", hash = "sha256:08a9ae288299cfcbf739dba4ad0c53b9b71f45184303dd45947920d022fed695", size = 37090807, upload-time = "2026-08-12T22:27:50.14Z" }, + { url = "https://files.pythonhosted.org/packages/5c/f7/11e7f6d848d3690c31ca4f8578167393e619177f1493ccc93b9400852d4e/av-18.1.0-cp314-cp314t-manylinux_2_28_x86_64.whl", hash = "sha256:cf8a17466bef07765dbdecc9e66ed9b25d20b4e14f654fbf35345a58ac45fa0c", size = 38976836, upload-time = "2026-08-12T22:27:54.565Z" }, + { url = "https://files.pythonhosted.org/packages/c3/63/b271473b24e806062d31191e40c6d65545e9cf59f80f044eba56dcbba0f4/av-18.1.0-cp314-cp314t-manylinux_2_31_armv7l.whl", hash = "sha256:d49a5c542dfdc00f43c6cdb6cc41dac1781ee206fe180b56aa7433dfa816dfae", size = 40896630, upload-time = "2026-08-12T22:27:59.118Z" }, + { url = "https://files.pythonhosted.org/packages/6b/9f/2ab7fa292a947ad3466ed8e655eefa3b82f535d7ea598c297b4471a937c4/av-18.1.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:5548b79e2bf1f59b3e9aedc918a72d9dc45b9adaac10ff9470d5dbdda0002e47", size = 37895673, upload-time = "2026-08-12T22:28:03.98Z" }, + { url = "https://files.pythonhosted.org/packages/e9/d8/04507c57249b399c3e4f23f01d221532f357338b5316fd2858fbd343127d/av-18.1.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:e7ea063f6690193ea335a1d592d6e0274350d45e2ed6af83ee107cb90cbfd84f", size = 39992431, upload-time = "2026-08-12T22:28:08.736Z" }, + { url = "https://files.pythonhosted.org/packages/d6/d6/bc4b95bea9c2353a7e4d62a3fcfad9adcf0f881741c6ce01ee179d539ce3/av-18.1.0-cp314-cp314t-win_amd64.whl", hash = "sha256:e4d48b9f12cad009cc72fe4f4099107de5e819c95f82767f4fd01a01481c0661", size = 28497798, upload-time = "2026-08-12T22:28:13.003Z" }, + { url = "https://files.pythonhosted.org/packages/c1/d2/0c277a46f12647c1833f40496e132fb6001e0d19e6144b5ea30896461feb/av-18.1.0-cp314-cp314t-win_arm64.whl", hash = "sha256:5cd9085028902c9880622bd37a12fd4b33060f06a52311f6f4867ca9f29a2c3b", size = 21421979, upload-time = "2026-08-12T22:28:16.48Z" }, +] + [[package]] name = "backend" version = "0.1.0" source = { virtual = "." } dependencies = [ + { name = "av" }, { name = "fastapi" }, + { name = "httpx" }, { name = "numpy" }, { name = "openai" }, { name = "pillow" }, @@ -48,7 +76,9 @@ dependencies = [ [package.metadata] requires-dist = [ + { name = "av", specifier = ">=18.1.0" }, { name = "fastapi", specifier = ">=0.141.1" }, + { name = "httpx", specifier = ">=0.28.1" }, { name = "numpy", specifier = ">=2.5.2" }, { name = "openai", specifier = ">=3.6.0" }, { name = "pillow", specifier = ">=12.3.0" }, @@ -57,6 +87,15 @@ requires-dist = [ { name = "uvicorn", extras = ["standard"], specifier = ">=0.52.4" }, ] +[[package]] +name = "certifi" +version = "2026.7.22" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/a3/c2/24167ea9858356b47a87a50d39908bfdb72ceeefe0041586e704e5376b3a/certifi-2026.7.22.tar.gz", hash = "sha256:741e2c3b351ddf169a738da9f2c048608ff7f2c5cc02f1ebc6b118bb090d5d55", size = 138112, upload-time = "2026-07-22T03:35:12.644Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/0b/a7/71ac2cff56fec219ed242bb11b8efb69fcc4bec75db06fb7bfe35de520e6/certifi-2026.7.22-py3-none-any.whl", hash = "sha256:62f22742b58a1a33014a2b6b706588a8d7e2a88ae7bd1a6ebe8c992928483775", size = 136983, upload-time = "2026-07-22T03:35:11.276Z" }, +] + [[package]] name = "click" version = "8.5.0" @@ -91,6 +130,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, ] +[[package]] +name = "httpcore" +version = "1.0.9" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "certifi" }, + { name = "h11" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/06/94/82699a10bca87a5556c9c59b5963f2d039dbd239f25bc2a63907a05a14cb/httpcore-1.0.9.tar.gz", hash = "sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8", size = 85484, upload-time = "2025-04-24T22:06:22.219Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/7e/f5/f66802a942d491edb555dd61e3a9961140fd64c90bce1eafd741609d334d/httpcore-1.0.9-py3-none-any.whl", hash = "sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55", size = 78784, upload-time = "2025-04-24T22:06:20.566Z" }, +] + [[package]] name = "httpcore2" version = "2.12.0" @@ -126,6 +178,21 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/48/63/b906c01e53f50d432c0defe43ce52764a111dc1bdd028bafbeb54dcfd008/httptools-0.8.0-cp314-cp314t-win_amd64.whl", hash = "sha256:384c17174464c8e873398b7af24f0b1f44d992c820328413951a625323155d77", size = 108209, upload-time = "2026-05-25T22:17:39.473Z" }, ] +[[package]] +name = "httpx" +version = "0.28.1" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "anyio" }, + { name = "certifi" }, + { name = "httpcore" }, + { name = "idna" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/b1/df/48c586a5fe32a0f01324ee087459e112ebb7224f646c0b5023f5e79e9956/httpx-0.28.1.tar.gz", hash = "sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc", size = 141406, upload-time = "2024-12-06T15:37:23.222Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/2a/39/e50c7c3a983047577ee07d2a9e53faf5a69493943ec3f6a384bdc792deb2/httpx-0.28.1-py3-none-any.whl", hash = "sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad", size = 73517, upload-time = "2024-12-06T15:37:21.509Z" }, +] + [[package]] name = "httpx2" version = "2.12.0"