{"id":15533169,"url":"https://github.com/cmdvmd/pymusicplayer","last_synced_at":"2025-04-23T13:43:39.843Z","repository":{"id":62581936,"uuid":"327144796","full_name":"cmdvmd/pymusicplayer","owner":"cmdvmd","description":"A music player interface for Python","archived":false,"fork":false,"pushed_at":"2021-01-08T20:31:02.000Z","size":10,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T02:37:26.641Z","etag":null,"topics":["music","music-player-interface","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmdvmd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-05T23:22:57.000Z","updated_at":"2022-11-28T23:39:20.000Z","dependencies_parsed_at":"2022-11-03T21:21:37.709Z","dependency_job_id":null,"html_url":"https://github.com/cmdvmd/pymusicplayer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdvmd%2Fpymusicplayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdvmd%2Fpymusicplayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdvmd%2Fpymusicplayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdvmd%2Fpymusicplayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmdvmd","download_url":"https://codeload.github.com/cmdvmd/pymusicplayer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250441456,"owners_count":21431173,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["music","music-player-interface","python"],"created_at":"2024-10-02T11:34:47.831Z","updated_at":"2025-04-23T13:43:39.821Z","avatar_url":"https://github.com/cmdvmd.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyMusicPlayer\n![Downloads](https://img.shields.io/pypi/dm/pymusicplayer?style=flat-square)\n![License](https://img.shields.io/pypi/l/pymusicplayer?style=flat-square)\n![Version](https://img.shields.io/pypi/v/pymusicplayer?label=version\u0026style=flat-square)\n![Format](https://img.shields.io/pypi/format/pymusicplayer?style=flat-square)\n![Last Update](https://img.shields.io/github/last-commit/cmdvmd/pymusicplayer?style=flat-square)\n\nAn MP3 music player interface for Python with builtin playback and queue functionality built using [Pygame mixer](https://www.pygame.org/docs/ref/music.html)\n\n### Installation\nInstall via `pip`\n\n```\n$ pip install pymusicplayer\n```\n\n## Usage\n\n```python\nfrom pymusicplayer import MusicPlayer\n\nmp = MusicPlayer()\n```\n\n* `add_song(filename, song_name)` - Add song to queue by filename and sets song name (defaults to filename) \n* `remove_song(index)` - Remove song at index of queue\n* `get_current_song()` - Return name of currently loaded song\n* `get_queue()` - Return names of songs in queue\n* `get_loop_queue()` - Return if queue will loop\n* `set_loop_queue()` - Set if queue should loop\n* `shuffle()` - Shuffle songs in queue\n* `is_playing()` - Return if music is currently playing\n* `play()` - Start playing loaded music\n* `pause()` - Pause loaded music\n* `restart()` - Restart loaded music\n* `get_volume()` - Returns volume of music\n* `set_volume(volume)` - Sets volume of music to value in interval [0, 100]\n* `get_pos()` - Get current position of loaded music in milliseconds\n* `set_pos(pos)` - Set position of loaded music in milliseconds\n* `choose_song(index)` - Load song at index in queue\n* `next_song()` - Load next song in queue\n* `previous_song()` - Load previous song in queue\n* `skip(amount)` - Skip amount (in milliseconds) in music (positive for forward, negative for rewind)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdvmd%2Fpymusicplayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmdvmd%2Fpymusicplayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdvmd%2Fpymusicplayer/lists"}