drop 3.8, add pytest-retry (#592)
* drop 3.8, add pytest-retry * fix mypy * fix missing import
This commit is contained in:
parent
08d9f3049c
commit
828b1b9810
26 changed files with 321 additions and 362 deletions
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
|
|
@ -39,8 +39,7 @@ jobs:
|
|||
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
|
||||
cat <<< "$HEADERS_AUTH" > tests/browser.json
|
||||
cat <<< "$TEST_CFG" > tests/test.cfg
|
||||
(echo "===== tests attempt: 1 ====" && pdm run pytest) || \
|
||||
(echo "===== tests attempt: 2 ====" && pdm run pytest)
|
||||
pdm run pytest
|
||||
pdm run coverage xml
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v4
|
||||
|
|
|
|||
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
|
|
@ -26,6 +26,6 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.8"
|
||||
python-version: "3.9"
|
||||
- run: pip install mypy==1.10.0
|
||||
- run: mypy --install-types --non-interactive
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
repos:
|
||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||
# Ruff version.
|
||||
rev: v0.5.0
|
||||
rev: v0.5.1
|
||||
hooks:
|
||||
# Run the linter.
|
||||
- id: ruff
|
||||
|
|
|
|||
410
pdm.lock
generated
410
pdm.lock
generated
|
|
@ -5,42 +5,39 @@
|
|||
groups = ["default", "dev"]
|
||||
strategy = ["cross_platform", "inherit_metadata"]
|
||||
lock_version = "4.4.2"
|
||||
content_hash = "sha256:3eb5c7dfce0caab77fddd198e9f4dd2f6418f877af364c18147a85c6b3fdcd70"
|
||||
content_hash = "sha256:b45b0ba6ccf35995df6ec6d37e59c7b18c94840a78ef3727e2a8a8bdf678b84a"
|
||||
|
||||
[[package]]
|
||||
name = "alabaster"
|
||||
version = "0.7.13"
|
||||
requires_python = ">=3.6"
|
||||
summary = "A configurable sidebar-enabled Sphinx theme"
|
||||
version = "0.7.16"
|
||||
requires_python = ">=3.9"
|
||||
summary = "A light, configurable Sphinx theme"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "alabaster-0.7.13-py3-none-any.whl", hash = "sha256:1ee19aca801bbabb5ba3f5f258e4422dfa86f82f3e9cefb0859b283cdd7f62a3"},
|
||||
{file = "alabaster-0.7.13.tar.gz", hash = "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2"},
|
||||
{file = "alabaster-0.7.16-py3-none-any.whl", hash = "sha256:b46733c07dce03ae4e150330b975c75737fa60f0a7c591b6c8bf4928a28e2c92"},
|
||||
{file = "alabaster-0.7.16.tar.gz", hash = "sha256:75a8b99c28a5dad50dd7f8ccdd447a121ddb3892da9e53d1ca5cca3106d58d65"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "babel"
|
||||
version = "2.14.0"
|
||||
requires_python = ">=3.7"
|
||||
version = "2.15.0"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Internationalization utilities"
|
||||
groups = ["dev"]
|
||||
dependencies = [
|
||||
"pytz>=2015.7; python_version < \"3.9\"",
|
||||
]
|
||||
files = [
|
||||
{file = "Babel-2.14.0-py3-none-any.whl", hash = "sha256:efb1a25b7118e67ce3a259bed20545c29cb68be8ad2c784c83689981b7a57287"},
|
||||
{file = "Babel-2.14.0.tar.gz", hash = "sha256:6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363"},
|
||||
{file = "Babel-2.15.0-py3-none-any.whl", hash = "sha256:08706bdad8d0a3413266ab61bd6c34d0c28d6e1e7badf40a2cebe67644e2e1fb"},
|
||||
{file = "babel-2.15.0.tar.gz", hash = "sha256:8daf0e265d05768bc6c7a314cf1321e9a123afc328cc635c18622a2f30a04413"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "certifi"
|
||||
version = "2024.2.2"
|
||||
version = "2024.7.4"
|
||||
requires_python = ">=3.6"
|
||||
summary = "Python package for providing Mozilla's CA Bundle."
|
||||
groups = ["default", "dev"]
|
||||
files = [
|
||||
{file = "certifi-2024.2.2-py3-none-any.whl", hash = "sha256:dc383c07b76109f368f6106eee2b593b04a011ea4d55f652c6ca24a754d1cdd1"},
|
||||
{file = "certifi-2024.2.2.tar.gz", hash = "sha256:0569859f95fc761b18b45ef421b1290a0f65f147e92a1e5eb3e635f9a5e4e66f"},
|
||||
{file = "certifi-2024.7.4-py3-none-any.whl", hash = "sha256:c198e21b1289c2ab85ee4e67bb4b4ef3ead0892059901a8d5b622f24a1101e90"},
|
||||
{file = "certifi-2024.7.4.tar.gz", hash = "sha256:5a1e7645bc0ec61a09e26c36f6106dd4cf40c6db3a1fb6352b0244e7fb057c7b"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -96,21 +93,6 @@ files = [
|
|||
{file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"},
|
||||
{file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"},
|
||||
{file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"},
|
||||
{file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"},
|
||||
{file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"},
|
||||
{file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"},
|
||||
{file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"},
|
||||
|
|
@ -143,129 +125,109 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "coverage"
|
||||
version = "7.5.4"
|
||||
version = "7.6.0"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Code coverage measurement for Python"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "coverage-7.5.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6cfb5a4f556bb51aba274588200a46e4dd6b505fb1a5f8c5ae408222eb416f99"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2174e7c23e0a454ffe12267a10732c273243b4f2d50d07544a91198f05c48f47"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2214ee920787d85db1b6a0bd9da5f8503ccc8fcd5814d90796c2f2493a2f4d2e"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1137f46adb28e3813dec8c01fefadcb8c614f33576f672962e323b5128d9a68d"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b385d49609f8e9efc885790a5a0e89f2e3ae042cdf12958b6034cc442de428d3"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b4a474f799456e0eb46d78ab07303286a84a3140e9700b9e154cfebc8f527016"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5cd64adedf3be66f8ccee418473c2916492d53cbafbfcff851cbec5a8454b136"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e564c2cf45d2f44a9da56f4e3a26b2236504a496eb4cb0ca7221cd4cc7a9aca9"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-win32.whl", hash = "sha256:7076b4b3a5f6d2b5d7f1185fde25b1e54eb66e647a1dfef0e2c2bfaf9b4c88c8"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-win_amd64.whl", hash = "sha256:018a12985185038a5b2bcafab04ab833a9a0f2c59995b3cec07e10074c78635f"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:db14f552ac38f10758ad14dd7b983dbab424e731588d300c7db25b6f89e335b5"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3257fdd8e574805f27bb5342b77bc65578e98cbc004a92232106344053f319ba"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a6612c99081d8d6134005b1354191e103ec9705d7ba2754e848211ac8cacc6b"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d45d3cbd94159c468b9b8c5a556e3f6b81a8d1af2a92b77320e887c3e7a5d080"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed550e7442f278af76d9d65af48069f1fb84c9f745ae249c1a183c1e9d1b025c"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7a892be37ca35eb5019ec85402c3371b0f7cda5ab5056023a7f13da0961e60da"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8192794d120167e2a64721d88dbd688584675e86e15d0569599257566dec9bf0"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:820bc841faa502e727a48311948e0461132a9c8baa42f6b2b84a29ced24cc078"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-win32.whl", hash = "sha256:6aae5cce399a0f065da65c7bb1e8abd5c7a3043da9dceb429ebe1b289bc07806"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-win_amd64.whl", hash = "sha256:d2e344d6adc8ef81c5a233d3a57b3c7d5181f40e79e05e1c143da143ccb6377d"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:54317c2b806354cbb2dc7ac27e2b93f97096912cc16b18289c5d4e44fc663233"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:042183de01f8b6d531e10c197f7f0315a61e8d805ab29c5f7b51a01d62782747"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a6bb74ed465d5fb204b2ec41d79bcd28afccf817de721e8a807d5141c3426638"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3d45ff86efb129c599a3b287ae2e44c1e281ae0f9a9bad0edc202179bcc3a2e"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5013ed890dc917cef2c9f765c4c6a8ae9df983cd60dbb635df8ed9f4ebc9f555"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1014fbf665fef86cdfd6cb5b7371496ce35e4d2a00cda501cf9f5b9e6fced69f"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3684bc2ff328f935981847082ba4fdc950d58906a40eafa93510d1b54c08a66c"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:581ea96f92bf71a5ec0974001f900db495488434a6928a2ca7f01eee20c23805"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-win32.whl", hash = "sha256:73ca8fbc5bc622e54627314c1a6f1dfdd8db69788f3443e752c215f29fa87a0b"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-win_amd64.whl", hash = "sha256:cef4649ec906ea7ea5e9e796e68b987f83fa9a718514fe147f538cfeda76d7a7"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:cdd31315fc20868c194130de9ee6bfd99755cc9565edff98ecc12585b90be882"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:02ff6e898197cc1e9fa375581382b72498eb2e6d5fc0b53f03e496cfee3fac6d"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d05c16cf4b4c2fc880cb12ba4c9b526e9e5d5bb1d81313d4d732a5b9fe2b9d53"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c5986ee7ea0795a4095ac4d113cbb3448601efca7f158ec7f7087a6c705304e4"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5df54843b88901fdc2f598ac06737f03d71168fd1175728054c8f5a2739ac3e4"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:ab73b35e8d109bffbda9a3e91c64e29fe26e03e49addf5b43d85fc426dde11f9"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:aea072a941b033813f5e4814541fc265a5c12ed9720daef11ca516aeacd3bd7f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:16852febd96acd953b0d55fc842ce2dac1710f26729b31c80b940b9afcd9896f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-win32.whl", hash = "sha256:8f894208794b164e6bd4bba61fc98bf6b06be4d390cf2daacfa6eca0a6d2bb4f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-win_amd64.whl", hash = "sha256:e2afe743289273209c992075a5a4913e8d007d569a406ffed0bd080ea02b0633"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b95c3a8cb0463ba9f77383d0fa8c9194cf91f64445a63fc26fb2327e1e1eb088"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3d7564cc09dd91b5a6001754a5b3c6ecc4aba6323baf33a12bd751036c998be4"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44da56a2589b684813f86d07597fdf8a9c6ce77f58976727329272f5a01f99f7"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e16f3d6b491c48c5ae726308e6ab1e18ee830b4cdd6913f2d7f77354b33f91c8"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dbc5958cb471e5a5af41b0ddaea96a37e74ed289535e8deca404811f6cb0bc3d"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:a04e990a2a41740b02d6182b498ee9796cf60eefe40cf859b016650147908029"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:ddbd2f9713a79e8e7242d7c51f1929611e991d855f414ca9996c20e44a895f7c"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b1ccf5e728ccf83acd313c89f07c22d70d6c375a9c6f339233dcf792094bcbf7"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-win32.whl", hash = "sha256:56b4eafa21c6c175b3ede004ca12c653a88b6f922494b023aeb1e836df953ace"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:65e528e2e921ba8fd67d9055e6b9f9e34b21ebd6768ae1c1723f4ea6ace1234d"},
|
||||
{file = "coverage-7.5.4-pp38.pp39.pp310-none-any.whl", hash = "sha256:79b356f3dd5b26f3ad23b35c75dbdaf1f9e2450b6bcefc6d0825ea0aa3f86ca5"},
|
||||
{file = "coverage-7.5.4.tar.gz", hash = "sha256:a44963520b069e12789d0faea4e9fdb1e410cdc4aab89d94f7f55cbb7fef0353"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dff044f661f59dace805eedb4a7404c573b6ff0cdba4a524141bc63d7be5c7fd"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a8659fd33ee9e6ca03950cfdcdf271d645cf681609153f218826dd9805ab585c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7792f0ab20df8071d669d929c75c97fecfa6bcab82c10ee4adb91c7a54055463"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4b3cd1ca7cd73d229487fa5caca9e4bc1f0bca96526b922d61053ea751fe791"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7e128f85c0b419907d1f38e616c4f1e9f1d1b37a7949f44df9a73d5da5cd53c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a94925102c89247530ae1dab7dc02c690942566f22e189cbd53579b0693c0783"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dcd070b5b585b50e6617e8972f3fbbee786afca71b1936ac06257f7e178f00f6"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d50a252b23b9b4dfeefc1f663c568a221092cbaded20a05a11665d0dbec9b8fb"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-win32.whl", hash = "sha256:0e7b27d04131c46e6894f23a4ae186a6a2207209a05df5b6ad4caee6d54a222c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:54dece71673b3187c86226c3ca793c5f891f9fc3d8aa183f2e3653da18566169"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c7b525ab52ce18c57ae232ba6f7010297a87ced82a2383b1afd238849c1ff933"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bea27c4269234e06f621f3fac3925f56ff34bc14521484b8f66a580aacc2e7d"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed8d1d1821ba5fc88d4a4f45387b65de52382fa3ef1f0115a4f7a20cdfab0e94"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01c322ef2bbe15057bc4bf132b525b7e3f7206f071799eb8aa6ad1940bcf5fb1"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03cafe82c1b32b770a29fd6de923625ccac3185a54a5e66606da26d105f37dac"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0d1b923fc4a40c5832be4f35a5dab0e5ff89cddf83bb4174499e02ea089daf57"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4b03741e70fb811d1a9a1d75355cf391f274ed85847f4b78e35459899f57af4d"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a73d18625f6a8a1cbb11eadc1d03929f9510f4131879288e3f7922097a429f63"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-win32.whl", hash = "sha256:65fa405b837060db569a61ec368b74688f429b32fa47a8929a7a2f9b47183713"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:6379688fb4cfa921ae349c76eb1a9ab26b65f32b03d46bb0eed841fd4cb6afb1"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f7db0b6ae1f96ae41afe626095149ecd1b212b424626175a6633c2999eaad45b"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bbdf9a72403110a3bdae77948b8011f644571311c2fb35ee15f0f10a8fc082e8"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc44bf0315268e253bf563f3560e6c004efe38f76db03a1558274a6e04bf5d5"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:da8549d17489cd52f85a9829d0e1d91059359b3c54a26f28bec2c5d369524807"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0086cd4fc71b7d485ac93ca4239c8f75732c2ae3ba83f6be1c9be59d9e2c6382"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1fad32ee9b27350687035cb5fdf9145bc9cf0a094a9577d43e909948ebcfa27b"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:044a0985a4f25b335882b0966625270a8d9db3d3409ddc49a4eb00b0ef5e8cee"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:76d5f82213aa78098b9b964ea89de4617e70e0d43e97900c2778a50856dac605"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-win32.whl", hash = "sha256:3c59105f8d58ce500f348c5b56163a4113a440dad6daa2294b5052a10db866da"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:ca5d79cfdae420a1d52bf177de4bc2289c321d6c961ae321503b2ca59c17ae67"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7221f9ac9dad9492cecab6f676b3eaf9185141539d5c9689d13fd6b0d7de840c"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ddaaa91bfc4477d2871442bbf30a125e8fe6b05da8a0015507bfbf4718228ab2"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4cbe651f3904e28f3a55d6f371203049034b4ddbce65a54527a3f189ca3b390"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:831b476d79408ab6ccfadaaf199906c833f02fdb32c9ab907b1d4aa0713cfa3b"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46c3d091059ad0b9c59d1034de74a7f36dcfa7f6d3bde782c49deb42438f2450"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4d5fae0a22dc86259dee66f2cc6c1d3e490c4a1214d7daa2a93d07491c5c04b6"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:07ed352205574aad067482e53dd606926afebcb5590653121063fbf4e2175166"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:49c76cdfa13015c4560702574bad67f0e15ca5a2872c6a125f6327ead2b731dd"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-win32.whl", hash = "sha256:482855914928c8175735a2a59c8dc5806cf7d8f032e4820d52e845d1f731dca2"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:543ef9179bc55edfd895154a51792b01c017c87af0ebaae092720152e19e42ca"},
|
||||
{file = "coverage-7.6.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:6fe885135c8a479d3e37a7aae61cbd3a0fb2deccb4dda3c25f92a49189f766d6"},
|
||||
{file = "coverage-7.6.0.tar.gz", hash = "sha256:289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "coverage"
|
||||
version = "7.5.4"
|
||||
version = "7.6.0"
|
||||
extras = ["toml"]
|
||||
requires_python = ">=3.8"
|
||||
summary = "Code coverage measurement for Python"
|
||||
groups = ["dev"]
|
||||
dependencies = [
|
||||
"coverage==7.5.4",
|
||||
"coverage==7.6.0",
|
||||
"tomli; python_full_version <= \"3.11.0a6\"",
|
||||
]
|
||||
files = [
|
||||
{file = "coverage-7.5.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6cfb5a4f556bb51aba274588200a46e4dd6b505fb1a5f8c5ae408222eb416f99"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2174e7c23e0a454ffe12267a10732c273243b4f2d50d07544a91198f05c48f47"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2214ee920787d85db1b6a0bd9da5f8503ccc8fcd5814d90796c2f2493a2f4d2e"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1137f46adb28e3813dec8c01fefadcb8c614f33576f672962e323b5128d9a68d"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b385d49609f8e9efc885790a5a0e89f2e3ae042cdf12958b6034cc442de428d3"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:b4a474f799456e0eb46d78ab07303286a84a3140e9700b9e154cfebc8f527016"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:5cd64adedf3be66f8ccee418473c2916492d53cbafbfcff851cbec5a8454b136"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e564c2cf45d2f44a9da56f4e3a26b2236504a496eb4cb0ca7221cd4cc7a9aca9"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-win32.whl", hash = "sha256:7076b4b3a5f6d2b5d7f1185fde25b1e54eb66e647a1dfef0e2c2bfaf9b4c88c8"},
|
||||
{file = "coverage-7.5.4-cp310-cp310-win_amd64.whl", hash = "sha256:018a12985185038a5b2bcafab04ab833a9a0f2c59995b3cec07e10074c78635f"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:db14f552ac38f10758ad14dd7b983dbab424e731588d300c7db25b6f89e335b5"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3257fdd8e574805f27bb5342b77bc65578e98cbc004a92232106344053f319ba"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3a6612c99081d8d6134005b1354191e103ec9705d7ba2754e848211ac8cacc6b"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d45d3cbd94159c468b9b8c5a556e3f6b81a8d1af2a92b77320e887c3e7a5d080"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ed550e7442f278af76d9d65af48069f1fb84c9f745ae249c1a183c1e9d1b025c"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:7a892be37ca35eb5019ec85402c3371b0f7cda5ab5056023a7f13da0961e60da"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:8192794d120167e2a64721d88dbd688584675e86e15d0569599257566dec9bf0"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:820bc841faa502e727a48311948e0461132a9c8baa42f6b2b84a29ced24cc078"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-win32.whl", hash = "sha256:6aae5cce399a0f065da65c7bb1e8abd5c7a3043da9dceb429ebe1b289bc07806"},
|
||||
{file = "coverage-7.5.4-cp311-cp311-win_amd64.whl", hash = "sha256:d2e344d6adc8ef81c5a233d3a57b3c7d5181f40e79e05e1c143da143ccb6377d"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:54317c2b806354cbb2dc7ac27e2b93f97096912cc16b18289c5d4e44fc663233"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:042183de01f8b6d531e10c197f7f0315a61e8d805ab29c5f7b51a01d62782747"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a6bb74ed465d5fb204b2ec41d79bcd28afccf817de721e8a807d5141c3426638"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b3d45ff86efb129c599a3b287ae2e44c1e281ae0f9a9bad0edc202179bcc3a2e"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5013ed890dc917cef2c9f765c4c6a8ae9df983cd60dbb635df8ed9f4ebc9f555"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1014fbf665fef86cdfd6cb5b7371496ce35e4d2a00cda501cf9f5b9e6fced69f"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:3684bc2ff328f935981847082ba4fdc950d58906a40eafa93510d1b54c08a66c"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:581ea96f92bf71a5ec0974001f900db495488434a6928a2ca7f01eee20c23805"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-win32.whl", hash = "sha256:73ca8fbc5bc622e54627314c1a6f1dfdd8db69788f3443e752c215f29fa87a0b"},
|
||||
{file = "coverage-7.5.4-cp312-cp312-win_amd64.whl", hash = "sha256:cef4649ec906ea7ea5e9e796e68b987f83fa9a718514fe147f538cfeda76d7a7"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:cdd31315fc20868c194130de9ee6bfd99755cc9565edff98ecc12585b90be882"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:02ff6e898197cc1e9fa375581382b72498eb2e6d5fc0b53f03e496cfee3fac6d"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d05c16cf4b4c2fc880cb12ba4c9b526e9e5d5bb1d81313d4d732a5b9fe2b9d53"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c5986ee7ea0795a4095ac4d113cbb3448601efca7f158ec7f7087a6c705304e4"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5df54843b88901fdc2f598ac06737f03d71168fd1175728054c8f5a2739ac3e4"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:ab73b35e8d109bffbda9a3e91c64e29fe26e03e49addf5b43d85fc426dde11f9"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_i686.whl", hash = "sha256:aea072a941b033813f5e4814541fc265a5c12ed9720daef11ca516aeacd3bd7f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:16852febd96acd953b0d55fc842ce2dac1710f26729b31c80b940b9afcd9896f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-win32.whl", hash = "sha256:8f894208794b164e6bd4bba61fc98bf6b06be4d390cf2daacfa6eca0a6d2bb4f"},
|
||||
{file = "coverage-7.5.4-cp38-cp38-win_amd64.whl", hash = "sha256:e2afe743289273209c992075a5a4913e8d007d569a406ffed0bd080ea02b0633"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b95c3a8cb0463ba9f77383d0fa8c9194cf91f64445a63fc26fb2327e1e1eb088"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3d7564cc09dd91b5a6001754a5b3c6ecc4aba6323baf33a12bd751036c998be4"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:44da56a2589b684813f86d07597fdf8a9c6ce77f58976727329272f5a01f99f7"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e16f3d6b491c48c5ae726308e6ab1e18ee830b4cdd6913f2d7f77354b33f91c8"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dbc5958cb471e5a5af41b0ddaea96a37e74ed289535e8deca404811f6cb0bc3d"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:a04e990a2a41740b02d6182b498ee9796cf60eefe40cf859b016650147908029"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:ddbd2f9713a79e8e7242d7c51f1929611e991d855f414ca9996c20e44a895f7c"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:b1ccf5e728ccf83acd313c89f07c22d70d6c375a9c6f339233dcf792094bcbf7"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-win32.whl", hash = "sha256:56b4eafa21c6c175b3ede004ca12c653a88b6f922494b023aeb1e836df953ace"},
|
||||
{file = "coverage-7.5.4-cp39-cp39-win_amd64.whl", hash = "sha256:65e528e2e921ba8fd67d9055e6b9f9e34b21ebd6768ae1c1723f4ea6ace1234d"},
|
||||
{file = "coverage-7.5.4-pp38.pp39.pp310-none-any.whl", hash = "sha256:79b356f3dd5b26f3ad23b35c75dbdaf1f9e2450b6bcefc6d0825ea0aa3f86ca5"},
|
||||
{file = "coverage-7.5.4.tar.gz", hash = "sha256:a44963520b069e12789d0faea4e9fdb1e410cdc4aab89d94f7f55cbb7fef0353"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dff044f661f59dace805eedb4a7404c573b6ff0cdba4a524141bc63d7be5c7fd"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:a8659fd33ee9e6ca03950cfdcdf271d645cf681609153f218826dd9805ab585c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7792f0ab20df8071d669d929c75c97fecfa6bcab82c10ee4adb91c7a54055463"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4b3cd1ca7cd73d229487fa5caca9e4bc1f0bca96526b922d61053ea751fe791"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e7e128f85c0b419907d1f38e616c4f1e9f1d1b37a7949f44df9a73d5da5cd53c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:a94925102c89247530ae1dab7dc02c690942566f22e189cbd53579b0693c0783"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_i686.whl", hash = "sha256:dcd070b5b585b50e6617e8972f3fbbee786afca71b1936ac06257f7e178f00f6"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:d50a252b23b9b4dfeefc1f663c568a221092cbaded20a05a11665d0dbec9b8fb"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-win32.whl", hash = "sha256:0e7b27d04131c46e6894f23a4ae186a6a2207209a05df5b6ad4caee6d54a222c"},
|
||||
{file = "coverage-7.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:54dece71673b3187c86226c3ca793c5f891f9fc3d8aa183f2e3653da18566169"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:c7b525ab52ce18c57ae232ba6f7010297a87ced82a2383b1afd238849c1ff933"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4bea27c4269234e06f621f3fac3925f56ff34bc14521484b8f66a580aacc2e7d"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ed8d1d1821ba5fc88d4a4f45387b65de52382fa3ef1f0115a4f7a20cdfab0e94"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:01c322ef2bbe15057bc4bf132b525b7e3f7206f071799eb8aa6ad1940bcf5fb1"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:03cafe82c1b32b770a29fd6de923625ccac3185a54a5e66606da26d105f37dac"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0d1b923fc4a40c5832be4f35a5dab0e5ff89cddf83bb4174499e02ea089daf57"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:4b03741e70fb811d1a9a1d75355cf391f274ed85847f4b78e35459899f57af4d"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:a73d18625f6a8a1cbb11eadc1d03929f9510f4131879288e3f7922097a429f63"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-win32.whl", hash = "sha256:65fa405b837060db569a61ec368b74688f429b32fa47a8929a7a2f9b47183713"},
|
||||
{file = "coverage-7.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:6379688fb4cfa921ae349c76eb1a9ab26b65f32b03d46bb0eed841fd4cb6afb1"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:f7db0b6ae1f96ae41afe626095149ecd1b212b424626175a6633c2999eaad45b"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:bbdf9a72403110a3bdae77948b8011f644571311c2fb35ee15f0f10a8fc082e8"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cc44bf0315268e253bf563f3560e6c004efe38f76db03a1558274a6e04bf5d5"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:da8549d17489cd52f85a9829d0e1d91059359b3c54a26f28bec2c5d369524807"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0086cd4fc71b7d485ac93ca4239c8f75732c2ae3ba83f6be1c9be59d9e2c6382"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1fad32ee9b27350687035cb5fdf9145bc9cf0a094a9577d43e909948ebcfa27b"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:044a0985a4f25b335882b0966625270a8d9db3d3409ddc49a4eb00b0ef5e8cee"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:76d5f82213aa78098b9b964ea89de4617e70e0d43e97900c2778a50856dac605"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-win32.whl", hash = "sha256:3c59105f8d58ce500f348c5b56163a4113a440dad6daa2294b5052a10db866da"},
|
||||
{file = "coverage-7.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:ca5d79cfdae420a1d52bf177de4bc2289c321d6c961ae321503b2ca59c17ae67"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7221f9ac9dad9492cecab6f676b3eaf9185141539d5c9689d13fd6b0d7de840c"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ddaaa91bfc4477d2871442bbf30a125e8fe6b05da8a0015507bfbf4718228ab2"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4cbe651f3904e28f3a55d6f371203049034b4ddbce65a54527a3f189ca3b390"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:831b476d79408ab6ccfadaaf199906c833f02fdb32c9ab907b1d4aa0713cfa3b"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46c3d091059ad0b9c59d1034de74a7f36dcfa7f6d3bde782c49deb42438f2450"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:4d5fae0a22dc86259dee66f2cc6c1d3e490c4a1214d7daa2a93d07491c5c04b6"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_i686.whl", hash = "sha256:07ed352205574aad067482e53dd606926afebcb5590653121063fbf4e2175166"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:49c76cdfa13015c4560702574bad67f0e15ca5a2872c6a125f6327ead2b731dd"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-win32.whl", hash = "sha256:482855914928c8175735a2a59c8dc5806cf7d8f032e4820d52e845d1f731dca2"},
|
||||
{file = "coverage-7.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:543ef9179bc55edfd895154a51792b01c017c87af0ebaae092720152e19e42ca"},
|
||||
{file = "coverage-7.6.0-pp38.pp39.pp310-none-any.whl", hash = "sha256:6fe885135c8a479d3e37a7aae61cbd3a0fb2deccb4dda3c25f92a49189f766d6"},
|
||||
{file = "coverage-7.6.0.tar.gz", hash = "sha256:289cc803fa1dc901f84701ac10c9ee873619320f2f9aff38794db4a4a0268d51"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -281,14 +243,14 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "exceptiongroup"
|
||||
version = "1.2.1"
|
||||
version = "1.2.2"
|
||||
requires_python = ">=3.7"
|
||||
summary = "Backport of PEP 654 (exception groups)"
|
||||
groups = ["dev"]
|
||||
marker = "python_version < \"3.11\""
|
||||
files = [
|
||||
{file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"},
|
||||
{file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"},
|
||||
{file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"},
|
||||
{file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -315,7 +277,7 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "importlib-metadata"
|
||||
version = "7.1.0"
|
||||
version = "8.0.0"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Read metadata from Python packages"
|
||||
groups = ["dev"]
|
||||
|
|
@ -324,8 +286,8 @@ dependencies = [
|
|||
"zipp>=0.5",
|
||||
]
|
||||
files = [
|
||||
{file = "importlib_metadata-7.1.0-py3-none-any.whl", hash = "sha256:30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570"},
|
||||
{file = "importlib_metadata-7.1.0.tar.gz", hash = "sha256:b78938b926ee8d5f020fc4772d487045805a55ddbad2ecf21c6d60938dc7fcd2"},
|
||||
{file = "importlib_metadata-8.0.0-py3-none-any.whl", hash = "sha256:15584cf2b1bf449d98ff8a6ff1abef57bf20f3ac6454f431736cd3e660921b2f"},
|
||||
{file = "importlib_metadata-8.0.0.tar.gz", hash = "sha256:188bd24e4c346d3f0a933f275c2fec67050326a856b9a359881d7c2a697e8812"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -341,7 +303,7 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "jinja2"
|
||||
version = "3.1.3"
|
||||
version = "3.1.4"
|
||||
requires_python = ">=3.7"
|
||||
summary = "A very fast and expressive template engine."
|
||||
groups = ["dev"]
|
||||
|
|
@ -349,8 +311,8 @@ dependencies = [
|
|||
"MarkupSafe>=2.0",
|
||||
]
|
||||
files = [
|
||||
{file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"},
|
||||
{file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"},
|
||||
{file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"},
|
||||
{file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -390,16 +352,6 @@ files = [
|
|||
{file = "MarkupSafe-2.1.5-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:58c98fee265677f63a4385256a6d7683ab1832f3ddd1e66fe948d5880c21a169"},
|
||||
{file = "MarkupSafe-2.1.5-cp312-cp312-win32.whl", hash = "sha256:8590b4ae07a35970728874632fed7bd57b26b0102df2d2b233b6d9d82f6c62ad"},
|
||||
{file = "MarkupSafe-2.1.5-cp312-cp312-win_amd64.whl", hash = "sha256:823b65d8706e32ad2df51ed89496147a42a2a6e01c13cfb6ffb8b1e92bc910bb"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:656f7526c69fac7f600bd1f400991cc282b417d17539a1b228617081106feb4a"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:97cafb1f3cbcd3fd2b6fbfb99ae11cdb14deea0736fc2b0952ee177f2b813a46"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f3fbcb7ef1f16e48246f704ab79d79da8a46891e2da03f8783a5b6fa41a9532"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fa9db3f79de01457b03d4f01b34cf91bc0048eb2c3846ff26f66687c2f6d16ab"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffee1f21e5ef0d712f9033568f8344d5da8cc2869dbd08d87c84656e6a2d2f68"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:5dedb4db619ba5a2787a94d877bc8ffc0566f92a01c0ef214865e54ecc9ee5e0"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:30b600cf0a7ac9234b2638fbc0fb6158ba5bdcdf46aeb631ead21248b9affbc4"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8dd717634f5a044f860435c1d8c16a270ddf0ef8588d4887037c5028b859b0c3"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-win32.whl", hash = "sha256:daa4ee5a243f0f20d528d939d06670a298dd39b1ad5f8a72a4275124a7819eff"},
|
||||
{file = "MarkupSafe-2.1.5-cp38-cp38-win_amd64.whl", hash = "sha256:619bc166c4f2de5caa5a633b8b7326fbe98e0ccbfacabd87268a2b15ff73a029"},
|
||||
{file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:7a68b554d356a91cce1236aa7682dc01df0edba8d043fd1ce607c49dd3c1edcf"},
|
||||
{file = "MarkupSafe-2.1.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:db0b55e0f3cc0be60c1f19efdde9a637c32740486004f20d1cff53c3c0ece4d2"},
|
||||
{file = "MarkupSafe-2.1.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3e53af139f8579a6d5f7b76549125f0d94d7e630761a2111bc431fd820e163b8"},
|
||||
|
|
@ -440,11 +392,6 @@ files = [
|
|||
{file = "mypy-1.10.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6bacf8f3a3d7d849f40ca6caea5c055122efe70e81480c8328ad29c55c69e93e"},
|
||||
{file = "mypy-1.10.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:701b5f71413f1e9855566a34d6e9d12624e9e0a8818a5704d74d6b0402e66c04"},
|
||||
{file = "mypy-1.10.1-cp312-cp312-win_amd64.whl", hash = "sha256:3c4c2992f6ea46ff7fce0072642cfb62af7a2484efe69017ed8b095f7b39ef31"},
|
||||
{file = "mypy-1.10.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:604282c886497645ffb87b8f35a57ec773a4a2721161e709a4422c1636ddde5c"},
|
||||
{file = "mypy-1.10.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37fd87cab83f09842653f08de066ee68f1182b9b5282e4634cdb4b407266bade"},
|
||||
{file = "mypy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8addf6313777dbb92e9564c5d32ec122bf2c6c39d683ea64de6a1fd98b90fe37"},
|
||||
{file = "mypy-1.10.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5cc3ca0a244eb9a5249c7c583ad9a7e881aa5d7b73c35652296ddcdb33b2b9c7"},
|
||||
{file = "mypy-1.10.1-cp38-cp38-win_amd64.whl", hash = "sha256:1b3a2ffce52cc4dbaeee4df762f20a2905aa171ef157b82192f2e2f368eec05d"},
|
||||
{file = "mypy-1.10.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:fe85ed6836165d52ae8b88f99527d3d1b2362e0cb90b005409b8bed90e9059b3"},
|
||||
{file = "mypy-1.10.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c2ae450d60d7d020d67ab440c6e3fae375809988119817214440033f26ddf7bf"},
|
||||
{file = "mypy-1.10.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6be84c06e6abd72f960ba9a71561c14137a583093ffcf9bbfaf5e613d63fa531"},
|
||||
|
|
@ -467,13 +414,13 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "packaging"
|
||||
version = "24.0"
|
||||
requires_python = ">=3.7"
|
||||
version = "24.1"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Core utilities for Python packages"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "packaging-24.0-py3-none-any.whl", hash = "sha256:2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5"},
|
||||
{file = "packaging-24.0.tar.gz", hash = "sha256:eb82c5e3e56209074766e6885bb04b8c38a0c015d0a30036ebe7ece34c9989e9"},
|
||||
{file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"},
|
||||
{file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -489,13 +436,13 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "pygments"
|
||||
version = "2.17.2"
|
||||
requires_python = ">=3.7"
|
||||
version = "2.18.0"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Pygments is a syntax highlighting package written in Python."
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "pygments-2.17.2-py3-none-any.whl", hash = "sha256:b27c2826c47d0f3219f29554824c30c5e8945175d888647acd804ddd04af846c"},
|
||||
{file = "pygments-2.17.2.tar.gz", hash = "sha256:da46cec9fd2de5be3a8a784f434e4c4ab670b4ff54d605c4c2717e9d49c4c367"},
|
||||
{file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"},
|
||||
{file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -533,14 +480,17 @@ files = [
|
|||
]
|
||||
|
||||
[[package]]
|
||||
name = "pytz"
|
||||
version = "2024.1"
|
||||
summary = "World timezone definitions, modern and historical"
|
||||
name = "pytest-retry"
|
||||
version = "1.6.3"
|
||||
requires_python = ">=3.9"
|
||||
summary = "Adds the ability to retry flaky tests in CI environments"
|
||||
groups = ["dev"]
|
||||
marker = "python_version < \"3.9\""
|
||||
dependencies = [
|
||||
"pytest>=7.0.0",
|
||||
]
|
||||
files = [
|
||||
{file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"},
|
||||
{file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"},
|
||||
{file = "pytest_retry-1.6.3-py3-none-any.whl", hash = "sha256:e96f7df77ee70b0838d1085f9c3b8b5b7d74bf8947a0baf32e2b8c71b27683c8"},
|
||||
{file = "pytest_retry-1.6.3.tar.gz", hash = "sha256:36ccfa11c8c8f9ddad5e20375182146d040c20c4a791745139c5a99ddf1b557d"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -562,29 +512,29 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "ruff"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
requires_python = ">=3.7"
|
||||
summary = "An extremely fast Python linter and code formatter, written in Rust."
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "ruff-0.5.0-py3-none-linux_armv6l.whl", hash = "sha256:ee770ea8ab38918f34e7560a597cc0a8c9a193aaa01bfbd879ef43cb06bd9c4c"},
|
||||
{file = "ruff-0.5.0-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:38f3b8327b3cb43474559d435f5fa65dacf723351c159ed0dc567f7ab735d1b6"},
|
||||
{file = "ruff-0.5.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:7594f8df5404a5c5c8f64b8311169879f6cf42142da644c7e0ba3c3f14130370"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:adc7012d6ec85032bc4e9065110df205752d64010bed5f958d25dbee9ce35de3"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d505fb93b0fabef974b168d9b27c3960714d2ecda24b6ffa6a87ac432905ea38"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9dc5cfd3558f14513ed0d5b70ce531e28ea81a8a3b1b07f0f48421a3d9e7d80a"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:db3ca35265de239a1176d56a464b51557fce41095c37d6c406e658cf80bbb362"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b1a321c4f68809fddd9b282fab6a8d8db796b270fff44722589a8b946925a2a8"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2c4dfcd8d34b143916994b3876b63d53f56724c03f8c1a33a253b7b1e6bf2a7d"},
|
||||
{file = "ruff-0.5.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:81e5facfc9f4a674c6a78c64d38becfbd5e4f739c31fcd9ce44c849f1fad9e4c"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:e589e27971c2a3efff3fadafb16e5aef7ff93250f0134ec4b52052b673cf988d"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:d2ffbc3715a52b037bcb0f6ff524a9367f642cdc5817944f6af5479bbb2eb50e"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_i686.whl", hash = "sha256:cd096e23c6a4f9c819525a437fa0a99d1c67a1b6bb30948d46f33afbc53596cf"},
|
||||
{file = "ruff-0.5.0-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:46e193b36f2255729ad34a49c9a997d506e58f08555366b2108783b3064a0e1e"},
|
||||
{file = "ruff-0.5.0-py3-none-win32.whl", hash = "sha256:49141d267100f5ceff541b4e06552e98527870eafa1acc9dec9139c9ec5af64c"},
|
||||
{file = "ruff-0.5.0-py3-none-win_amd64.whl", hash = "sha256:e9118f60091047444c1b90952736ee7b1792910cab56e9b9a9ac20af94cd0440"},
|
||||
{file = "ruff-0.5.0-py3-none-win_arm64.whl", hash = "sha256:ed5c4df5c1fb4518abcb57725b576659542bdbe93366f4f329e8f398c4b71178"},
|
||||
{file = "ruff-0.5.0.tar.gz", hash = "sha256:eb641b5873492cf9bd45bc9c5ae5320648218e04386a5f0c264ad6ccce8226a1"},
|
||||
{file = "ruff-0.5.1-py3-none-linux_armv6l.whl", hash = "sha256:6ecf968fcf94d942d42b700af18ede94b07521bd188aaf2cd7bc898dd8cb63b6"},
|
||||
{file = "ruff-0.5.1-py3-none-macosx_10_12_x86_64.whl", hash = "sha256:204fb0a472f00f2e6280a7c8c7c066e11e20e23a37557d63045bf27a616ba61c"},
|
||||
{file = "ruff-0.5.1-py3-none-macosx_11_0_arm64.whl", hash = "sha256:d235968460e8758d1e1297e1de59a38d94102f60cafb4d5382033c324404ee9d"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:38beace10b8d5f9b6bdc91619310af6d63dd2019f3fb2d17a2da26360d7962fa"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5e478d2f09cf06add143cf8c4540ef77b6599191e0c50ed976582f06e588c994"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f0368d765eec8247b8550251c49ebb20554cc4e812f383ff9f5bf0d5d94190b0"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_ppc64.manylinux2014_ppc64.whl", hash = "sha256:3a9a9a1b582e37669b0138b7c1d9d60b9edac880b80eb2baba6d0e566bdeca4d"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bdd9f723e16003623423affabcc0a807a66552ee6a29f90eddad87a40c750b78"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:be9fd62c1e99539da05fcdc1e90d20f74aec1b7a1613463ed77870057cd6bd96"},
|
||||
{file = "ruff-0.5.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e216fc75a80ea1fbd96af94a6233d90190d5b65cc3d5dfacf2bd48c3e067d3e1"},
|
||||
{file = "ruff-0.5.1-py3-none-musllinux_1_2_aarch64.whl", hash = "sha256:c4c2112e9883a40967827d5c24803525145e7dab315497fae149764979ac7929"},
|
||||
{file = "ruff-0.5.1-py3-none-musllinux_1_2_armv7l.whl", hash = "sha256:dfaf11c8a116394da3b65cd4b36de30d8552fa45b8119b9ef5ca6638ab964fa3"},
|
||||
{file = "ruff-0.5.1-py3-none-musllinux_1_2_i686.whl", hash = "sha256:d7ceb9b2fe700ee09a0c6b192c5ef03c56eb82a0514218d8ff700f6ade004108"},
|
||||
{file = "ruff-0.5.1-py3-none-musllinux_1_2_x86_64.whl", hash = "sha256:bac6288e82f6296f82ed5285f597713acb2a6ae26618ffc6b429c597b392535c"},
|
||||
{file = "ruff-0.5.1-py3-none-win32.whl", hash = "sha256:5c441d9c24ec09e1cb190a04535c5379b36b73c4bc20aa180c54812c27d1cca4"},
|
||||
{file = "ruff-0.5.1-py3-none-win_amd64.whl", hash = "sha256:b1789bf2cd3d1b5a7d38397cac1398ddf3ad7f73f4de01b1e913e2abc7dfc51d"},
|
||||
{file = "ruff-0.5.1-py3-none-win_arm64.whl", hash = "sha256:2875b7596a740cbbd492f32d24be73e545a4ce0a3daf51e4f4e609962bfd3cd2"},
|
||||
{file = "ruff-0.5.1.tar.gz", hash = "sha256:3164488aebd89b1745b47fd00604fb4358d774465f20d1fcd907f9c0fc1b0655"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -645,35 +595,35 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "sphinxcontrib-applehelp"
|
||||
version = "1.0.4"
|
||||
requires_python = ">=3.8"
|
||||
version = "1.0.8"
|
||||
requires_python = ">=3.9"
|
||||
summary = "sphinxcontrib-applehelp is a Sphinx extension which outputs Apple help books"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "sphinxcontrib-applehelp-1.0.4.tar.gz", hash = "sha256:828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e"},
|
||||
{file = "sphinxcontrib_applehelp-1.0.4-py3-none-any.whl", hash = "sha256:29d341f67fb0f6f586b23ad80e072c8e6ad0b48417db2bde114a4c9746feb228"},
|
||||
{file = "sphinxcontrib_applehelp-1.0.8-py3-none-any.whl", hash = "sha256:cb61eb0ec1b61f349e5cc36b2028e9e7ca765be05e49641c97241274753067b4"},
|
||||
{file = "sphinxcontrib_applehelp-1.0.8.tar.gz", hash = "sha256:c40a4f96f3776c4393d933412053962fac2b84f4c99a7982ba42e09576a70619"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sphinxcontrib-devhelp"
|
||||
version = "1.0.2"
|
||||
requires_python = ">=3.5"
|
||||
summary = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document."
|
||||
version = "1.0.6"
|
||||
requires_python = ">=3.9"
|
||||
summary = "sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp documents"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "sphinxcontrib-devhelp-1.0.2.tar.gz", hash = "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"},
|
||||
{file = "sphinxcontrib_devhelp-1.0.2-py2.py3-none-any.whl", hash = "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e"},
|
||||
{file = "sphinxcontrib_devhelp-1.0.6-py3-none-any.whl", hash = "sha256:6485d09629944511c893fa11355bda18b742b83a2b181f9a009f7e500595c90f"},
|
||||
{file = "sphinxcontrib_devhelp-1.0.6.tar.gz", hash = "sha256:9893fd3f90506bc4b97bdb977ceb8fbd823989f4316b28c3841ec128544372d3"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sphinxcontrib-htmlhelp"
|
||||
version = "2.0.1"
|
||||
requires_python = ">=3.8"
|
||||
version = "2.0.5"
|
||||
requires_python = ">=3.9"
|
||||
summary = "sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "sphinxcontrib-htmlhelp-2.0.1.tar.gz", hash = "sha256:0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff"},
|
||||
{file = "sphinxcontrib_htmlhelp-2.0.1-py3-none-any.whl", hash = "sha256:c38cb46dccf316c79de6e5515e1770414b797162b23cd3d06e67020e1d2a6903"},
|
||||
{file = "sphinxcontrib_htmlhelp-2.0.5-py3-none-any.whl", hash = "sha256:393f04f112b4d2f53d93448d4bce35842f62b307ccdc549ec1585e950bc35e04"},
|
||||
{file = "sphinxcontrib_htmlhelp-2.0.5.tar.gz", hash = "sha256:0dc87637d5de53dd5eec3a6a01753b1ccf99494bd756aafecd74b4fa9e729015"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -703,24 +653,24 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "sphinxcontrib-qthelp"
|
||||
version = "1.0.3"
|
||||
requires_python = ">=3.5"
|
||||
summary = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document."
|
||||
version = "1.0.7"
|
||||
requires_python = ">=3.9"
|
||||
summary = "sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp documents"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "sphinxcontrib-qthelp-1.0.3.tar.gz", hash = "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72"},
|
||||
{file = "sphinxcontrib_qthelp-1.0.3-py2.py3-none-any.whl", hash = "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6"},
|
||||
{file = "sphinxcontrib_qthelp-1.0.7-py3-none-any.whl", hash = "sha256:e2ae3b5c492d58fcbd73281fbd27e34b8393ec34a073c792642cd8e529288182"},
|
||||
{file = "sphinxcontrib_qthelp-1.0.7.tar.gz", hash = "sha256:053dedc38823a80a7209a80860b16b722e9e0209e32fea98c90e4e6624588ed6"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sphinxcontrib-serializinghtml"
|
||||
version = "1.1.5"
|
||||
requires_python = ">=3.5"
|
||||
summary = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)."
|
||||
version = "1.1.10"
|
||||
requires_python = ">=3.9"
|
||||
summary = "sphinxcontrib-serializinghtml is a sphinx extension which outputs \"serialized\" HTML files (json and pickle)"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "sphinxcontrib-serializinghtml-1.1.5.tar.gz", hash = "sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"},
|
||||
{file = "sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl", hash = "sha256:352a9a00ae864471d3a7ead8d7d79f5fc0b57e8b3f95e9867eb9eb28999b92fd"},
|
||||
{file = "sphinxcontrib_serializinghtml-1.1.10-py3-none-any.whl", hash = "sha256:326369b8df80a7d2d8d7f99aa5ac577f51ea51556ed974e7716cfd4fca3f6cb7"},
|
||||
{file = "sphinxcontrib_serializinghtml-1.1.10.tar.gz", hash = "sha256:93f3f5dc458b91b192fe10c397e324f262cf163d79f3282c158e8436a2c4511f"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -737,7 +687,7 @@ files = [
|
|||
|
||||
[[package]]
|
||||
name = "types-requests"
|
||||
version = "2.32.0.20240622"
|
||||
version = "2.32.0.20240712"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Typing stubs for requests"
|
||||
groups = ["dev"]
|
||||
|
|
@ -745,40 +695,40 @@ dependencies = [
|
|||
"urllib3>=2",
|
||||
]
|
||||
files = [
|
||||
{file = "types-requests-2.32.0.20240622.tar.gz", hash = "sha256:ed5e8a412fcc39159d6319385c009d642845f250c63902718f605cd90faade31"},
|
||||
{file = "types_requests-2.32.0.20240622-py3-none-any.whl", hash = "sha256:97bac6b54b5bd4cf91d407e62f0932a74821bc2211f22116d9ee1dd643826caf"},
|
||||
{file = "types-requests-2.32.0.20240712.tar.gz", hash = "sha256:90c079ff05e549f6bf50e02e910210b98b8ff1ebdd18e19c873cd237737c1358"},
|
||||
{file = "types_requests-2.32.0.20240712-py3-none-any.whl", hash = "sha256:f754283e152c752e46e70942fa2a146b5bc70393522257bb85bd1ef7e019dcc3"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "typing-extensions"
|
||||
version = "4.11.0"
|
||||
version = "4.12.2"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Backported and Experimental Type Hints for Python 3.8+"
|
||||
groups = ["dev"]
|
||||
files = [
|
||||
{file = "typing_extensions-4.11.0-py3-none-any.whl", hash = "sha256:c1f94d72897edaf4ce775bb7558d5b79d8126906a14ea5ed1635921406c0387a"},
|
||||
{file = "typing_extensions-4.11.0.tar.gz", hash = "sha256:83f085bd5ca59c80295fc2a82ab5dac679cbe02b9f33f7d83af68e241bea51b0"},
|
||||
{file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
|
||||
{file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "urllib3"
|
||||
version = "2.2.1"
|
||||
version = "2.2.2"
|
||||
requires_python = ">=3.8"
|
||||
summary = "HTTP library with thread-safe connection pooling, file post, and more."
|
||||
groups = ["default", "dev"]
|
||||
files = [
|
||||
{file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"},
|
||||
{file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"},
|
||||
{file = "urllib3-2.2.2-py3-none-any.whl", hash = "sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472"},
|
||||
{file = "urllib3-2.2.2.tar.gz", hash = "sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168"},
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "zipp"
|
||||
version = "3.18.1"
|
||||
version = "3.19.2"
|
||||
requires_python = ">=3.8"
|
||||
summary = "Backport of pathlib-compatible object wrapper for zip files"
|
||||
groups = ["dev"]
|
||||
marker = "python_version < \"3.10\""
|
||||
files = [
|
||||
{file = "zipp-3.18.1-py3-none-any.whl", hash = "sha256:206f5a15f2af3dbaee80769fb7dc6f249695e940acca08dfb2a4769fe61e538b"},
|
||||
{file = "zipp-3.18.1.tar.gz", hash = "sha256:2884ed22e7d8961de1c9a05142eb69a247f120291bc0206a00a7642f09b5b715"},
|
||||
{file = "zipp-3.19.2-py3-none-any.whl", hash = "sha256:f091755f667055f2d02b32c53771a7a6c8b47e1fdbc4b72a8b9072b3eef8015c"},
|
||||
{file = "zipp-3.19.2.tar.gz", hash = "sha256:bf1dcf6450f873a13e952a29504887c89e6de7506209e5b1bcc3460135d4de19"},
|
||||
]
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
[project]
|
||||
name = "ytmusicapi"
|
||||
description = "Unofficial API for YouTube Music"
|
||||
requires-python = ">=3.8"
|
||||
requires-python = ">=3.9"
|
||||
authors=[{name = "sigma67", email= "ytmusicapi@gmail.com"}]
|
||||
license={file="LICENSE"}
|
||||
classifiers = [
|
||||
|
|
@ -43,7 +43,7 @@ include-package-data=false
|
|||
[tool.pytest.ini_options]
|
||||
python_functions = "test_*"
|
||||
testpaths = ["tests"]
|
||||
addopts = "--verbose --cov"
|
||||
addopts = "--verbose --cov --retries 2 --retry-delay 5"
|
||||
|
||||
[tool.coverage.run]
|
||||
source = ["ytmusicapi"]
|
||||
|
|
@ -78,4 +78,5 @@ dev = [
|
|||
"pytest>=7.4.4",
|
||||
"pytest-cov>=4.1.0",
|
||||
"types-requests>=2.31.0.20240218",
|
||||
"pytest-retry>=1.6.3",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import os
|
|||
import tempfile
|
||||
import time
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict
|
||||
from typing import Any
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
|
@ -17,7 +17,7 @@ from ytmusicapi.ytmusic import OAuthCredentials, YTMusic
|
|||
|
||||
|
||||
@pytest.fixture(name="blank_code")
|
||||
def fixture_blank_code() -> Dict[str, Any]:
|
||||
def fixture_blank_code() -> dict[str, Any]:
|
||||
return {
|
||||
"device_code": "",
|
||||
"user_code": "",
|
||||
|
|
@ -46,9 +46,11 @@ class TestOAuth:
|
|||
json_mock.side_effect = [blank_code, token_code]
|
||||
oauth_file = tempfile.NamedTemporaryFile(delete=False)
|
||||
oauth_filepath = oauth_file.name
|
||||
with mock.patch("builtins.input", return_value="y"), mock.patch(
|
||||
"sys.argv", ["ytmusicapi", "oauth", "--file", oauth_filepath]
|
||||
), mock.patch("webbrowser.open"):
|
||||
with (
|
||||
mock.patch("builtins.input", return_value="y"),
|
||||
mock.patch("sys.argv", ["ytmusicapi", "oauth", "--file", oauth_filepath]),
|
||||
mock.patch("webbrowser.open"),
|
||||
):
|
||||
main()
|
||||
assert Path(oauth_filepath).exists()
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ import pytest
|
|||
|
||||
from ytmusicapi import YTMusic
|
||||
from ytmusicapi.constants import SUPPORTED_LANGUAGES
|
||||
from ytmusicapi.enums import ResponseStatus
|
||||
|
||||
|
||||
class TestPlaylists:
|
||||
|
|
@ -85,7 +86,7 @@ class TestPlaylists:
|
|||
playlist["tracks"][0]["setVideoId"],
|
||||
),
|
||||
)
|
||||
assert response1 == "STATUS_SUCCEEDED", "Playlist edit 1 failed"
|
||||
assert response1 == ResponseStatus.SUCCEEDED, "Playlist edit 1 failed"
|
||||
response2 = yt_brand.edit_playlist(
|
||||
playlist["id"],
|
||||
title=playlist["title"],
|
||||
|
|
@ -96,7 +97,7 @@ class TestPlaylists:
|
|||
playlist["tracks"][1]["setVideoId"],
|
||||
),
|
||||
)
|
||||
assert response2 == "STATUS_SUCCEEDED", "Playlist edit 2 failed"
|
||||
assert response2 == ResponseStatus.SUCCEEDED, "Playlist edit 2 failed"
|
||||
response3 = yt_brand.edit_playlist(
|
||||
playlist["id"],
|
||||
title=playlist["title"],
|
||||
|
|
@ -120,7 +121,7 @@ class TestPlaylists:
|
|||
source_playlist="OLAK5uy_nvjTE32aFYdFN7HCyMv3cGqD3wqBb4Jow",
|
||||
duplicates=True,
|
||||
)
|
||||
assert response["status"] == "STATUS_SUCCEEDED", "Adding playlist item failed"
|
||||
assert response["status"] == ResponseStatus.SUCCEEDED, "Adding playlist item failed"
|
||||
assert len(response["playlistEditResults"]) > 0, "Adding playlist item failed"
|
||||
time.sleep(3)
|
||||
yt_brand.edit_playlist(playlist_id, addToTop=False)
|
||||
|
|
@ -128,5 +129,5 @@ class TestPlaylists:
|
|||
playlist = yt_brand.get_playlist(playlist_id, related=True)
|
||||
assert len(playlist["tracks"]) == 46, "Getting playlist items failed"
|
||||
response = yt_brand.remove_playlist_items(playlist_id, playlist["tracks"])
|
||||
assert response == "STATUS_SUCCEEDED", "Playlist item removal failed"
|
||||
assert response == ResponseStatus.SUCCEEDED, "Playlist item removal failed"
|
||||
yt_brand.delete_playlist(playlist_id)
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import time
|
|||
import pytest
|
||||
|
||||
from tests.conftest import get_resource
|
||||
from ytmusicapi.enums import ResponseStatus
|
||||
from ytmusicapi.ytmusic import YTMusic
|
||||
|
||||
|
||||
|
|
@ -38,8 +39,9 @@ class TestUploads:
|
|||
def test_upload_song_exceptions(self, config, yt_auth, yt_oauth):
|
||||
with pytest.raises(Exception, match="The provided file does not exist."):
|
||||
yt_auth.upload_song("song.wav")
|
||||
with tempfile.NamedTemporaryFile(suffix="wav") as temp, pytest.raises(
|
||||
Exception, match="The provided file type is not supported"
|
||||
with (
|
||||
tempfile.NamedTemporaryFile(suffix="wav") as temp,
|
||||
pytest.raises(Exception, match="The provided file type is not supported"),
|
||||
):
|
||||
yt_auth.upload_song(temp.name)
|
||||
with pytest.raises(Exception, match="Please provide browser authentication"):
|
||||
|
|
@ -59,14 +61,14 @@ class TestUploads:
|
|||
for song in songs:
|
||||
if song.get("title") in config["uploads"]["file"]:
|
||||
delete_response = yt_auth.delete_upload_entity(song["entityId"])
|
||||
assert delete_response == "STATUS_SUCCEEDED"
|
||||
assert delete_response == ResponseStatus.SUCCEEDED
|
||||
# Need to wait for song to be fully deleted
|
||||
time.sleep(10)
|
||||
# Now re-upload
|
||||
upload_response = yt_auth.upload_song(get_resource(config["uploads"]["file"]))
|
||||
|
||||
assert (
|
||||
upload_response == "STATUS_SUCCEEDED" or upload_response.status_code == 200
|
||||
upload_response == ResponseStatus.SUCCEEDED or upload_response.status_code == 200
|
||||
), f"Song failed to upload {upload_response}"
|
||||
|
||||
# Wait for upload to finish processing and verify it can be retrieved
|
||||
|
|
@ -86,7 +88,7 @@ class TestUploads:
|
|||
def test_delete_upload_entity(self, yt_oauth):
|
||||
results = yt_oauth.get_library_upload_songs()
|
||||
response = yt_oauth.delete_upload_entity(results[0]["entityId"])
|
||||
assert response == "STATUS_SUCCEEDED"
|
||||
assert response == ResponseStatus.SUCCEEDED
|
||||
|
||||
def test_get_library_upload_album(self, config, yt_oauth):
|
||||
album = yt_oauth.get_library_upload_album(config["uploads"]["private_album_id"])
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
from collections.abc import Mapping
|
||||
from dataclasses import dataclass
|
||||
from typing import Dict, Mapping, Optional
|
||||
from typing import Optional
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -48,7 +49,7 @@ class OAuthCredentials(Credentials):
|
|||
client_id: Optional[str] = None,
|
||||
client_secret: Optional[str] = None,
|
||||
session: Optional[requests.Session] = None,
|
||||
proxies: Optional[Dict] = None,
|
||||
proxies: Optional[dict] = None,
|
||||
):
|
||||
"""
|
||||
:param client_id: Optional. Set the GoogleAPI client_id used for auth flows.
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
"""enum representing types of authentication supported by this library"""
|
||||
|
||||
from enum import Enum, auto
|
||||
from typing import List
|
||||
|
||||
|
||||
class AuthType(int, Enum):
|
||||
|
|
@ -21,5 +20,5 @@ class AuthType(int, Enum):
|
|||
OAUTH_CUSTOM_FULL = auto()
|
||||
|
||||
@classmethod
|
||||
def oauth_types(cls) -> List["AuthType"]:
|
||||
def oauth_types(cls) -> list["AuthType"]:
|
||||
return [cls.OAUTH_DEFAULT, cls.OAUTH_CUSTOM_CLIENT, cls.OAUTH_CUSTOM_FULL]
|
||||
|
|
|
|||
5
ytmusicapi/enums.py
Normal file
5
ytmusicapi/enums.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from enum import Enum
|
||||
|
||||
|
||||
class ResponseStatus(str, Enum):
|
||||
SUCCEEDED = "STATUS_SUCCEEDED"
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
"""protocol that defines the functions available to mixins"""
|
||||
|
||||
from typing import Dict, Optional, Protocol
|
||||
from typing import Optional, Protocol
|
||||
|
||||
from requests import Response
|
||||
|
||||
|
|
@ -15,17 +15,17 @@ class MixinProtocol(Protocol):
|
|||
|
||||
parser: Parser
|
||||
|
||||
proxies: Optional[Dict[str, str]]
|
||||
proxies: Optional[dict[str, str]]
|
||||
|
||||
def _check_auth(self) -> None:
|
||||
"""checks if self has authentication"""
|
||||
|
||||
def _send_request(self, endpoint: str, body: Dict, additionalParams: str = "") -> Dict:
|
||||
def _send_request(self, endpoint: str, body: dict, additionalParams: str = "") -> dict:
|
||||
"""for sending post requests to YouTube Music"""
|
||||
|
||||
def _send_get_request(self, url: str, params: Optional[Dict] = None) -> Response:
|
||||
def _send_get_request(self, url: str, params: Optional[dict] = None) -> Response:
|
||||
"""for sending get requests to YouTube Music"""
|
||||
|
||||
@property
|
||||
def headers(self) -> Dict[str, str]:
|
||||
def headers(self) -> dict[str, str]:
|
||||
"""property for getting request headers"""
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import re
|
||||
import warnings
|
||||
from typing import Any, Dict, List, Optional
|
||||
from typing import Any, Optional
|
||||
|
||||
from ytmusicapi.continuations import (
|
||||
get_continuations,
|
||||
|
|
@ -18,7 +18,7 @@ from ._utils import get_datestamp
|
|||
|
||||
|
||||
class BrowsingMixin(MixinProtocol):
|
||||
def get_home(self, limit=3) -> List[Dict]:
|
||||
def get_home(self, limit=3) -> list[dict]:
|
||||
"""
|
||||
Get the home page.
|
||||
The home page is structured as titled rows, returning 3 rows of music suggestions at a time.
|
||||
|
|
@ -124,7 +124,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
|
||||
return home
|
||||
|
||||
def get_artist(self, channelId: str) -> Dict:
|
||||
def get_artist(self, channelId: str) -> dict:
|
||||
"""
|
||||
Get information about an artist and their top releases (songs,
|
||||
albums, singles, videos, and related artists). The top lists
|
||||
|
|
@ -237,7 +237,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
response = self._send_request(endpoint, body)
|
||||
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST)
|
||||
|
||||
artist: Dict[str, Any] = {"description": None, "views": None}
|
||||
artist: dict[str, Any] = {"description": None, "views": None}
|
||||
header = response["header"]["musicImmersiveHeaderRenderer"]
|
||||
artist["name"] = nav(header, TITLE_TEXT)
|
||||
descriptionShelf = find_object_by_key(results, DESCRIPTION_SHELF[0], is_key=True)
|
||||
|
|
@ -271,7 +271,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
|
||||
def get_artist_albums(
|
||||
self, channelId: str, params: str, limit: Optional[int] = 100, order: Optional[str] = None
|
||||
) -> List[Dict]:
|
||||
) -> list[dict]:
|
||||
"""
|
||||
Get the full list of an artist's albums, singles or shows
|
||||
|
||||
|
|
@ -350,7 +350,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
|
||||
return albums
|
||||
|
||||
def get_user(self, channelId: str) -> Dict:
|
||||
def get_user(self, channelId: str) -> dict:
|
||||
"""
|
||||
Retrieve a user's page. A user may own videos or playlists.
|
||||
|
||||
|
|
@ -406,7 +406,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
user.update(self.parser.parse_channel_contents(results))
|
||||
return user
|
||||
|
||||
def get_user_playlists(self, channelId: str, params: str) -> List[Dict]:
|
||||
def get_user_playlists(self, channelId: str, params: str) -> list[dict]:
|
||||
"""
|
||||
Retrieve a list of playlists for a given user.
|
||||
Call this function again with the returned ``params`` to get the full list.
|
||||
|
|
@ -448,7 +448,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
browse_id = matches.group().strip('"')
|
||||
return browse_id
|
||||
|
||||
def get_album(self, browseId: str) -> Dict:
|
||||
def get_album(self, browseId: str) -> dict:
|
||||
"""
|
||||
Get information and tracks of an album
|
||||
|
||||
|
|
@ -532,7 +532,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
|
||||
return album
|
||||
|
||||
def get_song(self, videoId: str, signatureTimestamp: Optional[int] = None) -> Dict:
|
||||
def get_song(self, videoId: str, signatureTimestamp: Optional[int] = None) -> dict:
|
||||
"""
|
||||
Returns metadata and streaming information about a song or video.
|
||||
|
||||
|
|
@ -799,7 +799,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
sections = nav(response, ["contents", *SECTION_LIST])
|
||||
return parse_mixed_content(sections)
|
||||
|
||||
def get_lyrics(self, browseId: str) -> Dict:
|
||||
def get_lyrics(self, browseId: str) -> dict:
|
||||
"""
|
||||
Returns lyrics of a song or video.
|
||||
|
||||
|
|
@ -859,7 +859,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
|
||||
return int(match.group(1))
|
||||
|
||||
def get_tasteprofile(self) -> Dict:
|
||||
def get_tasteprofile(self) -> dict:
|
||||
"""
|
||||
Fetches suggested artists from taste profile (music.youtube.com/tasteprofile).
|
||||
Tasteprofile allows users to pick artists to update their recommendations.
|
||||
|
|
@ -891,7 +891,7 @@ class BrowsingMixin(MixinProtocol):
|
|||
}
|
||||
return taste_profiles
|
||||
|
||||
def set_tasteprofile(self, artists: List[str], taste_profile: Optional[Dict] = None) -> None:
|
||||
def set_tasteprofile(self, artists: list[str], taste_profile: Optional[dict] = None) -> None:
|
||||
"""
|
||||
Favorites artists to see more recommendations from the artist.
|
||||
Use :py:func:`get_tasteprofile` to see which artists are available to be recommended
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from typing import Any, Dict, List
|
||||
from typing import Any
|
||||
|
||||
from ytmusicapi.mixins._protocol import MixinProtocol
|
||||
from ytmusicapi.parsers.explore import *
|
||||
|
||||
|
||||
class ExploreMixin(MixinProtocol):
|
||||
def get_mood_categories(self) -> Dict:
|
||||
def get_mood_categories(self) -> dict:
|
||||
"""
|
||||
Fetch "Moods & Genres" categories from YouTube Music.
|
||||
|
||||
|
|
@ -50,7 +50,7 @@ class ExploreMixin(MixinProtocol):
|
|||
}
|
||||
|
||||
"""
|
||||
sections: Dict[str, Any] = {}
|
||||
sections: dict[str, Any] = {}
|
||||
response = self._send_request("browse", {"browseId": "FEmusic_moods_and_genres"})
|
||||
for section in nav(response, SINGLE_COLUMN_TAB + SECTION_LIST):
|
||||
title = nav(section, [*GRID, "header", "gridHeaderRenderer", *TITLE_TEXT])
|
||||
|
|
@ -62,7 +62,7 @@ class ExploreMixin(MixinProtocol):
|
|||
|
||||
return sections
|
||||
|
||||
def get_mood_playlists(self, params: str) -> List[Dict]:
|
||||
def get_mood_playlists(self, params: str) -> list[dict]:
|
||||
"""
|
||||
Retrieve a list of playlists for a given "Moods & Genres" category.
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ class ExploreMixin(MixinProtocol):
|
|||
|
||||
return playlists
|
||||
|
||||
def get_charts(self, country: str = "ZZ") -> Dict:
|
||||
def get_charts(self, country: str = "ZZ") -> dict:
|
||||
"""
|
||||
Get latest charts data from YouTube Music: Top songs, top videos, top artists and top trending videos.
|
||||
Global charts have no Trending section, US charts have an extra Genres section with some Genre charts.
|
||||
|
|
@ -188,13 +188,13 @@ class ExploreMixin(MixinProtocol):
|
|||
}
|
||||
|
||||
"""
|
||||
body: Dict[str, Any] = {"browseId": "FEmusic_charts"}
|
||||
body: dict[str, Any] = {"browseId": "FEmusic_charts"}
|
||||
if country:
|
||||
body["formData"] = {"selectedValues": [country]}
|
||||
|
||||
response = self._send_request("browse", body)
|
||||
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST)
|
||||
charts: Dict[str, Any] = {"countries": {}}
|
||||
charts: dict[str, Any] = {"countries": {}}
|
||||
menu = nav(
|
||||
results[0],
|
||||
[
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from random import randint
|
||||
from typing import Dict, List, Optional
|
||||
from typing import Optional
|
||||
|
||||
from ytmusicapi.continuations import *
|
||||
from ytmusicapi.parsers.browsing import *
|
||||
|
|
@ -10,7 +10,7 @@ from ._utils import *
|
|||
|
||||
|
||||
class LibraryMixin(MixinProtocol):
|
||||
def get_library_playlists(self, limit: Optional[int] = 25) -> List[Dict]:
|
||||
def get_library_playlists(self, limit: Optional[int] = 25) -> list[dict]:
|
||||
"""
|
||||
Retrieves the playlists in the user's library.
|
||||
|
||||
|
|
@ -46,7 +46,7 @@ class LibraryMixin(MixinProtocol):
|
|||
|
||||
def get_library_songs(
|
||||
self, limit: int = 25, validate_responses: bool = False, order: Optional[str] = None
|
||||
) -> List[Dict]:
|
||||
) -> list[dict]:
|
||||
"""
|
||||
Gets the songs in the user's library (liked videos are not included).
|
||||
To get liked songs and videos, use :py:func:`get_liked_songs`
|
||||
|
|
@ -115,7 +115,7 @@ class LibraryMixin(MixinProtocol):
|
|||
|
||||
return songs
|
||||
|
||||
def get_library_albums(self, limit: int = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_albums(self, limit: int = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Gets the albums in the user's library.
|
||||
|
||||
|
|
@ -150,7 +150,7 @@ class LibraryMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_library_artists(self, limit: int = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_artists(self, limit: int = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Gets the artists of the songs in the user's library.
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ class LibraryMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_library_subscriptions(self, limit: int = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_subscriptions(self, limit: int = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Gets the artists the user has subscribed to.
|
||||
|
||||
|
|
@ -197,7 +197,7 @@ class LibraryMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_library_podcasts(self, limit: int = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_podcasts(self, limit: int = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Get podcasts the user has added to the library
|
||||
|
||||
|
|
@ -243,7 +243,7 @@ class LibraryMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_library_channels(self, limit: int = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_channels(self, limit: int = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Get channels the user has added to the library
|
||||
|
||||
|
|
@ -279,7 +279,7 @@ class LibraryMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_history(self) -> List[Dict]:
|
||||
def get_history(self) -> list[dict]:
|
||||
"""
|
||||
Gets your play history in reverse chronological order
|
||||
|
||||
|
|
@ -320,7 +320,7 @@ class LibraryMixin(MixinProtocol):
|
|||
params = {"ver": 2, "c": "WEB_REMIX", "cpn": cpn}
|
||||
return self._send_get_request(url, params)
|
||||
|
||||
def remove_history_items(self, feedbackTokens: List[str]) -> Dict: # pragma: no cover
|
||||
def remove_history_items(self, feedbackTokens: list[str]) -> dict: # pragma: no cover
|
||||
"""
|
||||
Remove an item from the account's history. This method does currently not work with brand accounts
|
||||
|
||||
|
|
@ -334,7 +334,7 @@ class LibraryMixin(MixinProtocol):
|
|||
|
||||
return response
|
||||
|
||||
def rate_song(self, videoId: str, rating: str = "INDIFFERENT") -> Optional[Dict]:
|
||||
def rate_song(self, videoId: str, rating: str = "INDIFFERENT") -> Optional[dict]:
|
||||
"""
|
||||
Rates a song ("thumbs up"/"thumbs down" interactions on YouTube Music)
|
||||
|
||||
|
|
@ -353,7 +353,7 @@ class LibraryMixin(MixinProtocol):
|
|||
|
||||
return self._send_request(endpoint, body)
|
||||
|
||||
def edit_song_library_status(self, feedbackTokens: Optional[List[str]] = None) -> Dict:
|
||||
def edit_song_library_status(self, feedbackTokens: Optional[list[str]] = None) -> dict:
|
||||
"""
|
||||
Adds or removes a song from your library depending on the token provided.
|
||||
|
||||
|
|
@ -366,7 +366,7 @@ class LibraryMixin(MixinProtocol):
|
|||
endpoint = "feedback"
|
||||
return self._send_request(endpoint, body)
|
||||
|
||||
def rate_playlist(self, playlistId: str, rating: str = "INDIFFERENT") -> Dict:
|
||||
def rate_playlist(self, playlistId: str, rating: str = "INDIFFERENT") -> dict:
|
||||
"""
|
||||
Rates a playlist/album ("Add to library"/"Remove from library" interactions on YouTube Music)
|
||||
You can also dislike a playlist/album, which has an effect on your recommendations
|
||||
|
|
@ -383,7 +383,7 @@ class LibraryMixin(MixinProtocol):
|
|||
endpoint = prepare_like_endpoint(rating)
|
||||
return endpoint if not endpoint else self._send_request(endpoint, body)
|
||||
|
||||
def subscribe_artists(self, channelIds: List[str]) -> Dict:
|
||||
def subscribe_artists(self, channelIds: list[str]) -> dict:
|
||||
"""
|
||||
Subscribe to artists. Adds the artists to your library
|
||||
|
||||
|
|
@ -395,7 +395,7 @@ class LibraryMixin(MixinProtocol):
|
|||
endpoint = "subscription/subscribe"
|
||||
return self._send_request(endpoint, body)
|
||||
|
||||
def unsubscribe_artists(self, channelIds: List[str]) -> Dict:
|
||||
def unsubscribe_artists(self, channelIds: list[str]) -> dict:
|
||||
"""
|
||||
Unsubscribe from artists. Removes the artists from your library
|
||||
|
||||
|
|
@ -407,7 +407,7 @@ class LibraryMixin(MixinProtocol):
|
|||
endpoint = "subscription/unsubscribe"
|
||||
return self._send_request(endpoint, body)
|
||||
|
||||
def get_account_info(self) -> Dict:
|
||||
def get_account_info(self) -> dict:
|
||||
"""
|
||||
Gets information about the currently authenticated user's account.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, Dict, List, Optional, Tuple, Union
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from ytmusicapi.continuations import *
|
||||
from ytmusicapi.helpers import sum_total_duration
|
||||
|
|
@ -13,7 +13,7 @@ from ._utils import *
|
|||
class PlaylistsMixin(MixinProtocol):
|
||||
def get_playlist(
|
||||
self, playlistId: str, limit: Optional[int] = 100, related: bool = False, suggestions_limit: int = 0
|
||||
) -> Dict:
|
||||
) -> dict:
|
||||
"""
|
||||
Returns a list of playlist items
|
||||
|
||||
|
|
@ -169,13 +169,13 @@ class PlaylistsMixin(MixinProtocol):
|
|||
return playlist
|
||||
|
||||
def _parse_new_playlist_format(
|
||||
self, response: Dict, endpoint, body, suggestions_limit, related, limit
|
||||
) -> Dict: # pragma: no cover
|
||||
self, response: dict, endpoint, body, suggestions_limit, related, limit
|
||||
) -> dict: # pragma: no cover
|
||||
"""temporary function to avoid too many ifs in get_playlist during a/b test"""
|
||||
|
||||
header_data = nav(response, [*TWO_COLUMN_RENDERER, *TAB_CONTENT, *SECTION_LIST_ITEM])
|
||||
section_list = nav(response, [*TWO_COLUMN_RENDERER, "secondaryContents", *SECTION])
|
||||
playlist: Dict = {}
|
||||
playlist: dict = {}
|
||||
playlist["owned"] = EDITABLE_PLAYLIST_DETAIL_HEADER[0] in header_data
|
||||
if not playlist["owned"]:
|
||||
header = nav(header_data, RESPONSIVE_HEADER)
|
||||
|
|
@ -271,7 +271,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
playlist["duration_seconds"] = sum_total_duration(playlist)
|
||||
return playlist
|
||||
|
||||
def get_liked_songs(self, limit: int = 100) -> Dict:
|
||||
def get_liked_songs(self, limit: int = 100) -> dict:
|
||||
"""
|
||||
Gets playlist items for the 'Liked Songs' playlist
|
||||
|
||||
|
|
@ -280,7 +280,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
"""
|
||||
return self.get_playlist("LM", limit)
|
||||
|
||||
def get_saved_episodes(self, limit: int = 100) -> Dict:
|
||||
def get_saved_episodes(self, limit: int = 100) -> dict:
|
||||
"""
|
||||
Gets playlist items for the 'Liked Songs' playlist
|
||||
|
||||
|
|
@ -294,9 +294,9 @@ class PlaylistsMixin(MixinProtocol):
|
|||
title: str,
|
||||
description: str,
|
||||
privacy_status: str = "PRIVATE",
|
||||
video_ids: Optional[List] = None,
|
||||
video_ids: Optional[list] = None,
|
||||
source_playlist: Optional[str] = None,
|
||||
) -> Union[str, Dict]:
|
||||
) -> Union[str, dict]:
|
||||
"""
|
||||
Creates a new empty playlist and returns its id.
|
||||
|
||||
|
|
@ -329,10 +329,10 @@ class PlaylistsMixin(MixinProtocol):
|
|||
title: Optional[str] = None,
|
||||
description: Optional[str] = None,
|
||||
privacyStatus: Optional[str] = None,
|
||||
moveItem: Optional[Union[str, Tuple[str, str]]] = None,
|
||||
moveItem: Optional[Union[str, tuple[str, str]]] = None,
|
||||
addPlaylistId: Optional[str] = None,
|
||||
addToTop: Optional[bool] = None,
|
||||
) -> Union[str, Dict]:
|
||||
) -> Union[str, dict]:
|
||||
"""
|
||||
Edit title, description or privacyStatus of a playlist.
|
||||
You may also move an item within a playlist or append another playlist to this playlist.
|
||||
|
|
@ -348,7 +348,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
:return: Status String or full response
|
||||
"""
|
||||
self._check_auth()
|
||||
body: Dict[str, Any] = {"playlistId": validate_playlist_id(playlistId)}
|
||||
body: dict[str, Any] = {"playlistId": validate_playlist_id(playlistId)}
|
||||
actions = []
|
||||
if title:
|
||||
actions.append({"action": "ACTION_SET_PLAYLIST_NAME", "playlistName": title})
|
||||
|
|
@ -382,7 +382,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
response = self._send_request(endpoint, body)
|
||||
return response["status"] if "status" in response else response
|
||||
|
||||
def delete_playlist(self, playlistId: str) -> Union[str, Dict]:
|
||||
def delete_playlist(self, playlistId: str) -> Union[str, dict]:
|
||||
"""
|
||||
Delete a playlist.
|
||||
|
||||
|
|
@ -398,10 +398,10 @@ class PlaylistsMixin(MixinProtocol):
|
|||
def add_playlist_items(
|
||||
self,
|
||||
playlistId: str,
|
||||
videoIds: Optional[List[str]] = None,
|
||||
videoIds: Optional[list[str]] = None,
|
||||
source_playlist: Optional[str] = None,
|
||||
duplicates: bool = False,
|
||||
) -> Union[str, Dict]:
|
||||
) -> Union[str, dict]:
|
||||
"""
|
||||
Add songs to an existing playlist
|
||||
|
||||
|
|
@ -412,7 +412,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
:return: Status String and a dict containing the new setVideoId for each videoId or full response
|
||||
"""
|
||||
self._check_auth()
|
||||
body: Dict[str, Any] = {"playlistId": validate_playlist_id(playlistId), "actions": []}
|
||||
body: dict[str, Any] = {"playlistId": validate_playlist_id(playlistId), "actions": []}
|
||||
if not videoIds and not source_playlist:
|
||||
raise Exception("You must provide either videoIds or a source_playlist to add to the playlist")
|
||||
|
||||
|
|
@ -442,7 +442,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
else:
|
||||
return response
|
||||
|
||||
def remove_playlist_items(self, playlistId: str, videos: List[Dict]) -> Union[str, Dict]:
|
||||
def remove_playlist_items(self, playlistId: str, videos: list[dict]) -> Union[str, dict]:
|
||||
"""
|
||||
Remove songs from an existing playlist
|
||||
|
||||
|
|
@ -456,7 +456,7 @@ class PlaylistsMixin(MixinProtocol):
|
|||
if len(videos) == 0:
|
||||
raise Exception("Cannot remove songs, because setVideoId is missing. Do you own this playlist?")
|
||||
|
||||
body: Dict[str, Any] = {"playlistId": validate_playlist_id(playlistId), "actions": []}
|
||||
body: dict[str, Any] = {"playlistId": validate_playlist_id(playlistId), "actions": []}
|
||||
for video in videos:
|
||||
body["actions"].append(
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
from typing import Dict
|
||||
|
||||
from ytmusicapi.continuations import *
|
||||
from ytmusicapi.mixins._protocol import MixinProtocol
|
||||
from ytmusicapi.navigation import *
|
||||
|
|
@ -13,7 +11,7 @@ from ._utils import *
|
|||
class PodcastsMixin(MixinProtocol):
|
||||
"""Podcasts Mixin"""
|
||||
|
||||
def get_channel(self, channelId: str) -> Dict:
|
||||
def get_channel(self, channelId: str) -> dict:
|
||||
"""
|
||||
Get information about a podcast channel (episodes, podcasts). For episodes, a
|
||||
maximum of 10 episodes are returned, the full list of episodes can be retrieved
|
||||
|
|
@ -80,7 +78,7 @@ class PodcastsMixin(MixinProtocol):
|
|||
|
||||
return channel
|
||||
|
||||
def get_channel_episodes(self, channelId: str, params: str) -> List[Dict]:
|
||||
def get_channel_episodes(self, channelId: str, params: str) -> list[dict]:
|
||||
"""
|
||||
Get all channel episodes. This endpoint is currently unlimited
|
||||
|
||||
|
|
@ -95,7 +93,7 @@ class PodcastsMixin(MixinProtocol):
|
|||
results = nav(response, SINGLE_COLUMN_TAB + SECTION_LIST_ITEM + GRID_ITEMS)
|
||||
return parse_content_list(results, parse_episode, MMRIR)
|
||||
|
||||
def get_podcast(self, playlistId: str, limit: Optional[int] = 100) -> Dict:
|
||||
def get_podcast(self, playlistId: str, limit: Optional[int] = 100) -> dict:
|
||||
"""
|
||||
Returns podcast metadata and episodes
|
||||
|
||||
|
|
@ -159,7 +157,7 @@ class PodcastsMixin(MixinProtocol):
|
|||
|
||||
return podcast
|
||||
|
||||
def get_episode(self, videoId: str) -> Dict:
|
||||
def get_episode(self, videoId: str) -> dict:
|
||||
"""
|
||||
Retrieve episode data for a single episode
|
||||
|
||||
|
|
@ -230,7 +228,7 @@ class PodcastsMixin(MixinProtocol):
|
|||
|
||||
return episode
|
||||
|
||||
def get_episodes_playlist(self, playlist_id: str = "RDPN") -> Dict:
|
||||
def get_episodes_playlist(self, playlist_id: str = "RDPN") -> dict:
|
||||
"""
|
||||
Get all episodes in an episodes playlist. Currently the only known playlist is the
|
||||
"New Episodes" auto-generated playlist
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Any, Dict, List, Optional, Union
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
from ytmusicapi.continuations import get_continuations
|
||||
from ytmusicapi.mixins._protocol import MixinProtocol
|
||||
|
|
@ -13,7 +13,7 @@ class SearchMixin(MixinProtocol):
|
|||
scope: Optional[str] = None,
|
||||
limit: int = 20,
|
||||
ignore_spelling: bool = False,
|
||||
) -> List[Dict]:
|
||||
) -> list[dict]:
|
||||
"""
|
||||
Search YouTube music
|
||||
Returns results within the provided category.
|
||||
|
|
@ -136,7 +136,7 @@ class SearchMixin(MixinProtocol):
|
|||
"""
|
||||
body = {"query": query}
|
||||
endpoint = "search"
|
||||
search_results: List[Dict[str, Any]] = []
|
||||
search_results: list[dict[str, Any]] = []
|
||||
filters = [
|
||||
"albums",
|
||||
"artists",
|
||||
|
|
@ -257,7 +257,7 @@ class SearchMixin(MixinProtocol):
|
|||
|
||||
return search_results
|
||||
|
||||
def get_search_suggestions(self, query: str, detailed_runs=False) -> Union[List[str], List[Dict]]:
|
||||
def get_search_suggestions(self, query: str, detailed_runs=False) -> Union[list[str], list[dict]]:
|
||||
"""
|
||||
Get Search Suggestions
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import ntpath
|
||||
import os
|
||||
from typing import Dict, List, Optional, Union
|
||||
from typing import Optional, Union
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -17,12 +17,13 @@ from ytmusicapi.parsers.library import (
|
|||
from ytmusicapi.parsers.uploads import parse_uploaded_items
|
||||
|
||||
from ..auth.types import AuthType
|
||||
from ..enums import ResponseStatus
|
||||
from ._protocol import MixinProtocol
|
||||
from ._utils import prepare_order_params, validate_order_parameter
|
||||
|
||||
|
||||
class UploadsMixin(MixinProtocol):
|
||||
def get_library_upload_songs(self, limit: Optional[int] = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_upload_songs(self, limit: Optional[int] = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Returns a list of uploaded songs
|
||||
|
||||
|
|
@ -69,7 +70,7 @@ class UploadsMixin(MixinProtocol):
|
|||
|
||||
return songs
|
||||
|
||||
def get_library_upload_albums(self, limit: Optional[int] = 25, order: Optional[str] = None) -> List[Dict]:
|
||||
def get_library_upload_albums(self, limit: Optional[int] = 25, order: Optional[str] = None) -> list[dict]:
|
||||
"""
|
||||
Gets the albums of uploaded songs in the user's library.
|
||||
|
||||
|
|
@ -90,7 +91,7 @@ class UploadsMixin(MixinProtocol):
|
|||
|
||||
def get_library_upload_artists(
|
||||
self, limit: Optional[int] = 25, order: Optional[str] = None
|
||||
) -> List[Dict]:
|
||||
) -> list[dict]:
|
||||
"""
|
||||
Gets the artists of uploaded songs in the user's library.
|
||||
|
||||
|
|
@ -109,7 +110,7 @@ class UploadsMixin(MixinProtocol):
|
|||
response, lambda additionalParams: self._send_request(endpoint, body, additionalParams), limit
|
||||
)
|
||||
|
||||
def get_library_upload_artist(self, browseId: str, limit: int = 25) -> List[Dict]:
|
||||
def get_library_upload_artist(self, browseId: str, limit: int = 25) -> list[dict]:
|
||||
"""
|
||||
Returns a list of uploaded tracks for the artist.
|
||||
|
||||
|
|
@ -158,7 +159,7 @@ class UploadsMixin(MixinProtocol):
|
|||
|
||||
return items
|
||||
|
||||
def get_library_upload_album(self, browseId: str) -> Dict:
|
||||
def get_library_upload_album(self, browseId: str) -> dict:
|
||||
"""
|
||||
Get information and tracks of an album associated with uploaded tracks
|
||||
|
||||
|
|
@ -200,7 +201,7 @@ class UploadsMixin(MixinProtocol):
|
|||
album["duration_seconds"] = sum_total_duration(album)
|
||||
return album
|
||||
|
||||
def upload_song(self, filepath: str) -> Union[str, requests.Response]:
|
||||
def upload_song(self, filepath: str) -> Union[ResponseStatus, requests.Response]:
|
||||
"""
|
||||
Uploads a song to YouTube Music
|
||||
|
||||
|
|
@ -237,11 +238,11 @@ class UploadsMixin(MixinProtocol):
|
|||
response = requests.post(upload_url, data=file, headers=headers, proxies=self.proxies)
|
||||
|
||||
if response.status_code == 200:
|
||||
return "STATUS_SUCCEEDED"
|
||||
return ResponseStatus.SUCCEEDED
|
||||
else:
|
||||
return response
|
||||
|
||||
def delete_upload_entity(self, entityId: str) -> Union[str, Dict]: # pragma: no cover
|
||||
def delete_upload_entity(self, entityId: str) -> Union[str, dict]: # pragma: no cover
|
||||
"""
|
||||
Deletes a previously uploaded song or album
|
||||
|
||||
|
|
@ -258,6 +259,6 @@ class UploadsMixin(MixinProtocol):
|
|||
response = self._send_request(endpoint, body)
|
||||
|
||||
if "error" not in response:
|
||||
return "STATUS_SUCCEEDED"
|
||||
return ResponseStatus.SUCCEEDED
|
||||
else:
|
||||
return response["error"]
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
from typing import Dict, List, Optional, Union
|
||||
from typing import Optional, Union
|
||||
|
||||
from ytmusicapi.continuations import get_continuations
|
||||
from ytmusicapi.mixins._protocol import MixinProtocol
|
||||
|
|
@ -14,7 +14,7 @@ class WatchMixin(MixinProtocol):
|
|||
limit=25,
|
||||
radio: bool = False,
|
||||
shuffle: bool = False,
|
||||
) -> Dict[str, Union[List[Dict], str, None]]:
|
||||
) -> dict[str, Union[list[dict], str, None]]:
|
||||
"""
|
||||
Get a watch list of tracks. This watch playlist appears when you press
|
||||
play on a track in YouTube Music.
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
"""commonly used navigation paths"""
|
||||
|
||||
from typing import Any, Dict, List, Literal, Optional, overload
|
||||
from typing import Any, Literal, Optional, overload
|
||||
|
||||
CONTENT = ["contents", 0]
|
||||
RUN_TEXT = ["runs", 0, "text"]
|
||||
|
|
@ -90,16 +90,16 @@ FRAMEWORK_MUTATIONS = ["frameworkUpdates", "entityBatchUpdate", "mutations"]
|
|||
|
||||
|
||||
@overload
|
||||
def nav(root: Dict[str, Any], items: List[Any], none_if_absent: Literal[False] = False) -> Any:
|
||||
def nav(root: dict[str, Any], items: list[Any], none_if_absent: Literal[False] = False) -> Any:
|
||||
"""overload for mypy only"""
|
||||
|
||||
|
||||
@overload
|
||||
def nav(root: Dict, items: List[Any], none_if_absent: Literal[True] = True) -> Optional[Any]:
|
||||
def nav(root: dict, items: list[Any], none_if_absent: Literal[True] = True) -> Optional[Any]:
|
||||
"""overload for mypy only"""
|
||||
|
||||
|
||||
def nav(root: Dict, items: List[Any], none_if_absent: bool = False) -> Optional[Any]:
|
||||
def nav(root: dict, items: list[Any], none_if_absent: bool = False) -> Optional[Any]:
|
||||
"""Access a nested object in root by item sequence."""
|
||||
try:
|
||||
for k in items:
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from gettext import gettext as _
|
||||
from typing import Any, Dict, List
|
||||
from typing import Any
|
||||
|
||||
from ytmusicapi.navigation import (
|
||||
CAROUSEL,
|
||||
|
|
@ -40,7 +40,7 @@ class Parser:
|
|||
]
|
||||
|
||||
@i18n
|
||||
def parse_channel_contents(self, results: List) -> Dict:
|
||||
def parse_channel_contents(self, results: list) -> dict:
|
||||
# type: ignore[name-defined]
|
||||
categories = [
|
||||
("albums", _("albums"), parse_album, MTRIR),
|
||||
|
|
@ -52,7 +52,7 @@ class Parser:
|
|||
("episodes", _("episodes"), parse_episode, MMRIR),
|
||||
("podcasts", _("podcasts"), parse_podcast, MTRIR),
|
||||
]
|
||||
artist: Dict[str, Any] = {}
|
||||
artist: dict[str, Any] = {}
|
||||
for category, category_local, category_parser, category_key in categories:
|
||||
data = [
|
||||
r["musicCarouselShelfRenderer"]
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
from typing import List, Optional
|
||||
from typing import Optional
|
||||
|
||||
from ..helpers import to_int
|
||||
from .songs import *
|
||||
|
||||
|
||||
def parse_playlist_header(response: Dict) -> Dict[str, Any]:
|
||||
playlist: Dict[str, Any] = {}
|
||||
def parse_playlist_header(response: dict) -> dict[str, Any]:
|
||||
playlist: dict[str, Any] = {}
|
||||
editable_header = nav(response, [*HEADER, *EDITABLE_PLAYLIST_DETAIL_HEADER], True)
|
||||
playlist["owned"] = editable_header is not None
|
||||
playlist["privacy"] = "PUBLIC"
|
||||
|
|
@ -53,7 +53,7 @@ def parse_playlist_header(response: Dict) -> Dict[str, Any]:
|
|||
return playlist
|
||||
|
||||
|
||||
def parse_playlist_items(results, menu_entries: Optional[List[List]] = None, is_album=False):
|
||||
def parse_playlist_items(results, menu_entries: Optional[list[list]] = None, is_album=False):
|
||||
songs = []
|
||||
for result in results:
|
||||
if MRLIR not in result:
|
||||
|
|
@ -67,8 +67,8 @@ def parse_playlist_items(results, menu_entries: Optional[List[List]] = None, is_
|
|||
|
||||
|
||||
def parse_playlist_item(
|
||||
data: Dict, menu_entries: Optional[List[List]] = None, is_album=False
|
||||
) -> Optional[Dict]:
|
||||
data: dict, menu_entries: Optional[list[list]] = None, is_album=False
|
||||
) -> Optional[dict]:
|
||||
videoId = setVideoId = None
|
||||
like = None
|
||||
feedback_tokens = None
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ class Timestamp(DescriptionElement):
|
|||
|
||||
|
||||
@dataclass
|
||||
class Description(List[DescriptionElement]):
|
||||
class Description(list[DescriptionElement]):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(args[0])
|
||||
|
||||
|
|
@ -31,14 +31,14 @@ class Description(List[DescriptionElement]):
|
|||
return "".join(str(element) for element in self)
|
||||
|
||||
@classmethod
|
||||
def from_runs(cls, description_runs: List[Dict]) -> "Description":
|
||||
def from_runs(cls, description_runs: list[dict]) -> "Description":
|
||||
"""parse the description runs into a usable format
|
||||
|
||||
:param description_runs: the original description runs
|
||||
|
||||
:return: List of text (str), timestamp (int) and link values (Link object)
|
||||
"""
|
||||
elements: List[DescriptionElement] = []
|
||||
elements: list[DescriptionElement] = []
|
||||
for run in description_runs:
|
||||
navigationEndpoint = nav(run, ["navigationEndpoint"], True)
|
||||
if navigationEndpoint:
|
||||
|
|
@ -58,7 +58,7 @@ class Description(List[DescriptionElement]):
|
|||
return cls(elements)
|
||||
|
||||
|
||||
def parse_base_header(header: Dict) -> Dict:
|
||||
def parse_base_header(header: dict) -> dict:
|
||||
"""parse common left hand side (header) items of an episode or podcast page"""
|
||||
strapline = nav(header, ["straplineTextOne"])
|
||||
return {
|
||||
|
|
@ -70,7 +70,7 @@ def parse_base_header(header: Dict) -> Dict:
|
|||
}
|
||||
|
||||
|
||||
def parse_podcast_header(header: Dict) -> Dict:
|
||||
def parse_podcast_header(header: dict) -> dict:
|
||||
metadata = parse_base_header(header)
|
||||
metadata["description"] = nav(header, ["description", *DESCRIPTION_SHELF, *DESCRIPTION], True)
|
||||
metadata["saved"] = nav(header, ["buttons", 1, *TOGGLED_BUTTON])
|
||||
|
|
@ -78,7 +78,7 @@ def parse_podcast_header(header: Dict) -> Dict:
|
|||
return metadata
|
||||
|
||||
|
||||
def parse_episode_header(header: Dict) -> Dict:
|
||||
def parse_episode_header(header: dict) -> dict:
|
||||
metadata = parse_base_header(header)
|
||||
metadata["date"] = nav(header, [*SUBTITLE2])
|
||||
metadata["duration"] = nav(header, [*SUBTITLE3], True)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
from typing import Any, Dict, List
|
||||
from typing import Any
|
||||
|
||||
from .songs import *
|
||||
|
||||
|
||||
def parse_watch_playlist(results: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
|
||||
def parse_watch_playlist(results: list[dict[str, Any]]) -> list[dict[str, Any]]:
|
||||
tracks = []
|
||||
PPVWR = "playlistPanelVideoWrapperRenderer"
|
||||
PPVR = "playlistPanelVideoRenderer"
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import os
|
|||
import time
|
||||
from contextlib import suppress
|
||||
from functools import partial
|
||||
from typing import Dict, Optional, Union
|
||||
from typing import Optional, Union
|
||||
|
||||
import requests
|
||||
from requests import Response
|
||||
|
|
@ -42,10 +42,10 @@ from .auth.types import AuthType
|
|||
class YTMusicBase:
|
||||
def __init__(
|
||||
self,
|
||||
auth: Optional[Union[str, Dict]] = None,
|
||||
auth: Optional[Union[str, dict]] = None,
|
||||
user: Optional[str] = None,
|
||||
requests_session=True,
|
||||
proxies: Optional[Dict[str, str]] = None,
|
||||
proxies: Optional[dict[str, str]] = None,
|
||||
language: str = "en",
|
||||
location: str = "",
|
||||
oauth_credentials: Optional[OAuthCredentials] = None,
|
||||
|
|
@ -102,7 +102,7 @@ class YTMusicBase:
|
|||
self.oauth_credentials: OAuthCredentials #: Client used for OAuth refreshing
|
||||
|
||||
self._session: requests.Session #: request session for connection pooling
|
||||
self.proxies: Optional[Dict[str, str]] = proxies #: params for session modification
|
||||
self.proxies: Optional[dict[str, str]] = proxies #: params for session modification
|
||||
|
||||
if isinstance(requests_session, requests.Session):
|
||||
self._session = requests_session
|
||||
|
|
@ -220,7 +220,7 @@ class YTMusicBase:
|
|||
|
||||
return self._headers
|
||||
|
||||
def _send_request(self, endpoint: str, body: Dict, additionalParams: str = "") -> Dict:
|
||||
def _send_request(self, endpoint: str, body: dict, additionalParams: str = "") -> dict:
|
||||
body.update(self.context)
|
||||
|
||||
# only required for post requests (?)
|
||||
|
|
@ -241,7 +241,7 @@ class YTMusicBase:
|
|||
raise Exception(message + error)
|
||||
return response_text
|
||||
|
||||
def _send_get_request(self, url: str, params: Optional[Dict] = None) -> Response:
|
||||
def _send_get_request(self, url: str, params: Optional[dict] = None) -> Response:
|
||||
response = self._session.get(
|
||||
url,
|
||||
params=params,
|
||||
|
|
|
|||
Loading…
Reference in a new issue