Skip to main content

No project description provided

Project description

Pybalt

Python module / CLI to download media using cobalt-api instance

Get on pypi Last commit Pip module installs total downloads GitHub stars


CLI Preview


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


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.5.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

pybalt-2024.11.5-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pybalt-2024.11.5.tar.gz.

File metadata

  • Download URL: pybalt-2024.11.5.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

Hashes for pybalt-2024.11.5.tar.gz
Algorithm Hash digest
SHA256 770a6d9be07e11dae6a896c75b3d53ac9793b08aa2a30b12e85af9734b22d78c
MD5 325acb73a9e227f97496c8922be17b94
BLAKE2b-256 e784128c147de920814869086407f9a1c36aa525cec8c1e3d58fc525a26dfd4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybalt-2024.11.5.tar.gz:

Publisher: publish.yml on nichind/pybalt

Attestations:

File details

Details for the file pybalt-2024.11.5-py3-none-any.whl.

File metadata

  • Download URL: pybalt-2024.11.5-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

Hashes for pybalt-2024.11.5-py3-none-any.whl
Algorithm Hash digest
SHA256 35134950f2509c607a957054a3a2dba2af5b83b9cc70f65951a84105eec8210f
MD5 94a7ee096ac089aa2d4a616f88f4cf56
BLAKE2b-256 4a62ef5d3cd30f2d73d1cc4866989268dc71505ba992a07c1ac090fdb13ddfc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pybalt-2024.11.5-py3-none-any.whl:

Publisher: publish.yml on nichind/pybalt

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page