YTSort
This program sorts the already downloaded youtube videos present in a folder by renaming them and adding serial number before their names.
Requirements
Youtube Data API v3 is required. Get it from here
Install
Recommended (To install pipx click here)
pipx install ytsort
or
pip install ytsort
Or upgrade by:
pipx upgrade ytsort
or
pip install --upgrade ytsort
Usage
Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY' (for ease of use, but not required).
Execute:
ytsort
Usage: ytsort [OPTIONS]
Options:
-c, --character TEXT Character after serial.
-z, --zero Add zero before serial numbers to make them all of
equal length.
-x, --nozero Don't add zero before serial numbers.
-d, --defaults Change the default configurations and exit.
-r, --remove-serial Remove the serial numbers from the local files upto
the given character
--help Show this message and exit.
Install from source
Poetry is required. For installation click here.
-
Download the source and install the dependencies by running:
git clone https://github.com/aqdasak/YTSort.git cd YTSort poetry install -
Not required but for ease of use
a) Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY'
or
b) edit the
config.py:'api_key': os.environ.get('YOUTUBE_DATA_API_KEY'),to'api_key': <Your Youtube API key>,
Run
In the source folder containing pyproject.toml
poetry shell
then cd into the folder containing youtube videos and execute:
ytsort
Metadata
Release files for ytsort 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ytsort-1.4.0.tar.gz | 13.7 kB | Without provenance | Details for ytsort-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ytsort-1.4.0-py3-none-any.whl | Python 3 | none | any | Details for ytsort-1.4.0-py3-none-any.whl |
Total release size: 28.9 kB
Release files / ytsort-1.4.0.tar.gz
| Download URL | ytsort-1.4.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63e5b54b53f206a38c82c099f6bdf68b6a065e96a11b896009cd668750d6ea8c
|
|
BLAKE2b-256 checksum How to use checksums |
a46ddcdf4f340a22263345c6632ac191338d8134fb42d9dbb6111976e755d357
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic
|
Release files / ytsort-1.4.0-py3-none-any.whl
| Download URL | ytsort-1.4.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec1fa2784f9605995a962c00cda58802aa5fe53111a0d83e5e9407aac91574a9
|
|
BLAKE2b-256 checksum How to use checksums |
7592d5888db7ed4ec558ce3e25c381a7c514ee040045414fd341e7c8fc25319a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic
|
Security for ytsort 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.