Skip to main content

# QQMusicBox

![Build Status](https://travis-ci.org/lai-bluejay/qqmusicbox.svg?branch=master) ![PyPI](https://img.shields.io/pypi/v/qqmusicbox.svg?style=flat) ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/lai-bluejay/qqmusicbox.svg)

只要有声卡,命令行也能播放音乐

看到一款[命令行的网易云🎵](https://github.com/darknessomi/musicbox/),忍不住想照着开发一个同款的QQ音乐,整体代码结构还是参考darkness的版本,在此版本上微调。qq音乐api会和[meik-h](https://github.com/MeiK-h/QQMusicAPI)一起维护

## 特性

暂时只支持搜索音乐…….

### 键盘快捷键

Key | Effect | |
—– | ————— | ——— |
j | Down | 下移 |
k | Up | 上移 |
h | Back | 后退 |
l | Forword | 前进 |
u | Prev page | 上一页 |
d | Next page | 下一页 |
f | Search | 快速搜索 |
[ | Prev song | 上一曲 |
] | Next song | 下一曲 |
= | Volume + | 音量增加 |
- | Volume - | 音量减少 |
Space | Play/Pause | 播放/暂停 |
m | Menu | 主菜单 |
p | Present/History | 当前/历史播放列表 |
i | Music Info | 当前音乐信息 |
⇧+p | Playing Mode | 播放模式切换 |
⇧+a | Enter album | 进入专辑 |
g | To the first | 跳至首项 |
⇧+g | To the end | 跳至尾项 |

## 安装

### 必选依赖

  1. mpg123 用于播放歌曲 自行搜索一下安装办法吧

### PyPi安装

$ pip install qqmusicbox

### Git clone安装master分支

$ git clone https://github.com/lai-bluejay/qqmusicbox.git && cd qqmusicbox $ python setup.py install

### macOS安装

$ pip install qqmusicbox $ brew install mpg123

### Linux安装

#### Ubuntu/Debian

$ (sudo) pip install qqmusicbox

$ (sudo) apt-get install mpg123

#### Centos/Red Hat

$ (sudo) pip(3) install qqmusicbox $ (sudo) wget http://mirror.centos.org/centos/7/os/x86_64/Packages/mpg123-1.25.6-1.el7.x86_64.rpm $ (sudo) yum install mpg123-1.25.6-1.el7.x86_64.rpm

Metadata

Release files for qqmusicbox 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qqmusicbox 0.1.1
File Size Uploaded Provenance
qqmusicbox-0.1.1.tar.gz 27.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qqmusicbox 0.1.1
File Interpreter ABI Platform
qqmusicbox-0.1.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 61.4 kB

Release files / qqmusicbox-0.1.1.tar.gz

Download URL qqmusicbox-0.1.1.tar.gz
Size 27.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7311a461ddfed595b4212855212174a71ebec991580118252bc333fa2b597732
BLAKE2b-256 checksum
How to use checksums
d50d59b6751945492681984ec51f6262e3225ea87d81365ac8cb6f0ee0998118
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release files / qqmusicbox-0.1.1-py2.py3-none-any.whl

Download URL qqmusicbox-0.1.1-py2.py3-none-any.whl
Size 33.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
839e5462d01b287791c765318b8aa3f427e1301b7f0dd0204c064ee43121aa20
BLAKE2b-256 checksum
How to use checksums
9e7726d093737d552cae6572ad7f2e4bef288c2248f3229b18657227df290129
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Security for qqmusicbox 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page