No project description provided
Project description
Pybalt
Python module / CLI to download media using cobalt-api instance
ATM instance default to my own instance, please dont abuse it ^^
Installation
Download using PIP
python -m pip install pybalt
Usage & Examples
Inside python file
from pybalt import Cobalt
from asyncio import run
async def main():
cobalt = Cobalt(api_key='...', api_instance='https://...')
print(await cobalt.download("https://www.youtube.com/watch?v=9bZkp7q19f0", quality="1080", path_folder='cute-videos'))
if __name__ == "__main__":
run(main())
With terminal or cmd
pybalt -url 'https://music.youtube.com/watch?v=cxAmzz_tjzc' -folder music -fs pretty
Cli Options:
-h, --help show this help message and exit
-url URL, -u URL URL to download
-list LIST, -l LIST Path to file with list of URLs
-quality QUALITY, -q QUALITY, -res QUALITY, -r QUALITY
Video quality to try download
-folder FOLDER, -f FOLDER
Path to folder
-instance INSTANCE, -i INSTANCE
Cobalt API instance
-key KEY, -k KEY API key
-playlist PLAYLIST, -pl PLAYLIST
Playlist URL (currently YouTube only)
-filenameStyle FILENAMESTYLE, -fs FILENAMESTYLE
Filename style
-audioFormat AUDIOFORMAT, -af AUDIOFORMAT
Audio format
Lets say we want to download YouTube playlist in 4k using my instance with api_key, save all videos to folder 'cat-videos', command would look like that:
pybalt -pl 'playlistUrl' -folder cat-videos -q 4k -i https://dwnld.nichind.dev -k API_KEY
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pybalt-2024.11.4.tar.gz
(7.2 kB
view details)
Built Distribution
File details
Details for the file pybalt-2024.11.4.tar.gz
.
File metadata
- Download URL: pybalt-2024.11.4.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b1ff968266eb8ddbf29d2595e2e8deb2fb91c65ca1b32b8e74fad167fc5ab5f |
|
MD5 | 4f24865955ed7e37c9bb28aabdd0e92b |
|
BLAKE2b-256 | 5eb2f12c8a162d8c52e58ddab2f0af9ea2a03885d7ff3d01efd9c78992d6c928 |
Provenance
The following attestation bundles were made for pybalt-2024.11.4.tar.gz
:
Publisher:
publish.yml
on nichind/pybalt
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pybalt-2024.11.4.tar.gz
- Subject digest:
2b1ff968266eb8ddbf29d2595e2e8deb2fb91c65ca1b32b8e74fad167fc5ab5f
- Sigstore transparency entry: 147088503
- Sigstore integration time:
- Predicate type:
File details
Details for the file pybalt-2024.11.4-py3-none-any.whl
.
File metadata
- Download URL: pybalt-2024.11.4-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e014550b77b90f41f8ede6937965fba51745e06c0b5fb0b31419c2d6dcb572b8 |
|
MD5 | 55b059c8002ed0f74779c7d9879c1bb1 |
|
BLAKE2b-256 | db5f3299e0954b585fe0806bf7f7ade30e5761a6bf9b0d987aba43df82c5327f |
Provenance
The following attestation bundles were made for pybalt-2024.11.4-py3-none-any.whl
:
Publisher:
publish.yml
on nichind/pybalt
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
pybalt-2024.11.4-py3-none-any.whl
- Subject digest:
e014550b77b90f41f8ede6937965fba51745e06c0b5fb0b31419c2d6dcb572b8
- Sigstore transparency entry: 147088514
- Sigstore integration time:
- Predicate type: