Skip to main content

Asynchronous version of the `py-deezer` module

Project description

deezer-asy

Asynchronous version of the py-deezer module

At the moment, the functionality does not completely repeat the original library

Differences

This version is asynchronous. Otherwise, it repeats the arguments of the original library.

All that differs is initialization. You need to create a session that will get some information from your ARL, await deezer._generate_main_session() is responsible for this.

It must be called when you start your application, in on_startup in your bot, or otherwise

What works?

  • Getting information about albums, tracks (their tags).
  • Downloading tracks.

What needs to be done

  • Adding tags to .flac. (So ​​far, idling)

Installation

pip install pydeezer-asy

Usage as a package

from deezer_asy import DeezerAsy
import asyncio

ARL = "edit this"

async def main():
    deezer = DeezerAsy(ARL)
    await deezer._generate_main_session()
    track = await deezer.get_track(1421388612, True)
    data = await deezer.download_track(track['info'], './', with_lyrics=True, with_metadata=True)
    print(data)



if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())

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

pydeezer_asy-1.2.2.tar.gz (11.8 kB view details)

Uploaded Source

File details

Details for the file pydeezer_asy-1.2.2.tar.gz.

File metadata

  • Download URL: pydeezer_asy-1.2.2.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for pydeezer_asy-1.2.2.tar.gz
Algorithm Hash digest
SHA256 473837478731b92d7b26ceb6e7b396a5af16195c901b550b321ec8a6abaad570
MD5 aed2cdb6eae11e96004b09bfc7d797b9
BLAKE2b-256 2ae3a53022bec54a839acab5fb416c2b4b838c23020d2e14be014fc7d9e3ea5d

See more details on using hashes here.

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