yt-queue


Nameyt-queue JSON
Version 0.9.1 PyPI version JSON
download
home_pageNone
SummaryCLI to keep track of videos in Youtube playlists
upload_time2024-04-13 17:58:53
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2023 Hendri Pretorius Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords yt-dlp youtube
VCS
bugtrack_url
requirements yt-dlp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # yt-queue
CLI to keep track of videos in Youtube playlists

## cli

See `yt-queue -h` and `yt-queue <subcommand> -h` for details.

Examples:

```sh
# create a new file
yt-queue create example.ytq.json "https://www.youtube.com/playlist?list=PL0pg4HdU1lNMtRzycn3wbKyfQO5vQZja9"

# refresh a file, only if it wasnt recently updated
yt-queue refresh example.ytq.json --only-if-older=1day

# get the "new" items
yt-queue filter --no-status example.ytq.json

# read the values of a video from the file
yt-queue read-field example.ytq.json "BaW_jenozKc" url
yt-queue read-field example.ytq.json "BaW_jenozKc" title

# set the status
yt-queue set-status example.ytq.json "BaW_jenozKc" some-text-status
yt-queue filter --status=some-text-status example.ytq.json

# more filter options
yt-queue filter --title "test video" example.ytq.json
yt-queue filter --min-duration 3 example.ytq.json
yt-queue filter --max-duration 11 example.ytq.json
```

### output

Most cli subcommands' output (`stdout`) is parsable. `stderr` is used for logging:

- `filter` returns the matching video ids, 1 per line
- `read-field` returns the value of the field for the given video id

Other subcommands output should not be parsed - they contain either progress or verbose logging (including
from `yt-dlp`)

## development

```shell
python3 -m venv .env
source .env/bin/activate
pip install -r requirements.txt -r requirements-dev.txt
# or
pip install --editable .
pip install '.[dev]'
```

other dependencies: `shellcheck`

tests: `./check.sh`

test the built packages: `./dist-check.sh dist/...`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "yt-queue",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "yt-dlp, YouTube",
    "author": null,
    "author_email": "Hendri Pretorius <pretorh@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6c/bd/72a022468f75a329159e74736e3d51543b324508f8f08ff19f5e35912c1d/yt_queue-0.9.1.tar.gz",
    "platform": null,
    "description": "# yt-queue\nCLI to keep track of videos in Youtube playlists\n\n## cli\n\nSee `yt-queue -h` and `yt-queue <subcommand> -h` for details.\n\nExamples:\n\n```sh\n# create a new file\nyt-queue create example.ytq.json \"https://www.youtube.com/playlist?list=PL0pg4HdU1lNMtRzycn3wbKyfQO5vQZja9\"\n\n# refresh a file, only if it wasnt recently updated\nyt-queue refresh example.ytq.json --only-if-older=1day\n\n# get the \"new\" items\nyt-queue filter --no-status example.ytq.json\n\n# read the values of a video from the file\nyt-queue read-field example.ytq.json \"BaW_jenozKc\" url\nyt-queue read-field example.ytq.json \"BaW_jenozKc\" title\n\n# set the status\nyt-queue set-status example.ytq.json \"BaW_jenozKc\" some-text-status\nyt-queue filter --status=some-text-status example.ytq.json\n\n# more filter options\nyt-queue filter --title \"test video\" example.ytq.json\nyt-queue filter --min-duration 3 example.ytq.json\nyt-queue filter --max-duration 11 example.ytq.json\n```\n\n### output\n\nMost cli subcommands' output (`stdout`) is parsable. `stderr` is used for logging:\n\n- `filter` returns the matching video ids, 1 per line\n- `read-field` returns the value of the field for the given video id\n\nOther subcommands output should not be parsed - they contain either progress or verbose logging (including\nfrom `yt-dlp`)\n\n## development\n\n```shell\npython3 -m venv .env\nsource .env/bin/activate\npip install -r requirements.txt -r requirements-dev.txt\n# or\npip install --editable .\npip install '.[dev]'\n```\n\nother dependencies: `shellcheck`\n\ntests: `./check.sh`\n\ntest the built packages: `./dist-check.sh dist/...`\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Hendri Pretorius  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "CLI to keep track of videos in Youtube playlists",
    "version": "0.9.1",
    "project_urls": {
        "Bug Tracker": "https://github.com/pretorh/yt-queue/issues",
        "Homepage": "https://github.com/pretorh/yt-queue"
    },
    "split_keywords": [
        "yt-dlp",
        " youtube"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e39bbe008a447e2ddd4d3005e982f68e156fc2b68fe8c7c1eba1adf8fa9cdc11",
                "md5": "b966d704413d3f74755d9cb1b59a8f14",
                "sha256": "e08fa765d05dc3f4365426a9d9cd8ebaab171b728f121d27619e52f0e8128fdf"
            },
            "downloads": -1,
            "filename": "yt_queue-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b966d704413d3f74755d9cb1b59a8f14",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 16752,
            "upload_time": "2024-04-13T17:58:51",
            "upload_time_iso_8601": "2024-04-13T17:58:51.426869Z",
            "url": "https://files.pythonhosted.org/packages/e3/9b/be008a447e2ddd4d3005e982f68e156fc2b68fe8c7c1eba1adf8fa9cdc11/yt_queue-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6cbd72a022468f75a329159e74736e3d51543b324508f8f08ff19f5e35912c1d",
                "md5": "acbc02d6491fe2b6e95847a7121dab1e",
                "sha256": "5f06a83862ed646a7b0a441e029e7c2bd55481ab847f6d9d44686376e23ee66a"
            },
            "downloads": -1,
            "filename": "yt_queue-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "acbc02d6491fe2b6e95847a7121dab1e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 12387,
            "upload_time": "2024-04-13T17:58:53",
            "upload_time_iso_8601": "2024-04-13T17:58:53.009545Z",
            "url": "https://files.pythonhosted.org/packages/6c/bd/72a022468f75a329159e74736e3d51543b324508f8f08ff19f5e35912c1d/yt_queue-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-13 17:58:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pretorh",
    "github_project": "yt-queue",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "yt-dlp",
            "specs": [
                [
                    "==",
                    "2024.4.9"
                ]
            ]
        }
    ],
    "lcname": "yt-queue"
}
        
Elapsed time: 0.23796s