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.1.tar.gz
(5.6 kB
view details)
Built Distribution
File details
Details for the file pybalt-2024.11.1.tar.gz
.
File metadata
- Download URL: pybalt-2024.11.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c5e58634a89bffa0133bfcde815907bba673ef406af2afc4da7e09bd7b56688 |
|
MD5 | 73e87a88ef6bebf26f3d6cca349b5c4e |
|
BLAKE2b-256 | e3a882a235f7e214cfcb0706f52d434067521104f33768409b61ada12c2f2e38 |
Provenance
The following attestation bundles were made for pybalt-2024.11.1.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.1.tar.gz
- Subject digest:
4c5e58634a89bffa0133bfcde815907bba673ef406af2afc4da7e09bd7b56688
- Sigstore transparency entry: 147014258
- Sigstore integration time:
- Predicate type:
File details
Details for the file pybalt-2024.11.1-py3-none-any.whl
.
File metadata
- Download URL: pybalt-2024.11.1-py3-none-any.whl
- Upload date:
- Size: 6.7 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 | f06e5b6bbd119494d52acb0c9f9c7c4e708ad3e942c2337badc93fd4a9713031 |
|
MD5 | 365734a204cb272ff9007071fd634af2 |
|
BLAKE2b-256 | 07a74df17572fc96c9e4cd7ca50a72ac4b2d1f91b127f32b573a346e9d6a95a6 |
Provenance
The following attestation bundles were made for pybalt-2024.11.1-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.1-py3-none-any.whl
- Subject digest:
f06e5b6bbd119494d52acb0c9f9c7c4e708ad3e942c2337badc93fd4a9713031
- Sigstore transparency entry: 147014260
- Sigstore integration time:
- Predicate type: