Skip to content

Bulk asynchronous downloader for multiple file hosts

6.5 KB
Raw Blame
[project]
name = "cyberdrop-dl-patched"
version = "10.14.0"
authors = [{name = "Jacob B", email = "[email protected]"}]
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Environment :: Console",
    "Framework :: AsyncIO",
    "Intended Audience :: Developers",
    "Intended Audience :: End Users/Desktop",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python :: 3.14",
    "Programming Language :: Python :: 3.15"
]
dependencies = [
    "aiohappyeyeballs>=2.7.1",
    "aiohttp >=3.14.5, < 4.0.0",
    "aiolimiter >=1.3.0",
    "aiosqlite>=0.22.1",
    "async-mega-py >=2.5.0",
    "backports.zstd >=1.8.0; implementation_name=='cpython' and python_version < '3.14'",
    "beautifulsoup4 >=4.15.0",
    "brotli >=1.2.1; implementation_name=='cpython' and sys_platform!='ios'",
    "certifi >=2026.10.23",
    "cffi == 2.1.1",
    "curl-cffi >=0.17.0,<0.18.0; implementation_name == 'cpython' ",
    "cyclopts>=5.3.1,<6.0.0",
    "idna>=3.20",
    "imagesize >= 2.0.1",
    "m3u8 >=6.0.0",
    "markdown>=3.11.1",
    "multidict>=7.2.1",
    "propcache>=0.5.4",
    "psutil >=7.2.1; sys_platform != 'android'",
    "pycparser >= 3.12.0",
    "pycryptodome >=4.2.0",
    "pydantic == 2.14.1",
    "pyyaml >=6.0.3",
    "questionary>=2.1.1",
    "rich >=15.0.0",
    "rich-rst==2.2.0",
    "send2trash >=2.0.0",
    "soupsieve >=3.0.4",
    "typing-extensions>=4.16.0",
    "wassima>=2.1.5",
    "wcwidth>=0.9.4",
    "xxhash >=4.0.2"
]
description = "Bulk downloader for multiple file hosts"
keywords = ["asyncio", "bunkr", "cyberdrop", "downloader", "dropbox", "gofile", "google-drive", "mediafire", "mega.nz", "onedrive", "patreon", "pixeldrain", "twitch", "twitter"]
license = "GPL-3.0-only"
license-files = ["LICENSE"]
maintainers = [{name = "NTFSvolume", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.12"

[project.optional-dependencies]
apprise = [
    "apprise >=2.1.0,<3.0.0",
    "click ==8.5.0",
    "oauthlib>=4.0.0",
    "urllib3>=2.8.0",  # Transient dep with CVE
    'pywin32>=312; platform_system == "Windows"',
    'tzdata>=2026.5; platform_system == "Windows"'
]
lxml = ["lxml>=6.1.3"]
wreq = ["wreq>=0.13.0"]

[project.scripts]
cyberdrop = "cyberdrop_dl.__main__:main"
cyberdrop-dl = "cyberdrop_dl.__main__:main"
cyberdrop-dl-patched = "cyberdrop_dl.__main__:main"

[project.urls]
Changelog = "https://github.com/Cyberdrop-DL/cyberdrop-dl/blob/main/CHANGELOG.md"
Funding = 'https://github.com/sponsors/jbsparrow'
Issues = "https://github.com/Cyberdrop-DL/cyberdrop-dl/issues"
Repository = "https://github.com/Cyberdrop-DL/cyberdrop-dl"

[build-system]
build-backend = "uv_build"
requires = ["uv_build>=0.13.5,<0.14.0"]

[dependency-groups]
dev = [
    "prek>=0.5.7",
    "pytest-asyncio>=1.4.1",
    "pytest>=9.1.1",
    "ruff>=0.17.2,<0.18.0"
]

[tool.basedpyright]
failOnWarnings = false
include = ["cyberdrop_dl", "scripts"]
reportAny = "information"
reportExplicitAny = false
reportImplicitAbstractClass = false
reportImplicitOverride = "hint"
reportImplicitStringConcatenation = false
reportImportCycles = "warning"
reportPrivateUsage = "none"
reportUnreachable = "hint"
reportUnusedCallResult = false
typeCheckingMode = "recommended"

[tool.coverage.report]
exclude_also = [
    '@(abc\.)?abstractmethod',
    'class .*\bProtocol\):',
    'if __name__ == .__main__.:',
    'if TYPE_CHECKING:'
]

[tool.coverage.run]
omit = [
    "cyberdrop_dl/crawlers/*",
    "tests/*"
]

[tool.pytest.ini_options]
addopts = ["--tb=short", "-ra", "-s", "-v"]
asyncio_default_fixture_loop_scope = "session"
asyncio_default_test_loop_scope = "session"
asyncio_mode = "auto"
filterwarnings = [
    "error"
]
markers = [
    "crawler_test_case: tests that do full run with a crawler (making actual network requests)",
    "http: tests that makes real network requests"
]
minversion = "9.1.1"
strict_config = true
strict_markers = true
tmp_path_retention_count = "0"
tmp_path_retention_policy = "failed"

[tool.ruff]
line-length = 120
target-version = "py312"

[tool.ruff.lint]
select = [
    "ALL"
]
extend-safe-fixes = [
    "TC"  # move import from and to TYPE_CHECKING blocks
]
ignore = [
    "ANN",  # flake8-annotations
    "COM812",  # missing-trailing-comma
    "CPY001",  # Missing copyright notice at top of file
    "D",  # Documentation
    "E501",  # suppress line-too-long, let formatter decide
    "EM",  # flake8-errmsg
    "FIX002",  # line-contains-todo
    "FLY002",  # static-join-to-f-string
    "G004",  # logging-f-string
    "N806",  # uppercase variables in functions
    "PLC0415",  # import-outside-top-level
    "PLR2004",  # magic-value-comparison
    "PLW2901",  # redefined-loop-name
    "RET503",  # implicit-return
    "S101",  # assert
    "S110",  # try-except-pass
    "S311",  # suspicious-non-cryptographic-random-usage
    "S603",  # subprocess-without-shell-equals-true
    "S607",  # start-process-with-partial-path
    "SIM105",  # suppressible-exception
    "SLF001",  # private-member-access
    "TD",  # flake8-todos
    "TRY003",  # raise-vanilla-args
    "TRY400"  # error-instead-of-exception
]

[tool.ruff.lint.flake8-boolean-trap]
extend-allowed-calls = ["cyberdrop_dl.utils.enter_context"]

[tool.ruff.lint.flake8-import-conventions]
banned-from = [
    "base64",
    "cyberdrop_dl.aio",
    "cyberdrop_dl.stats",
    "cyberdrop_dl.tracebacks",
    "dataclasses",
    "datetime",
    "functools",
    "hashlib",
    "itertools",
    "json",
    "math",
    "os",
    "re",
    "sys",
    "time",
    "urllib.parse",
    "uuid",
    "yarl"
]

[tool.ruff.lint.flake8-tidy-imports.banned-api]
"asyncio.gather".msg = "Use aio.gather or aio.safe_gather instead"

[tool.ruff.lint.per-file-ignores]
"**/{tests,docs,scripts}/*" = [
    "E402",  # imports not at the top of the file.
    "INP001",  # implicit-namespace-package
    "PT011",  # pytest-raises-too-broad
    "T20",  # flake8-print
    "TID251"  # banned API
]
"__init__.py" = ["E402"]  # imports not at the top of the file.
"tests/crawlers/test_cases/*" = [
    "RUF001"  # String contains ambiguous chars.
]

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.tomlsort]
all = true
ignore_case = true
in_place = true
sort_first = ["name", "project", "select", "version"]
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4

[tool.uv]
default-groups = "all"
required-version = ">=0.13.5"

[tool.uv.build-backend]
module-name = ["cyberdrop_dl"]
module-root = ""
source-include = ["CHANGELOG.md"]