Skip to main content

Python library for music handling

Project description

  • What is zhlyr?

  • A python library aimed at music enthusiasts, providing tools for managing and discovering music, fetching song lyrics, and utilizing machine learning algorithms to predict the name of a song from a short audio snippet.

  • Code Area :

    ⏬Install Zhlyr
    💲pip install zhlyr
    

    🎵 Recognize track
    Recognize a track based on a file
    # Get full track json response object info
    
    import asynico
    from zhlyr import Reconize
    data = '/root/user/dir/simple.mp3'
    async def get_info():
      reco = await Reconize(data)
      print(reco.json())
    loop = asynico.new_event_loop()
    loop.run_until_complete(get_info)
    
    # You can get respnose info as string response 
    reco = Reconize(data)
    print(reco.text)
    

    🔍🎼 Get the lyrics of the track

    Get lyrics from title of the track </br>

    from zhlyr import ZhLyr
    lyrics = ZhLyr.GetByTitle(title='save your trears',srt=false)
    # :GetByTitle: `title`: str : title of the track to get trrack from it.
    # :GetByTitle: `srt`: bool : if `true` he will return time as `srt` format.
    # :GetByTitle: return json object
    
    for time , lyric in lyrics.items():
      print(f'time {time} >>> lyric : {lyric}')
    

    Get lyrics from details of track </br>

    lyrics = ZhLyr.GetByDetails(title='save your trears',artist='the weeknd',duration='3:35',srt=false)
    # :GetByDetails: `title`: str : title of the track to get trrack from it.
    # :GetByDetails: `artist`: str : artist of the track to get lyrics from it.
    # :GetByDetails: `duration` : Optional[str]=None : duration of the track to get lyrics from it.
    # :GetByDetails: `srt`: bool : if `true` he will return time as `srt` format.
    # :GetByDetails: return json object
    
    for time , lyric in lyrics.items():
      print(f'time {time} >>> lyric : {lyric}')
    

    ℹ️ How to use data serialization

    Serialized data from response. </br>

    from zhlyr import Serializer
    data = your_json_data
    serialize = Serializer(data)
    print(serialize)
    

    Get vlue from key with serialized data. </br>

    data = {'key1':'hello world!'}
    serialize = Serializer(data)
    print(serialize.key1)
    

My Accounts


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zhlyr-5.1-py2.py3-none-win_amd64.whl (761.8 kB view details)

Uploaded Python 2Python 3Windows x86-64

zhlyr-5.1-py2.py3-none-win32.whl (383.0 kB view details)

Uploaded Python 2Python 3Windows x86

zhlyr-5.1-py2.py3-none-manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded Python 2Python 3

zhlyr-5.1-py2.py3-none-manylinux1_x86_64.whl (1.1 MB view details)

Uploaded Python 2Python 3

zhlyr-5.1-py2.py3-none-macosx_10_9_x86_64.whl (1.9 MB view details)

Uploaded Python 2Python 3macOS 10.9+ x86-64

File details

Details for the file zhlyr-5.1-py2.py3-none-win_amd64.whl.

File metadata

  • Download URL: zhlyr-5.1-py2.py3-none-win_amd64.whl
  • Upload date:
  • Size: 761.8 kB
  • Tags: Python 2, Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for zhlyr-5.1-py2.py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 736c5d0de412b20c9b0f9cee8921fd5273ed9c1928a9e597b31dea41a3d1e7cc
MD5 d2a3a75d8392167955b077047322b245
BLAKE2b-256 041e25a46c1a9d9757934ba88f2b680c4a300b954f9dceb5ffd095224cce75c0

See more details on using hashes here.

File details

Details for the file zhlyr-5.1-py2.py3-none-win32.whl.

File metadata

  • Download URL: zhlyr-5.1-py2.py3-none-win32.whl
  • Upload date:
  • Size: 383.0 kB
  • Tags: Python 2, Python 3, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for zhlyr-5.1-py2.py3-none-win32.whl
Algorithm Hash digest
SHA256 b124114a063dcba597834ca827def17032375d7d20ca47f55b86dbee56298d0c
MD5 29fab4427a19c005202a7fe44c4c0a4c
BLAKE2b-256 5a3fab369e08e86b045a5fbb73d04b82c00c58e5625b42b1739147c05088a864

See more details on using hashes here.

File details

Details for the file zhlyr-5.1-py2.py3-none-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for zhlyr-5.1-py2.py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 da016429d2502c639c9fcd85a31300f21dc5ce0db10c41de21ce16b6ad63a3a1
MD5 f5869c4ea2271c82e8fd4cd3f4ddddf2
BLAKE2b-256 e507b3b9f1af60c0d92766a745879964fe790ff3575fa5320df5d9e10c8101d6

See more details on using hashes here.

File details

Details for the file zhlyr-5.1-py2.py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for zhlyr-5.1-py2.py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 f9eaf9f3cfd9f02cfea3fd342b71e46b7efb7b94c944a3709f1081c9ef4210ff
MD5 e028d78f52c6b6b2345a274110ad0c99
BLAKE2b-256 55ccac8d131b95129534d7fbc69d2b3637927bea15c53aed7740e8ee4d8de367

See more details on using hashes here.

File details

Details for the file zhlyr-5.1-py2.py3-none-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: zhlyr-5.1-py2.py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: Python 2, Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for zhlyr-5.1-py2.py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e2820c2197c2e1bb82cf3140b015e64c654a36ca86e2e68c49387829fe0c007
MD5 2f45deddafaf0e196a6cef0cab19a9eb
BLAKE2b-256 56f00c71e4c51616a461dbea7ab3a356a9e6c086254461a8a7bd6f1f3f60040f

See more details on using hashes here.

Supported by

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