From b6b37753af15d0a9d193d05a9f17fb9120e5e518 Mon Sep 17 00:00:00 2001 From: trojvn Date: Mon, 19 May 2025 10:30:14 +0300 Subject: [PATCH] with proxy support --- poetry.lock | 30 +++++++++++++++++++++++++++++- pyproject.toml | 2 ++ 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 45ea7e8..8cc2155 100644 --- a/poetry.lock +++ b/poetry.lock @@ -11,6 +11,17 @@ files = [ {file = "aiofiles-23.2.1.tar.gz", hash = "sha256:84ec2218d8419404abcb9f0c02df3f34c6e0a68ed41072acfb1cef5cbc29051a"}, ] +[[package]] +name = "async-timeout" +version = "5.0.1" +description = "Timeout context manager for asyncio programs" +optional = false +python-versions = ">=3.8" +files = [ + {file = "async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c"}, + {file = "async_timeout-5.0.1.tar.gz", hash = "sha256:d9321a7a3d5a6a5e187e824d2fa0793ce379a202935782d555d6e9d2735677d3"}, +] + [[package]] name = "jsoner" version = "0.1.0" @@ -50,6 +61,23 @@ files = [ {file = "pyasn1-0.6.1.tar.gz", hash = "sha256:6f580d2bdd84365380830acf45550f2511469f673cb4a5ae3857a3170128b034"}, ] +[[package]] +name = "python-socks" +version = "2.1.1" +description = "Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python" +optional = false +python-versions = "*" +files = [ + {file = "python-socks-2.1.1.tar.gz", hash = "sha256:3bb68964c97690d5a3eab6c12a772f415725f295b148cbe1ca8870cb47ebcb96"}, + {file = "python_socks-2.1.1-py3-none-any.whl", hash = "sha256:6174278b0e005bd36b5d43681a0a3d816922852c9bccc2eceb17c60f4c8d4048"}, +] + +[package.extras] +anyio = ["anyio (>=3.3.4)"] +asyncio = ["async-timeout (>=3.0.1)"] +curio = ["curio (>=1.4)"] +trio = ["trio (>=0.16.0)"] + [[package]] name = "rsa" version = "4.9.1" @@ -85,4 +113,4 @@ cryptg = ["cryptg"] [metadata] lock-version = "2.0" python-versions = "^3.12" -content-hash = "d48b78dd5bc745693c770b4a2f96a8be461e21385bd8f84ae71f9906672cf433" +content-hash = "0302bb04698ae890994aa82ee4ad64ef42193bd6f1d0f987d10a448540bf3bf5" diff --git a/pyproject.toml b/pyproject.toml index fc01a65..b0117b7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,8 @@ readme = "README.md" python = "^3.12" telethon = "^1.37.0" jsoner = {git = "https://github.com/trojvn/jsoner.git"} +async-timeout = "^5.0.1" +python-socks = "2.1.1" [build-system]