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.3.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file pybalt-2024.11.3.tar.gz
.
File metadata
- Download URL: pybalt-2024.11.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ecf9e97cc6923f5ec3e7a80d5eaebf92a1a7e557aede4fb0a96ae50cc27189 |
|
MD5 | f9b2e81b4cede96402a19335fd4b9c2d |
|
BLAKE2b-256 | 95ea03611cdd73602c750ed24edc7745c31a2ad51442973b2935296743461d86 |
Provenance
The following attestation bundles were made for pybalt-2024.11.3.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.3.tar.gz
- Subject digest:
d1ecf9e97cc6923f5ec3e7a80d5eaebf92a1a7e557aede4fb0a96ae50cc27189
- Sigstore transparency entry: 147071573
- Sigstore integration time:
- Predicate type:
File details
Details for the file pybalt-2024.11.3-py3-none-any.whl
.
File metadata
- Download URL: pybalt-2024.11.3-py3-none-any.whl
- Upload date:
- Size: 7.5 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 | 519b2d7ee99408caa8099fe39ce8cd8a1d3ac2ffe71e0be6a1bae9b2db723795 |
|
MD5 | e3b853e2a645dd7d932376f6d63d4a00 |
|
BLAKE2b-256 | 9052c2dd9e2a62244f8bb30fa71a562ce52ec73e72023bae59c419e4d4da73c7 |
Provenance
The following attestation bundles were made for pybalt-2024.11.3-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.3-py3-none-any.whl
- Subject digest:
519b2d7ee99408caa8099fe39ce8cd8a1d3ac2ffe71e0be6a1bae9b2db723795
- Sigstore transparency entry: 147071574
- Sigstore integration time:
- Predicate type: